|Subject:||Fails to build on FreeBSD 10.x (clang vs. gcc)|
FreeBSD 10.x ships clang instead of gcc, but the generic_shlib target unfortunately has "gcc" hardcoded, so building fails: ... cd unzip-6.0 && make -f unix/Makefile generic_shlib LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O" PREFIX="/usr/perl5.20.3p" PASTHRU_DEFINE='-DDLL ' PASTHRU_INC='-I. ' This target requires GNU C. When done, do "setenv LD_LIBRARY_PATH `pwd`" or similar in order to test the shared library in place (with ./unzip_shlib , which is UnZip linked with the DLL). This target is an example only. make objsdll CC=gcc CFLAGS="-O3 -Wall -fPIC -DDLL" gcc -c -O3 -Wall -fPIC -DDLL -I. -Ibzip2 -DUNIX -o unzip.pic.o unzip.c make: exec(gcc) failed (No such file or directory) *** Error code 1 ... Patching the target to use "cc" instead of "gcc" (four places) seems to fix the problem for me.