Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

10.8 ./configure error: "C compiler cannot create executables"

Look alive headscratchers, trying to custom-build Apache to use the mpm=worker option but getting this error:



checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: in `httpd-2.2.22': configure: error: C compiler cannot create executables See `config.log' for more details.

Any update on this compiling problem? Suggestions? Should I hack the configure file?

Posted on Jul 30, 2012 9:43 AM

Reply
4 replies

Jul 30, 2012 11:23 AM in response to xnav

Guess I should have looked at the log file:

configure:4707: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/b in/cc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:4718: $? = 1 configure:4707: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/b in/cc -qversion >&5 clang: error: no input files configure:4718: $? = 1 configure:4740: checking for C compiler default output file name configure:4762: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/b in/cc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK conftest.c >&5 conftest.c:9:10: fatal error: 'stdio.h' file not found #include ^ 1 error generated. configure:4766: $? = 1 configure:4803: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include | int | main () | { | FILE *f = fopen ("conftest.out", "w"); | return ferror (f) || fclose (f) != 0; | | ; | return 0; | } configure:4809: error: in `httpd-2.2.22': configure:4813: error: C compiler cannot create executables See `config.log' for more details.

10.8 ./configure error: "C compiler cannot create executables"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.