git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anupam Srivastava <srivasta@itt.uni-stuttgart.de>
To: git@vger.kernel.org
Subject: Error compiling git
Date: Sun, 19 Aug 2007 22:40:38 +0200	[thread overview]
Message-ID: <46C8AAC6.4060101@itt.uni-stuttgart.de> (raw)

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

             reply	other threads:[~2007-08-19 21:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 20:40 Anupam Srivastava [this message]
2007-08-19 21:18 ` Error compiling git Anupam Srivastava
2007-08-19 21:19   ` Anupam Srivastava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46C8AAC6.4060101@itt.uni-stuttgart.de \
    --to=srivasta@itt.uni-stuttgart.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).