bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Cross static build failure


From: John Wyatt
Subject: [Bug-tar] Cross static build failure
Date: Wed, 31 Dec 2003 15:07:16 -0800 (PST)

versions affected 1.13.90, 1.13.92, possibly cvs
distro Slackware 9.1, little modifications
gcc 3.2.3, pentium 4,

Purpose
Building tar for an lfs(linux from scratch) toolchain,
using the option to go competly static.

Commands (Note: configure was cut off in the email)
LDFLAGS="-static" ./configure --prefix=/tools
--disable-nls
make
make install

Result
make[1]: Entering directory
`/mnt/lfs/tools/tar-1.13.92/m4'
make[2]: Entering directory
`/mnt/lfs/tools/tar-1.13.92/m4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory
`/mnt/lfs/tools/tar-1.13.92/m4'
make[1]: Leaving directory
`/mnt/lfs/tools/tar-1.13.92/m4'
Making install in src
make[1]: Entering directory
`/mnt/lfs/tools/tar-1.13.92/src'
gcc -s  -g -O2  -static -o tar  buffer.o compare.o
create.o delete.o extract.o xheader.o incremen.o
list.o mangle.o misc.o names.o rtapelib.o sparse.o
system.o tar.o update.o ../lib/libtar.a  -lrt
/usr/lib/libc.a(mktime.o)(.text+0x200): In function
`__mktime_internal':
: multiple definition of `__mktime_internal'
../lib/libtar.a(mktime.o)(.text+0x230):/mnt/lfs/tools/tar-1.13.92/lib/mktime.c:238:
first defined here
/tools/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
Warning: size of symbol `__mktime_internal' changed
from 1334 in ../lib/libtar.a(mktime.o) to 1289 in
../lib/libtar.a(mktime.o)
collect2: ld returned 1 exit status
make[1]: *** [tar] Error 1
make[1]: Leaving directory
`/mnt/lfs/tools/tar-1.13.92/src'
make: *** [install-recursive] Error 1

Do note that 1.13.25 still works in a static build






reply via email to

[Prev in Thread] Current Thread [Next in Thread]