UPDATE… Got this working by creating a symlink from: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain (Which is where the configure script thought /usr/bin/cc was located - but doesn’t exist) to: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain (which is where /usr/bin/cc is actually located) Everything configures and compiles fine now. Thanks for the suggestions. -Jon On Dec 5, 2013, at 3:41 PM, Jon August <jonaugust@gmail.com> wrote:
Hi,
I’m trying to compile apache httpd (along with other packages), and I’m getting the following error with configure:
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables
I noticed that the path to cc it’s using doesn't actually exist. I see a few other people on the Web with the same problem, but most are able to resolve this by installing the Xcode Command-Line Tools. Unfortunately, I've done this and it doesn't resolve the issue.
If I pass the correct path for cc to configure, it will complete, but the make fails:
/usr/share/apr-1/build-1/libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I. -I/Users/jon/Desktop/Sources/httpd-2.4.7/os/unix -I/Users/jon/Desktop/Sources/httpd-2.4.7/include -I/usr/include/apr-1 -I/usr/local/Cellar/pcre/8.33/include -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/aaa -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/cache -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/core -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/database -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/filters -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/ldap -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/loggers -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/lua -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/proxy -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/session -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/ssl -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/test -I/Users/jon/Desktop/Sources/httpd-2.4.7/server -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/arch/unix -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/dav/main -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/generators -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/mappers -prefer-non-pic -static -c unixd.c && touch unixd.lo libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[3]: *** [unixd.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
This is a fresh install of Mavericks. Any help on getting it to compile some open source packages would be greatly appreciated.
-Jon
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com