4 Replies Latest reply: Jul 30, 2012 12:48 PM by xnav
Gnarlodious Level 4 Level 4 (3,220 points)

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?

  • 1. Re: 10.8 ./configure error: "C compiler cannot create executables"
    Keith Barkley Level 5 Level 5 (5,250 points)

    Sounds like you are missing a linker command.

    C Compilers *don't* create executables, linkers do.

  • 2. Re: 10.8 ./configure error: "C compiler cannot create executables"
    xnav Level 5 Level 5 (6,630 points)

    See `config.log' for more details.

     

    Was there any more details?

  • 3. Re: 10.8 ./configure error: "C compiler cannot create executables"
    Gnarlodious Level 4 Level 4 (3,220 points)

    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.
    
  • 4. Re: 10.8 ./configure error: "C compiler cannot create executables"
    xnav Level 5 Level 5 (6,630 points)

    My guess is you upgraded Xcode but didn't install the Command Line Tools.