Subject: compilation problems
To: None <netbsd-help@netbsd.org>
From: Brook Milligan <brook@evolution.nmsu.edu>
List: netbsd-help
Date: 03/10/2000 21:56:24
I'm trying to compile libffi (foreign function interface) and am
getting the following error:
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O2 -c ./x86/ffi.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O2 -c -fPIC -DPIC ./x86/ffi.c
mv -f ffi.o ffi.lo
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O2 -c ./x86/ffi.c >/dev/null 2>&1
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O2 -c ./x86/sysv.S
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O2 -c -fPIC -DPIC ./x86/sysv.S
mv -f sysv.o sysv.lo
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O2 -c ./x86/sysv.S >/dev/null 2>&1
/bin/sh ../libtool --mode=link cc -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o libffi.la -rpath /usr/pkg/lib -version-info 2:3:1 debug.lo prep_cif.lo types.lo ffi.lo sysv.lo
rm -f .libs/libffi.la .libs/libffi.* .libs/libffi.*
/usr/bin/ld -Bshareable -o .libs/libffi.so.2.3 debug.lo prep_cif.lo types.lo ffi.lo sysv.lo
ld: sysv.lo: RRS text relocation at 0x40f for "ffi_prep_args"
I am not enough of a shared library wizard to know what to do. Are
these the right compiler/linker flags to be using?
If I go ahead and install the library, when I run somthing linked
against the shared library there is an "unresolved symbol" error for
the same symbol that is relocated above.
Any help would be _greatly_ appreciated.
Thanks,
Brook