Bug 69

Summary: tar refuses to build
Product: buildroot Reporter: Jan Kretschmer <kretschi>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: buildroot, jacmet
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target: i386
Build:

Description Jan Kretschmer 2009-01-24 14:49:31 UTC
The following error is produced by tar-1.18:

../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_putc':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:233: multiple definition of `argp_fmtstream_putc'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:233: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_point':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:279: multiple definition of `argp_fmtstream_point'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:279: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_set_wmargin':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:267: multiple definition of `argp_fmtstream_set_wmargin'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:267: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_set_rmargin':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:255: multiple definition of `argp_fmtstream_set_rmargin'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:255: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_set_lmargin':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:243: multiple definition of `argp_fmtstream_set_lmargin'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:243: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_write':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:207: multiple definition of `argp_fmtstream_write'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:207: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_puts':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:220: multiple definition of `argp_fmtstream_puts'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:220: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_point':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:279: multiple definition of `argp_fmtstream_point'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:279: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_set_wmargin':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:267: multiple definition of `argp_fmtstream_set_wmargin'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:267: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_set_rmargin':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:255: multiple definition of `argp_fmtstream_set_rmargin'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:255: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_set_lmargin':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:243: multiple definition of `argp_fmtstream_set_lmargin'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:243: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_putc':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:233: multiple definition of `argp_fmtstream_putc'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:233: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_write':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:207: multiple definition of `argp_fmtstream_write'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:207: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_puts':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/argp-fmtstream.h:220: multiple definition of `argp_fmtstream_puts'
tar.o:/usr/src/svn/buildroot-test/build_i386/tar-1.18/src/../lib/argp-fmtstream.h:220: first defined here
../lib/libtar.a(close-stream.o): In function `close_stream':
/usr/src/svn/buildroot-test/build_i386/tar-1.18/lib/close-stream.c:56: warning: This version of __fpending returns bytes remaining in buffer for both narrow and wide streams.  glibc's version returns wide chars in buffer for the wide stream case.

Perhaps we need a newer Version of tar or a patch to agree with the newest gcc?
Comment 1 Bernhard 2009-01-26 14:10:15 UTC
you should be using tar from busybox in the first place.
Comment 2 Peter Korsgaard 2009-01-26 14:21:49 UTC
I agree that the current situation isn't optimal - Is there any particular reason why you want to use the GNU tar version, instead of the one in busybox? As you probably noticed, most people use the busybox version so the GNU one doesn't get much testing in BR.

I would prefer to mark the gnu version as DEPRECATED.

Let me know what you think.
Comment 3 Bernhard 2009-01-26 14:35:05 UTC
Just force HIDE_OTHERS to yes unconditionally, i'd say.
Comment 4 Jan Kretschmer 2009-01-26 23:08:52 UTC
The Gnu Tar is included by the "generic development system"-target. So it is marked as a dependency, if you choose the generic development system, isn't it?
I never activated the gnu-tar to be build explicitly, so I never thought about alternatives ;)
Comment 5 Peter Korsgaard 2009-03-01 20:19:49 UTC
Fixed by upgrading to tar 1.21