bug-coreutils
[Top][All Lists]
Advanced

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

Creating static binaries


From: Edward . Janowiak
Subject: Creating static binaries
Date: Mon, 26 Apr 2004 15:37:12 -0600

I'm trying to create static binaries on Solaris 8 (Sparc) of the
coreutilities for use in an intrusion response kit. I've tried both:

./configure
make CC="gcc -static"

and 

LDFLAGS=-static ./configure --prefix=/usr/local/coreutils
make

The latter gives me the following error on make:

gcc  -g -O2  -static -o [  lbracket.o ../lib/libfetish.a  ../lib/libfetish.a
-lgen 
ld: fatal: symbol `opterr' is multiply-defined:
        (file ../lib/libfetish.a(getopt.o) and file
/usr/lib/libc.a(opt_data.o));
ld: fatal: symbol `optind' is multiply-defined:
        (file ../lib/libfetish.a(getopt.o) and file
/usr/lib/libc.a(opt_data.o));
ld: fatal: symbol `optopt' is multiply-defined:
        (file ../lib/libfetish.a(getopt.o) and file
/usr/lib/libc.a(opt_data.o));
ld: fatal: File processing errors. No output written to [
collect2: ld returned 1 exit status



I can post the previous attempt, if it's important.

I have gcc 3.3.2 and glibc 2.2.3, both obtained from Sunfreeware.

My PATH is:
/sbin:/usr/sbin:/usr/bin:/etc:/usr/openwin/bin:/usr/dt/lib:/opt/perf/bin:/op
t/VRTSvmsa/bin:/opt/RMCmem/bin:/usr/ucb:/usr/platform/sun4u/sbin:/usr/openv/
netbackup/bin:/usr/openv/netbackup/bin/goodies:/usr/openv/netbackup/bin/admi
ncmd:/usr/openv/volmgr/bin:/opt/hpnp/bin:/usr/local/bin:/usr/ccs/bin:/usr/uc
b

My LD_LIBRARY_PATH is blank.

Any direction at this point would be appreciated.

Thank you.




reply via email to

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