I am failing to compile samtools 1.2 on a Mac Desktop. Following INSTALL instructions, I am simply calling 'make' to compile, but if fails. The funny thing is, it is no problem on my Mac laptop, and both machines appear to me to have identical environments ... both are x86_64-apple-darwin13, and both are using gnu make 3.81, and running OSX 10.9.5.
Here is the tail end of the output of the failed make attempt from the desktop:
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"_gzgetc_", referenced from:
_zfpeek in libhts.a(zfio.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [samtools] Error 1
The full STDOUT and STDERR from this failed attempt are here and here.
Would appreciate any suggestions especially since my knowledge of Makefiles and compilers is very poor.
Thanks Alex! Library was fine. Somehow I had multiple zlib headers at
/usr/include
,/usr/local/include
, and/usr/local/include/ezlib
(and one from EMBOSS that may have been related at/usr/local/include/ezlib/zlibemboss.h
). I moved all of them except the header at/usr/include
, and it compiled just fine. I think there some kind of version conflict with different zlib.h headers around. Anyway, issue solved, thanks!