git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Anupam Srivastava <srivasta@itt.uni-stuttgart.de>
To: git@vger.kernel.org
Subject: Re: Error compiling git
Date: Sun, 19 Aug 2007 23:18:19 +0200	[thread overview]
Message-ID: <46C8B39B.6060603@itt.uni-stuttgart.de> (raw)
In-Reply-To: <46C8AAC6.4060101@itt.uni-stuttgart.de>

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

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

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=46C8B39B.6060603@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.
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).