Current imake port doesn't work with clang (FreeBSD-10+). BUILD_DEPENDS requires tradcpp, but imake will always use cc: imake -v -DUseInstalled -I/usr/local/lib/X11/config cc -I. -Uunix -D__amd64__ -D__amd64__ -traditional -DUseInstalled -I/usr/local/lib/X11/config -E -v Imakefile.c ... imake Makefile contains CPP_PROGRAM = tradcpp but this is ignored, since USE_CC_E has greater priority and it is set, see work/imake-1.0.7/imake.c (287) #ifndef CROSSCOMPILE # ifdef USE_CC_E # ifndef DEFAULT_CC # define DEFAULT_CC "cc" # endi # else # ifndef DEFAULT_CPP # ifdef CPP_PROGRAM # define DEFAULT_CPP CPP_PROGRAM # else # define DEFAULT_CPP "/lib/cpp" # endif # endif # endif #endif work/imake-1.0.7/imakemdep.h (304) # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || d efined(__DragonFly__) # define USE_CC_E # endif ... # if defined(__GNUC__) && !defined(USE_CC_E) # define USE_CC_E # ifndef DEFAULT_CC # define DEFAULT_CC "gcc" # endif # endif To get tradcpp I had to remove both these tests. Proper solution is probably to set DEFAULT_CC=tradcpp in configure or make invocation. It seems that ac_cv_path_RAWCPP=tradcpp in port Makefile is ignored.
Could you please supply a working patch?
MARKED AS SPAM
Still not fixed in 1.0.8 version.
Maintainer reset.
Still an issue?