{"thread":{"id":"9577","subject":"Error compiling git","startedAt":"2007-08-19T20:40:38Z","lastAt":"2007-08-19T21:19:30Z","messageCount":3,"participants":["Anupam Srivastava"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"51019","messageId":"46C8AAC6.4060101@itt.uni-stuttgart.de","threadId":"9577","inReplyTo":null,"subject":"Error compiling git","fromName":"Anupam Srivastava","fromEmail":"srivasta@itt.uni-stuttgart.de","sentAt":"2007-08-19T20:40:38Z","receivedAt":"2007-08-19T20:40:38Z","isPatch":false,"sender":{"key":"srivasta@itt.uni-stuttgart.de","avatar":null},"body":"Hello all!\n\nI am trying to compile git. The catch is that my zlib is installed in \nnon-standard directory, namely: /tmp/dont.delete/fakeroot\n\nHere are my environment varialbes:\nLDFLAGS=-L/tmp/dont.delete/fakeroot/lib\nLD_RUN_PATH=\"/tmp/dont.delete/fakeroot/lib\nCC=\"ccache cc -o3\"\n\nbut after running make, the compilation stops ate linking with this error:\n<snip>\n     AR xdiff/lib.a\n     LINK git-convert-objects\n/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: \nskipping incompatible /usr/lib/libz.so when searching for -lz\n/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: \nskipping incompatible /usr/lib/libz.a when searching for -lz\n/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: \ncannot find -lz\ncollect2: ld returned 1 exit status\nmake: *** [git-convert-objects] Error 1\n</snip>\nWhich to my understating means that it is not even trying to find zlib \nin /tmp/dont.delete/fakeroot\n\nMy way of compiling is:\nmake configure\n./configure --cache-file=config.cache --prefix=/tmp/dont.delete/fakeroot\nmake\n\nIn configure.log I do get LDFLAGS='-L/tmp/dont.delete/fakeroot/lib \n-L/tmp/dont.delete/fakeroot/lib64 -L/usr/stud/srivasta/lib'\n\nThis zlib is working fine when I compile other stuff which needs zlib.\n\nAny idea if is a configure problem of make\n\nAnupam\n"},{"id":"51021","messageId":"46C8B39B.6060603@itt.uni-stuttgart.de","threadId":"9577","inReplyTo":"46C8AAC6.4060101@itt.uni-stuttgart.de","subject":"Re: Error compiling git","fromName":"Anupam Srivastava","fromEmail":"srivasta@itt.uni-stuttgart.de","sentAt":"2007-08-19T21:18:19Z","receivedAt":"2007-08-19T21:18:19Z","isPatch":false,"sender":{"key":"srivasta@itt.uni-stuttgart.de","avatar":null},"body":"Anupam Srivastava wrote:\n> Hello all!\n> \n> I am trying to compile git. The catch is that my zlib is installed in \n> non-standard directory, namely: /tmp/dont.delete/fakeroot\n> \n> Here are my environment varialbes:\n> LDFLAGS=-L/tmp/dont.delete/fakeroot/lib\n> LD_RUN_PATH=\"/tmp/dont.delete/fakeroot/lib\n> CC=\"ccache cc -o3\"\n> \n> but after running make, the compilation stops ate linking with this error:\n> <snip>\n>     AR xdiff/lib.a\n>     LINK git-convert-objects\n> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: \n> skipping incompatible /usr/lib/libz.so when searching for -lz\n> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: \n> skipping incompatible /usr/lib/libz.a when searching for -lz\n> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: \n> cannot find -lz\n> collect2: ld returned 1 exit status\n> make: *** [git-convert-objects] Error 1\n> </snip>\n> Which to my understating means that it is not even trying to find zlib \n> in /tmp/dont.delete/fakeroot\n> \n> My way of compiling is:\n> make configure\n> ./configure --cache-file=config.cache --prefix=/tmp/dont.delete/fakeroot\n> make\n> \nSolved.\nRemoved/updated manually CFLAGS and LDFLAGS in Makefile\n\nThis is, I suppose, a bug in Makefile then.\n\nThe configure script created by Makefile should update Makefile with the \narguments passed to it.\n\nAnupam\n"},{"id":"51022","messageId":"46C8B3E2.8090102@itt.uni-stuttgart.de","threadId":"9577","inReplyTo":"46C8B39B.6060603@itt.uni-stuttgart.de","subject":"Re: Error compiling git","fromName":"Anupam Srivastava","fromEmail":"srivasta@itt.uni-stuttgart.de","sentAt":"2007-08-19T21:19:30Z","receivedAt":"2007-08-19T21:19:30Z","isPatch":false,"sender":{"key":"srivasta@itt.uni-stuttgart.de","avatar":null},"body":"unsubscribe git\n"}]}