{"thread":{"id":"8653","subject":"Errors building git-1.5.2.2 on 64-bit Centos 5","startedAt":"2007-06-19T12:37:38Z","lastAt":"2007-06-19T21:17:14Z","messageCount":18,"participants":["Bill Lear","Johannes Schindelin","Marco Roeland","David Kastrup","Alex Riesen","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"45348","messageId":"18039.52754.563688.907038@lisa.zopyra.com","threadId":"8653","inReplyTo":null,"subject":"Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T12:37:38Z","receivedAt":"2007-06-19T12:37:38Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"Also breaks (tar fails) if I do the 'make configure; ./configure'\nroute.  This is my third try to send this.  I sent also to Junio\nyesterday, but no response.\n\n% uname -a Linux blake 2.6.18-8.1.4.el5xen #1 SMP Thu May 17 03:43:13 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux\n\n% gcc --version\ngcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)\n\n% make prefix=/opt/git-1.5.2.2 all doc\nGIT_VERSION = 1.5.2.2-dirty\n    * new build flags or prefix\n    CC convert-objects.o\n    CC blob.o\n    CC commit.o\n    CC connect.o\n    CC csum-file.o\n    CC cache-tree.o\n    CC base85.o\n    CC date.o\n    CC diff-delta.o\n    CC entry.o\n    CC exec_cmd.o\n    CC ident.o\n    CC interpolate.o\n    CC lockfile.o\n    CC patch-ids.o\n    CC object.o\n    CC pack-check.o\n    CC pack-write.o\n    CC patch-delta.o\n    CC path.o\n    CC pkt-line.o\n    CC sideband.o\n    CC reachable.o\n    CC reflog-walk.o\n    CC quote.o\n    CC read-cache.o\n    CC refs.o\n    CC run-command.o\n    CC dir.o\n    CC object-refs.o\n    CC server-info.o\n    CC setup.o\n    CC sha1_file.o\n    CC sha1_name.o\n    CC strbuf.o\n    CC tag.o\n    CC tree.o\n    CC usage.o\n    CC config.o\n    CC environment.o\n    CC ctype.o\n    CC copy.o\n    CC revision.o\n    CC pager.o\n    CC tree-walk.o\n    CC xdiff-interface.o\n    CC write_or_die.o\n    CC trace.o\n    CC list-objects.o\n    CC grep.o\n    CC match-trees.o\n    CC alloc.o\n    CC merge-file.o\n    CC path-list.o\n    GEN common-cmds.h\n    CC help.o\n    CC unpack-trees.o\n    CC diff.o\n    CC diff-lib.o\n    CC diffcore-break.o\n    CC diffcore-order.o\n    CC diffcore-pickaxe.o\n    CC diffcore-rename.o\n    CC tree-diff.o\n    CC combine-diff.o\n    CC diffcore-delta.o\n    CC log-tree.o\n    CC color.o\n    CC wt-status.o\n    CC archive-zip.o\n    CC archive-tar.o\n    CC shallow.o\n    CC utf8.o\n    CC convert.o\n    CC attr.o\n    CC decorate.o\n    CC progress.o\n    CC mailmap.o\n    CC symlinks.o\n    CC compat/strlcpy.o\n    AR libgit.a\n    CC xdiff/xdiffi.o\n    CC xdiff/xprepare.o\n    CC xdiff/xutils.o\n    CC xdiff/xemit.o\n    CC xdiff/xmerge.o\n    AR xdiff/lib.a\n    LINK git-convert-objects\nlibgit.a(utf8.o): In function `reencode_string':\n/home/blear/build/git-1.5.2.2/utf8.c:317: undefined reference to `libiconv_open'\n/home/blear/build/git-1.5.2.2/utf8.c:328: undefined reference to `libiconv'\n/home/blear/build/git-1.5.2.2/utf8.c:353: undefined reference to `libiconv_close'\n/home/blear/build/git-1.5.2.2/utf8.c:334: undefined reference to `libiconv_close'\ncollect2: ld returned 1 exit status\nmake: *** [git-convert-objects] Error 1\n\n\nBill\n"},{"id":"45350","messageId":"Pine.LNX.4.64.0706191359160.4059@racer.site","threadId":"8653","inReplyTo":"18039.52754.563688.907038@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-06-19T13:00:07Z","receivedAt":"2007-06-19T13:00:07Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 19 Jun 2007, Bill Lear wrote:\n\n> Also breaks (tar fails) if I do the 'make configure; ./configure'\n> route.\n\nThen there is a test missing in configure.\n\n> /home/blear/build/git-1.5.2.2/utf8.c:328: undefined reference to `libiconv'\n\nYou are missing libiconv.\n\nCiao,\nDscho\n"},{"id":"45351","messageId":"20070619132456.GA15023@fiberbit.xs4all.nl","threadId":"8653","inReplyTo":"Pine.LNX.4.64.0706191359160.4059@racer.site","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Marco Roeland","fromEmail":"marco.roeland@xs4all.nl","sentAt":"2007-06-19T13:24:56Z","receivedAt":"2007-06-19T13:24:56Z","isPatch":false,"sender":{"key":"marco.roeland@xs4all.nl","avatar":null},"body":"On Tuesday June 19th 2007 at 14:00 Johannes Schindelin wrote:\n\n> On Tue, 19 Jun 2007, Bill Lear wrote:\n> \n> > Also breaks (tar fails) if I do the 'make configure; ./configure'\n> > route.\n> \n> Then there is a test missing in configure.\n> \n> > /home/blear/build/git-1.5.2.2/utf8.c:328: undefined reference to `libiconv'\n> \n> You are missing libiconv.\n\nOn Linux there usually is no separate libiconv as this is integrated\ninto GNU libc. Most of the time this kind of error results when somehow\nthere _is_ a separate installation of libiconv under /usr/local/lib or\nsomething. An #include <iconv.h> then finds the version under\n/usr/local/include/iconv.h which has rather different definitions, due to\nusing all kind of macros.\n\nIf this is Bills situation try uninstalling the separate iconv package\nor at least temporarily rename its iconv.h header.\n-- \nMarco Roeland\n"},{"id":"45352","messageId":"18039.57099.57602.28299@lisa.zopyra.com","threadId":"8653","inReplyTo":"20070619132456.GA15023@fiberbit.xs4all.nl","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T13:50:03Z","receivedAt":"2007-06-19T13:50:03Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 15:24:56 (+0200) Marco Roeland writes:\n>On Tuesday June 19th 2007 at 14:00 Johannes Schindelin wrote:\n>\n>> On Tue, 19 Jun 2007, Bill Lear wrote:\n>> \n>> > Also breaks (tar fails) if I do the 'make configure; ./configure'\n>> > route.\n>> \n>> Then there is a test missing in configure.\n>> \n>> > /home/blear/build/git-1.5.2.2/utf8.c:328: undefined reference to `libiconv'\n>> \n>> You are missing libiconv.\n>\n>On Linux there usually is no separate libiconv as this is integrated\n>into GNU libc. Most of the time this kind of error results when somehow\n>there _is_ a separate installation of libiconv under /usr/local/lib or\n>something. An #include <iconv.h> then finds the version under\n>/usr/local/include/iconv.h which has rather different definitions, due to\n>using all kind of macros.\n>\n>If this is Bills situation try uninstalling the separate iconv package\n>or at least temporarily rename its iconv.h header.\n\nWell, I'll try that, but this is a fresh install of Centos 5, not a\ncustom-hacked OS, and I would think that git should build out of the\nbox on it.\n\nI checked and there is no iconv package (rpm).  I really don't want\nto have to temporarily rename a header.  I can't hand this out to\nthe rest of the company, some of whom do not have root access to\nbe able to rename header files.\n\n\nBill\n"},{"id":"45353","messageId":"18039.57163.667319.439210@lisa.zopyra.com","threadId":"8653","inReplyTo":"Pine.LNX.4.64.0706191359160.4059@racer.site","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T13:51:07Z","receivedAt":"2007-06-19T13:51:07Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 14:00:07 (+0100) Johannes Schindelin writes:\n>Hi,\n>\n>On Tue, 19 Jun 2007, Bill Lear wrote:\n>\n>> Also breaks (tar fails) if I do the 'make configure; ./configure'\n>> route.\n>\n>Then there is a test missing in configure.\n\nHere is the particular error:\n\ninstall git '/opt/git-1.5.2.2/bin'\nmake -C templates DESTDIR='' install\nmake[1]: Entering directory `/home/blear/build/git-1.5.2.2/templates'\ninstall -d -m755 '/opt/git-1.5.2.2/share/git-core/templates/'\n(cd blt && gtar cf - .) | \\\n\t(cd '/opt/git-1.5.2.2/share/git-core/templates/' && gtar xf -)\ngtar: This does not look like a tar archive\ngtar: Skipping to next header\ngtar: Archive contains obsolescent base-64 headers\ngtar: Error exit delayed from previous errors\nmake[1]: *** [install] Error 2\nmake[1]: Leaving directory `/home/blear/build/git-1.5.2.2/templates'\nmake: *** [install] Error 2\n\n\nBill\n"},{"id":"45354","messageId":"18039.57290.14570.879740@lisa.zopyra.com","threadId":"8653","inReplyTo":"Pine.LNX.4.64.0706191359160.4059@racer.site","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T13:53:14Z","receivedAt":"2007-06-19T13:53:14Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 14:00:07 (+0100) Johannes Schindelin writes:\n>\n>You are missing libiconv.\n\nHmm, don't think so:\n\n% ls -l /usr/local/lib/libiconv*\n-rw-r--r-- 1 root root     789 May 14 13:31 /usr/local/lib/libiconv.la\nlrwxrwxrwx 1 root root      17 May 14 13:31 /usr/local/lib/libiconv.so -> libiconv.so.2.4.0\nlrwxrwxrwx 1 root root      17 May 14 13:31 /usr/local/lib/libiconv.so.2 -> libiconv.so.2.4.0\n-rw-r--r-- 1 root root 1234292 May 14 13:31 /usr/local/lib/libiconv.so.2.4.0\n\n\nBill\n"},{"id":"45355","messageId":"Pine.LNX.4.64.0706191456350.4059@racer.site","threadId":"8653","inReplyTo":"18039.57290.14570.879740@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-06-19T13:57:28Z","receivedAt":"2007-06-19T13:57:28Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 19 Jun 2007, Bill Lear wrote:\n\n> On Tuesday, June 19, 2007 at 14:00:07 (+0100) Johannes Schindelin writes:\n> >\n> >You are missing libiconv.\n> \n> Hmm, don't think so:\n> \n> % ls -l /usr/local/lib/libiconv*\n> -rw-r--r-- 1 root root     789 May 14 13:31 /usr/local/lib/libiconv.la\n\nBut you do! Unless you say that gcc should also look in /usr/local/lib for \nlibraries.\n\nCiao,\nDscho\n"},{"id":"45356","messageId":"Pine.LNX.4.64.0706191457440.4059@racer.site","threadId":"8653","inReplyTo":"18039.57163.667319.439210@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-06-19T13:58:19Z","receivedAt":"2007-06-19T13:58:19Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 19 Jun 2007, Bill Lear wrote:\n\n> On Tuesday, June 19, 2007 at 14:00:07 (+0100) Johannes Schindelin writes:\n> >\n> >On Tue, 19 Jun 2007, Bill Lear wrote:\n> >\n> >> Also breaks (tar fails) if I do the 'make configure; ./configure'\n> >> route.\n> >\n> >Then there is a test missing in configure.\n> \n> Here is the particular error:\n> \n> install git '/opt/git-1.5.2.2/bin'\n> make -C templates DESTDIR='' install\n> make[1]: Entering directory `/home/blear/build/git-1.5.2.2/templates'\n> install -d -m755 '/opt/git-1.5.2.2/share/git-core/templates/'\n> (cd blt && gtar cf - .) | \\\n> \t(cd '/opt/git-1.5.2.2/share/git-core/templates/' && gtar xf -)\n> gtar: This does not look like a tar archive\n> gtar: Skipping to next header\n> gtar: Archive contains obsolescent base-64 headers\n> gtar: Error exit delayed from previous errors\n> make[1]: *** [install] Error 2\n> make[1]: Leaving directory `/home/blear/build/git-1.5.2.2/templates'\n> make: *** [install] Error 2\n\nWTF? gtar cannot read its own output?\n\nBe that as may, this is not git error.\n\nCiao,\nDscho\n"},{"id":"45360","messageId":"86wsy0qbfg.fsf@lola.quinscape.zz","threadId":"8653","inReplyTo":"Pine.LNX.4.64.0706191457440.4059@racer.site","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-06-19T14:13:55Z","receivedAt":"2007-06-19T14:13:55Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n\n> Hi,\n>\n> On Tue, 19 Jun 2007, Bill Lear wrote:\n>\n>> On Tuesday, June 19, 2007 at 14:00:07 (+0100) Johannes Schindelin writes:\n>> >\n>> >On Tue, 19 Jun 2007, Bill Lear wrote:\n>> >\n>> >> Also breaks (tar fails) if I do the 'make configure; ./configure'\n>> >> route.\n>> >\n>> >Then there is a test missing in configure.\n>> \n>> Here is the particular error:\n>> \n>> install git '/opt/git-1.5.2.2/bin'\n>> make -C templates DESTDIR='' install\n>> make[1]: Entering directory `/home/blear/build/git-1.5.2.2/templates'\n>> install -d -m755 '/opt/git-1.5.2.2/share/git-core/templates/'\n>> (cd blt && gtar cf - .) | \\\n>> \t(cd '/opt/git-1.5.2.2/share/git-core/templates/' && gtar xf -)\n>> gtar: This does not look like a tar archive\n>> gtar: Skipping to next header\n>> gtar: Archive contains obsolescent base-64 headers\n>> gtar: Error exit delayed from previous errors\n>> make[1]: *** [install] Error 2\n>> make[1]: Leaving directory `/home/blear/build/git-1.5.2.2/templates'\n>> make: *** [install] Error 2\n>\n> WTF? gtar cannot read its own output?\n>\n> Be that as may, this is not git error.\n\nIt is possible that cd is an alias outputting the target of cd.\nPeople do those kind of things.  It is also possible that the first cd\nfails and thus the first gtar is not run (though tar xf /dev/null is\nquiet here, so probably should be at the OP's site, too.).\n\n-- \nDavid Kastrup\n"},{"id":"45357","messageId":"20070619143000.GA15352@fiberbit.xs4all.nl","threadId":"8653","inReplyTo":"18039.57099.57602.28299@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Marco Roeland","fromEmail":"marco.roeland@xs4all.nl","sentAt":"2007-06-19T14:30:00Z","receivedAt":"2007-06-19T14:30:00Z","isPatch":false,"sender":{"key":"marco.roeland@xs4all.nl","avatar":null},"body":"On Tuesday June 19th 2007 at 08:50 Bill Lear wrote:\n\n> Well, I'll try that, but this is a fresh install of Centos 5, not a\n> custom-hacked OS, and I would think that git should build out of the\n> box on it.\n\nYes it should, but your error messages do suggest there is a mismatch\nbetween headers and libraries for the iconv functions. And as on Linux\nthose are in libc, which is always linked in, it suggests there is a roque\nheader perhaps!\n> \n> I checked and there is no iconv package (rpm).  I really don't want\n> to have to temporarily rename a header.  I can't hand this out to\n> the rest of the company, some of whom do not have root access to\n> be able to rename header files.\n\nYou might at least investigate if there is somehow another iconv.h\nheader besides the system one under /usr/include, that might have been\nused by the compiler instead of the standard one from GNU libc.\n-- \nMarco Roeland\n"},{"id":"45358","messageId":"18039.60598.264803.940960@lisa.zopyra.com","threadId":"8653","inReplyTo":"20070619143000.GA15352@fiberbit.xs4all.nl","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T14:48:22Z","receivedAt":"2007-06-19T14:48:22Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 16:30:00 (+0200) Marco Roeland writes:\n>On Tuesday June 19th 2007 at 08:50 Bill Lear wrote:\n>> \n>> I checked and there is no iconv package (rpm).  I really don't want\n>> to have to temporarily rename a header.  I can't hand this out to\n>> the rest of the company, some of whom do not have root access to\n>> be able to rename header files.\n>\n>You might at least investigate if there is somehow another iconv.h\n>header besides the system one under /usr/include, that might have been\n>used by the compiler instead of the standard one from GNU libc.\n\nOk, I moved all the *iconv* stuff in /usr/local/<blah> and now\nit builds ok.\n\nHowever, I still get this:\n\ninstall -d -m755 '/opt/git-1.5.2.2/share//git-core/templates/'\n(cd blt && tar cf - .) | \\\n\t(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)\ntar: This does not look like a tar archive\ntar: Skipping to next header\ntar: Archive contains obsolescent base-64 headers\ntar: Error exit delayed from previous errors\n\nSo, I did a make -k and it worked ok, aside from this error.\n\nI copied this line:\n\n(cd blt && tar cf - .) | \\\n\t(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)\n\ninto a file, chmod +x'd that file, and cd'd into templates and ran\nthe script.  I got the same error.  I then tried running it by\nhand from the command line:\n\n% cd templates\n% (cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates && tar xf -)\n\nand it worked fine.\n\n\nBill\n"},{"id":"45362","messageId":"86k5u0q8q9.fsf@lola.quinscape.zz","threadId":"8653","inReplyTo":"18039.60598.264803.940960@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-06-19T15:12:14Z","receivedAt":"2007-06-19T15:12:14Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Bill Lear <rael@zopyra.com> writes:\n\n> On Tuesday, June 19, 2007 at 16:30:00 (+0200) Marco Roeland writes:\n>>On Tuesday June 19th 2007 at 08:50 Bill Lear wrote:\n>>> \n>>> I checked and there is no iconv package (rpm).  I really don't want\n>>> to have to temporarily rename a header.  I can't hand this out to\n>>> the rest of the company, some of whom do not have root access to\n>>> be able to rename header files.\n>>\n>>You might at least investigate if there is somehow another iconv.h\n>>header besides the system one under /usr/include, that might have been\n>>used by the compiler instead of the standard one from GNU libc.\n>\n> Ok, I moved all the *iconv* stuff in /usr/local/<blah> and now\n> it builds ok.\n>\n> However, I still get this:\n>\n> install -d -m755 '/opt/git-1.5.2.2/share//git-core/templates/'\n                                         ^^^\n> (cd blt && tar cf - .) | \\\n> \t(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)\n                                   ^^^\n> tar: This does not look like a tar archive\n> tar: Skipping to next header\n> tar: Archive contains obsolescent base-64 headers\n> tar: Error exit delayed from previous errors\n>\n> So, I did a make -k and it worked ok, aside from this error.\n>\n> I copied this line:\n>\n> (cd blt && tar cf - .) | \\\n> \t(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)\n                                   ^^^\n> into a file, chmod +x'd that file, and cd'd into templates and ran\n> the script.  I got the same error.  I then tried running it by\n> hand from the command line:\n>\n> % cd templates\n> % (cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates\n>                                                     ^^^\n> && tar xf -)\n>\n> and it worked fine.\n\nNot sure whether this is the problem: either cd does not understasnd\nthe double slashes, or your shell used for scripts has modified cd to\noutput some stuff when it is working (people sometimes imprudently\nmake shell functions or aliases for this).\n\nTry writing something like\n\ntype cd\n\nin a script file and see what output you get.\n\n-- \nDavid Kastrup\n"},{"id":"45365","messageId":"18040.346.208040.842060@lisa.zopyra.com","threadId":"8653","inReplyTo":"86k5u0q8q9.fsf@lola.quinscape.zz","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T16:16:26Z","receivedAt":"2007-06-19T16:16:26Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 17:12:14 (+0200) David Kastrup writes:\n>Bill Lear <rael@zopyra.com> writes:\n>>...\n>> However, I still get this:\n>>\n>> install -d -m755 '/opt/git-1.5.2.2/share//git-core/templates/'\n>                                         ^^^\n>> (cd blt && tar cf - .) | \\\n>> \t(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)\n>                                   ^^^\n>> tar: This does not look like a tar archive\n>> tar: Skipping to next header\n>> tar: Archive contains obsolescent base-64 headers\n>> tar: Error exit delayed from previous errors\n>>\n>> So, I did a make -k and it worked ok, aside from this error.\n>>\n>> I copied this line:\n>>\n>> (cd blt && tar cf - .) | \\\n>> \t(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)\n>                                   ^^^\n>> into a file, chmod +x'd that file, and cd'd into templates and ran\n>> the script.  I got the same error.  I then tried running it by\n>> hand from the command line:\n>>\n>> % cd templates\n>> % (cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates\n>>                                                     ^^^\n>> && tar xf -)\n>>\n>> and it worked fine.\n>\n>Not sure whether this is the problem: either cd does not understasnd\n>the double slashes, or your shell used for scripts has modified cd to\n>output some stuff when it is working (people sometimes imprudently\n>make shell functions or aliases for this).\n>\n>Try writing something like\n>\n>type cd\n>\n>in a script file and see what output you get.\n\n% echo 'type cd' > foo\n% chmod +x foo\n% ./foo\ncd is a shell builtin\n% bash --version\nGNU bash, version 3.1.17(1)-release (x86_64-redhat-linux-gnu)\nCopyright (C) 2005 Free Software Foundation, Inc.\n\nI also tried using the double-slash on the command line.  It worked\nfine.  I tried a single slash from the script and it did not work.\n\n% cd templates\n% cat foo\nset -x\ntype tar\ntype cd\n(cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates && tar xf -)\n% ./foo\n++ type tar\ntar is /bin/tar\n++ type cd\ncd is a shell builtin\n++ cd blt\n++ tar cf - .\n++ cd /opt/git-1.5.2.2/share/git-core/templates\n++ tar xf -\ntar: This does not look like a tar archive\ntar: Skipping to next header\ntar: Archive contains obsolescent base-64 headers\ntar: Error exit delayed from previous errors\n\n\nBill\n"},{"id":"45377","messageId":"20070619200939.GA4180@steel.home","threadId":"8653","inReplyTo":"18040.346.208040.842060@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-06-19T20:09:39Z","receivedAt":"2007-06-19T20:09:39Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Bill Lear, Tue, Jun 19, 2007 18:16:26 +0200:\n> % cat foo\n> set -x\n> type tar\n> type cd\n> (cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates && tar xf -)\n\nwhat would you see if your script contained:\n\n    set -x\n    (cd blt && tar cf - .) |less\n\n?\nDoes the output look like a tar archive to you?\nCan you share it with us if you're not sure?\n"},{"id":"45380","messageId":"18040.17211.575543.403408@lisa.zopyra.com","threadId":"8653","inReplyTo":"20070619200939.GA4180@steel.home","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T20:57:31Z","receivedAt":"2007-06-19T20:57:31Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 22:09:39 (+0200) Alex Riesen writes:\n>Bill Lear, Tue, Jun 19, 2007 18:16:26 +0200:\n>> % cat foo\n>> set -x\n>> type tar\n>> type cd\n>> (cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates && tar xf -)\n>\n>what would you see if your script contained:\n>\n>    set -x\n>    (cd blt && tar cf - .) |less\n>\n>?\n>Does the output look like a tar archive to you?\n\nWell, not sure.  Lots of gobbledygook.\n\n>Can you share it with us if you're not sure?\n\nOk, I've tried to send a limited amount of data, hopefully useful.  If\nI redirect to a file:\n\n(cd blt && tar cf - .) > tar.tar\n\nand then try to view it with tar:\n\n% tar tvf tar.tar\n\nI get the same error as before.  I sent the output through\n'od' as so:\n\n(cd blt && tar cf - .) | od -a | head -50\n\nHere is the result of that:\n\n0000000   /   h   o   m   e   /   b   l   e   a   r   /   b   u   i   l\n0000020   d   /   g   i   t   -   1   .   5   .   2   .   2   /   t   e\n0000040   m   p   l   a   t   e   s   /   b   l   t  nl   .   / nul nul\n0000060 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0000220   0   0   0   0   7   5   5 nul   0   0   0   1   3   5   0 nul\n0000240   0   0   0   0   1   5   4 nul   0   0   0   0   0   0   0   0\n0000260   0   0   0 nul   1   0   6   3   5   7   6   5   2   7   4 nul\n0000300   0   1   0   7   2   4 nul  sp   5 nul nul nul nul nul nul nul\n0000320 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0000440 nul nul nul nul nul nul nul nul nul nul nul nul nul   u   s   t\n0000460   a   r  sp  sp nul   b   l   e   a   r nul nul nul nul nul nul\n0000500 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0000520 nul nul nul nul nul   s   o   f   t   w   a   r   e nul nul nul\n0000540 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0001040 nul nul nul nul nul nul nul nul nul nul nul nul   .   /   d   e\n0001060   s   c   r   i   p   t   i   o   n nul nul nul nul nul nul nul\n0001100 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0001220   0   0   0   0   6   4   4 nul   0   0   0   1   3   5   0 nul\n0001240   0   0   0   0   1   5   4 nul   0   0   0   0   0   0   0   0\n0001260   0   7   2 nul   1   0   6   3   5   7   6   5   2   7   4 nul\n0001300   0   1   3   1   7   1 nul  sp   0 nul nul nul nul nul nul nul\n0001320 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0001440 nul nul nul nul nul nul nul nul nul nul nul nul nul   u   s   t\n0001460   a   r  sp  sp nul   b   l   e   a   r nul nul nul nul nul nul\n0001500 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0001520 nul nul nul nul nul   s   o   f   t   w   a   r   e nul nul nul\n0001540 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0002040 nul nul nul nul nul nul nul nul nul nul nul nul   U   n   n   a\n0002060   m   e   d  sp   r   e   p   o   s   i   t   o   r   y   ;  sp\n0002100   e   d   i   t  sp   t   h   i   s  sp   f   i   l   e  sp   t\n0002120   o  sp   n   a   m   e  sp   i   t  sp   f   o   r  sp   g   i\n0002140   t   w   e   b   .  nl nul nul nul nul nul nul nul nul nul nul\n0002160 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0003040 nul nul nul nul nul nul nul nul nul nul nul nul   .   /   b   r\n0003060   a   n   c   h   e   s   / nul nul nul nul nul nul nul nul nul\n0003100 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0003220   0   0   0   0   7   5   5 nul   0   0   0   1   3   5   0 nul\n0003240   0   0   0   0   1   5   4 nul   0   0   0   0   0   0   0   0\n0003260   0   0   0 nul   1   0   6   3   5   7   6   5   2   7   3 nul\n0003300   0   1   2   5   1   0 nul  sp   5 nul nul nul nul nul nul nul\n0003320 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n\nIf I run this from the command-line, instead of a script, I get\nthis (and if it is redirected to a file instead of 'od', tar\ncan read it):\n\n0000000   .   / nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0000020 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0000140 nul nul nul nul   0   0   0   0   7   5   5 nul   0   0   0   1\n0000160   3   5   0 nul   0   0   0   0   1   5   4 nul   0   0   0   0\n0000200   0   0   0   0   0   0   0 nul   1   0   6   3   5   7   6   5\n0000220   2   7   4 nul   0   1   0   7   2   4 nul  sp   5 nul nul nul\n0000240 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0000400 nul   u   s   t   a   r  sp  sp nul   b   l   e   a   r nul nul\n0000420 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0000440 nul nul nul nul nul nul nul nul nul   s   o   f   t   w   a   r\n0000460   e nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0000500 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0001000   .   /   d   e   s   c   r   i   p   t   i   o   n nul nul nul\n0001020 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0001140 nul nul nul nul   0   0   0   0   6   4   4 nul   0   0   0   1\n0001160   3   5   0 nul   0   0   0   0   1   5   4 nul   0   0   0   0\n0001200   0   0   0   0   0   7   2 nul   1   0   6   3   5   7   6   5\n0001220   2   7   4 nul   0   1   3   1   7   1 nul  sp   0 nul nul nul\n0001240 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0001400 nul   u   s   t   a   r  sp  sp nul   b   l   e   a   r nul nul\n0001420 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0001440 nul nul nul nul nul nul nul nul nul   s   o   f   t   w   a   r\n0001460   e nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0001500 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0002000   U   n   n   a   m   e   d  sp   r   e   p   o   s   i   t   o\n0002020   r   y   ;  sp   e   d   i   t  sp   t   h   i   s  sp   f   i\n0002040   l   e  sp   t   o  sp   n   a   m   e  sp   i   t  sp   f   o\n0002060   r  sp   g   i   t   w   e   b   .  nl nul nul nul nul nul nul\n0002100 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0003000   .   /   b   r   a   n   c   h   e   s   / nul nul nul nul nul\n0003020 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0003140 nul nul nul nul   0   0   0   0   7   5   5 nul   0   0   0   1\n0003160   3   5   0 nul   0   0   0   0   1   5   4 nul   0   0   0   0\n0003200   0   0   0   0   0   0   0 nul   1   0   6   3   5   7   6   5\n0003220   2   7   3 nul   0   1   2   5   1   0 nul  sp   5 nul nul nul\n0003240 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n*\n0003400 nul   u   s   t   a   r  sp  sp nul   b   l   e   a   r nul nul\n0003420 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0003440 nul nul nul nul nul nul nul nul nul   s   o   f   t   w   a   r\n0003460   e nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n0003500 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n\n\nBill\n"},{"id":"45381","messageId":"7vk5tzwsxn.fsf@assigned-by-dhcp.pobox.com","threadId":"8653","inReplyTo":"86k5u0q8q9.fsf@lola.quinscape.zz","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-06-19T21:11:32Z","receivedAt":"2007-06-19T21:11:32Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"David Kastrup <dak@gnu.org> writes:\n\n> Not sure whether this is the problem: either cd does not understasnd\n> the double slashes, or your shell used for scripts has modified cd to\n> output some stuff when it is working (people sometimes imprudently\n> make shell functions or aliases for this).\n>\n> Try writing something like\n>\n> type cd\n>\n> in a script file and see what output you get.\n\nA one-word guess: CDPATH.\n\nBill, setting CDPATH in your interactive shell as a shell\nvariable is Ok, but exporting it as an environment does not make\nmuch sense.\n\nReally.\n"},{"id":"45382","messageId":"Pine.LNX.4.64.0706192210430.4059@racer.site","threadId":"8653","inReplyTo":"18040.17211.575543.403408@lisa.zopyra.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-06-19T21:11:42Z","receivedAt":"2007-06-19T21:11:42Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 19 Jun 2007, Bill Lear wrote:\n\n> (cd blt && tar cf - .) | od -a | head -50\n> \n> Here is the result of that:\n> \n> 0000000   /   h   o   m   e   /   b   l   e   a   r   /   b   u   i   l\n> 0000020   d   /   g   i   t   -   1   .   5   .   2   .   2   /   t   e\n> 0000040   m   p   l   a   t   e   s   /   b   l   t  nl   .   / nul nul\n> 0000060 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul\n\nAs is easy to see, what has been suggested earlier is true. The cd \n(idiotically) outputs the path to stdout.\n\nHth,\nDscho\n"},{"id":"45383","messageId":"18040.18394.118735.510596@lisa.zopyra.com","threadId":"8653","inReplyTo":"7vk5tzwsxn.fsf@assigned-by-dhcp.pobox.com","subject":"Re: Errors building git-1.5.2.2 on 64-bit Centos 5","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-06-19T21:17:14Z","receivedAt":"2007-06-19T21:17:14Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, June 19, 2007 at 14:11:32 (-0700) Junio C Hamano writes:\n>...\n>A one-word guess: CDPATH.\n\nA one-word reply: that-was-correct-thank-you-and-good-guess.\n\n\nBill\n"}]}