git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Building GIT on older systems.

From
TSTim Schumacher <schumact@gmail.com>
Date
Feb 29, 2012, 20:22 UTC
Message-ID
<CAFqtsHd=b=Ey8j1zTCC4-fut7rno3daQ2Q3HMs3k2SHFvE4dSQ@mail.gmail.com>
In-Reply-To
<CAFqtsHfrk89qHexg8VwMZnKwgWDqbseJNNKFSUkwDtVKX_t=5g@mail.gmail.com>
Hi All,

After a long battle trying to get git to compile on my dev boxes I am seeking help from the gurus...  I have an old system, redhat linux 7.3, with a 2.4.18 kernel with gcc 2.96 toolchain.  Unfortuneatly, upgrading is not currently an option.

I have figured out so far that I can run the command
make NO_NSEC=true
to get past the time struct compile error.
After that, I was able to hand edit the Makefile to set
BASIC_LDFLAGS = -ldl

so linking the git-imap-send program succeeds (was failing to link against this library for some reason...).  I tried to run configure with these options, but it did not seem to take, only setting NO_NSEC=true to the make command line seems to work.

Anyway, now I get to the point in the build where it goes into the perl subdir and fails with:

   SUBDIR perl
/bin/sh: -c: line 3: syntax error near unexpected token
`"s<\Q++LOCALEDIR++\E></'
/bin/sh: -c: line 3: `        -e "pm_to_blib({qw{Git/I18N.pm
blib/lib/Git/I18N.pm private-Error.pm blib/lib/Error.pm Git.pm
blib/lib/Git.pm}},'blib/lib/auto','/usr/bin/perl -pe
"s<\Q++LOCALEDIR++\E></usr/local/git-1.7.9.2/share/locale>"')"'
make[2]: *** [pm_to_blib] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

A couple questions I have so far: (1)  how can I make make output the actual command it is executing so I can try to debug things more quickly? (2)  how can I configure the Makefile to automatically set -ldl as well as the NO_NSEC flag? (3)  My perl -v output: This is perl, v5.6.1 built for i386-linux.  Is this sufficient?

Any help is greatly appreciated!

Thanks, Tim

Next: Dan Johnson
Message 1 of 5 in “Building GIT on older systems.”
  1. Tim SchumacherFeb 29, 2012
  2. Dan JohnsonFeb 29, 2012
  3. Jeff KingFeb 29, 2012
  4. Tim SchumacherFeb 29, 2012
  5. Junio C HamanoFeb 29, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.