git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Error compiling git
@ 2007-08-19 20:40 Anupam Srivastava
  2007-08-19 21:18 ` Anupam Srivastava
  0 siblings, 1 reply; 3+ messages in thread
From: Anupam Srivastava @ 2007-08-19 20:40 UTC (permalink / raw
  To: git

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:
<snip>
     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
</snip>
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error compiling git
  2007-08-19 20:40 Error compiling git Anupam Srivastava
@ 2007-08-19 21:18 ` Anupam Srivastava
  2007-08-19 21:19   ` Anupam Srivastava
  0 siblings, 1 reply; 3+ messages in thread
From: Anupam Srivastava @ 2007-08-19 21:18 UTC (permalink / raw
  To: git

Anupam Srivastava wrote:
> 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:
> <snip>
>     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
> </snip>
> 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
> 
Solved.
Removed/updated manually CFLAGS and LDFLAGS in Makefile

This is, I suppose, a bug in Makefile then.

The configure script created by Makefile should update Makefile with the 
arguments passed to it.

Anupam

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error compiling git
  2007-08-19 21:18 ` Anupam Srivastava
@ 2007-08-19 21:19   ` Anupam Srivastava
  0 siblings, 0 replies; 3+ messages in thread
From: Anupam Srivastava @ 2007-08-19 21:19 UTC (permalink / raw
  To: git

unsubscribe git

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-19 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 20:40 Error compiling git Anupam Srivastava
2007-08-19 21:18 ` Anupam Srivastava
2007-08-19 21:19   ` Anupam Srivastava

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).