rflynn / imgmin

Lossy image optimization
MIT License
650 stars 32 forks source link

Apache mod build failure on OS X #34

Open kornelski opened 10 years ago

kornelski commented 10 years ago

I'm trying to compile on OS X 10.9 that only has some half-baked Apache included by Apple with the OS:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C apache2
if [ "apxs" != "" ]; then \
        apxs -I `pwd`/.. `MagickWand-config --cppflags --ldflags --libs|xargs` -Wc,-DIMGMIN_LIB -Wc,-W -Wc,-Wall -Wc,-Wno-unused-parameter -c mod_imgmin.c ../imgmin.c; \
    fi
/usr/share/apr-1/build-1/libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc    -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -DIMGMIN_LIB -W -Wall -Wno-unused-parameter -I/Users/kornel/imgmin/src/apache2/.. -I/usr/local/Cellar/imagemagick/6.8.9-7/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16  -c -o mod_imgmin.lo mod_imgmin.c && touch mod_imgmin.slo
env: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc: No such file or directory
apxs:Error: Command failed with rc=65536
.
make[3]: *** [mod_imgmin_la] Error 1
make[2]: *** [mod_imgmin] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

The path /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc looks quite suspicious.

denji commented 9 years ago

@pornel removed AC_CHECK_PROGS(APXS, apxs2 apxs, "")