help-hurd
[Top][All Lists]
Advanced

[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
error...

gcc -Wl,-rpath-link=.:../libcons/:../libdiskfs/:../libfshelp/:../libftpconn/:
../libhurdbugaddr/:../libihash/:../libiohelp/:../libnetfs/:../libpager/:
../libpipe/:../libports/:../libps/:../libshouldbeinlibc/:../libstore/:
../libthreads/:../libtrivfs/
-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 
`diskfs_check_readonly':
/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
`diskfs_check_readonly':
/src/hurd/libdiskfs/readonly.c:34: multiple definition of
`diskfs_hard_readonly'
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/libhurdbugaddr.so ../libdiskfs/libdiskfs.so
../libiohelp/libiohelp.so ../libfshelp/libfshelp.so
../libstore/libstore.so ../libpager/libpager.so
../libthreads/libthreads.so ../libports/libports.so
../libihash/libihash.so ../libshouldbeinlibc/libshouldbeinlibc.so '-Wl,-)'
/usr/lib/ld.so.1(.data+0x5c): multiple definition of
`__hurd_threadvar_stack_offset@@GLIBC_2.2.6'
/usr/bin/ld: /usr/lib/ld.so.1: indirect symbol
`__hurd_threadvar_stack_offset' to
`__hurd_threadvar_stack_offset@@GLIBC_2.2.6' is a loop
/usr/lib/ld.so.1: could not read symbols: Invalid operation

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

Any and all help appreciated.

Thanks,

Greg Buchholz




reply via email to

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