From: Anupam Srivastava Date: Sun, 19 Aug 2007 20:40:38 GMT Subject: Error compiling git Message-ID: <46C8AAC6.4060101@itt.uni-stuttgart.de> Hello all! I am trying to compile git. The catch is that my zlib is installed in non-standard directory, namely: /tmp/dont.delete/fakeroot Here are my environment varialbes: LDFLAGS=-L/tmp/dont.delete/fakeroot/lib LD_RUN_PATH="/tmp/dont.delete/fakeroot/lib CC="ccache cc -o3" but after running make, the compilation stops ate linking with this error: AR xdiff/lib.a LINK git-convert-objects /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [git-convert-objects] Error 1 Which to my understating means that it is not even trying to find zlib in /tmp/dont.delete/fakeroot My way of compiling is: make configure ./configure --cache-file=config.cache --prefix=/tmp/dont.delete/fakeroot make In configure.log I do get LDFLAGS='-L/tmp/dont.delete/fakeroot/lib -L/tmp/dont.delete/fakeroot/lib64 -L/usr/stud/srivasta/lib' This zlib is working fine when I compile other stuff which needs zlib. Any idea if is a configure problem of make Anupam