[Top][All Lists]

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

static linking and isofs9660

From: Greg Buchholz
Subject: static linking and isofs9660
Date: Sat, 30 Aug 2003 01:13:15 +0100 (BST)

        I've been trying to statically link the isofs9660 translator (for
use in a bootable cd) and I have been unsuccessful so far.  My best idea
was to try...

make  LDFLAGS="$LDFLAGS -static"

...while in the ../isofs/ directory.  This resulted in the following

gcc -Wl,-rpath-link=.:../libcons/:../libdiskfs/:../libfshelp/:../libftpconn/:
-std=gnu99 -Wall -g -O3 -g -O2 -static -uargp_program_bug_address -o
iso9660fs inode.o main.o lookup.o pager.o rr.o \
      '-Wl,-(' ../libhurdbugaddr/libhurdbugaddr.a ../libdiskfs/libdiskfs.a
../libiohelp/libiohelp.a ../libfshelp/libfshelp.a ../libstore/libstore.a
../libpager/libpager.a ../libthreads/libthreads.a ../libports/libports.a
../libihash/libihash.a ../libshouldbeinlibc/libshouldbeinlibc.a '-Wl,-)'

../libdiskfs/libdiskfs.a(readonly.o)(.data+0x0): In function 
/src/hurd/libdiskfs/readonly.c:34: multiple definition of `diskfs_readonly'
main.o(.data+0x28):/src/hurd/isofs/main.c:59: first defined here
../libdiskfs/libdiskfs.a(readonly.o)(.data+0x4): In function
/src/hurd/libdiskfs/readonly.c:34: multiple definition of
main.o(.data+0x2c):/src/hurd/isofs/main.c:62: first defined here

collect2: ld returned 1 exit status
make: *** [iso9660fs] Error 1

...Anyone care to take a guess on the proper way to get a statically
linked isofs9660 translator?  I also tried editing the Makeconf file and
added '-static' to the compiler flags, but that resulted in this error...

   '-Wl,-(' ../libhurdbugaddr/ ../libdiskfs/
../libiohelp/ ../libfshelp/
../libstore/ ../libpager/
../libthreads/ ../libports/
../libihash/ ../libshouldbeinlibc/ '-Wl,-)'
/usr/lib/ multiple definition of
/usr/bin/ld: /usr/lib/ indirect symbol
`__hurd_threadvar_stack_offset' to
`__hurd_threadvar_stack_offset@@GLIBC_2.2.6' is a loop
/usr/lib/ could not read symbols: Invalid operation

collect2: ld returned 1 exit status
make: *** [iso9660fs] Error 1

Any and all help appreciated.


Greg Buchholz

reply via email to

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