"Gabor Z. Papp" <g...@papp.hu> wrote: > lo lo, > > trying to link tar 1.27 with static libacl 2.2.51: > > Making all in src > make[2]: Entering directory '/home/gzp/src/tar-1.27/src' > gcc -std=gnu99 -g -O2 -o tar buffer.o checkpoint.o compare.o create.o > delete.o exit.o extract.o xheader.o incremen.o list.o misc.o names.o sparse.o > suffix.o system.o tar.o transform.o unlink.o update.o utf8.o warning.o > xattrs.o -lacl ../lib/libtar.a ../gnu/libgnu.a -lrt -lacl > ../gnu/libgnu.a(quotearg.o): In function `quote': > /home/gzp/src/tar-1.27/gnu/quotearg.c:968: multiple definition of `quote' > /pkg/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../libacl.a(quote.o):/home/gzp/src/acl-2.2.51/libmisc/quote.c:26: > first defined here > collect2: error: ld returned 1 exit status > Makefile:1256: recipe for target 'tar' failed > make[2]: *** [tar] Error 1
Looks like a linker bug. The official link rules are left to right - take the first symbol with the requested name. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily