|
From: Damyan I. <dm...@de...> - 2010-08-31 05:19:26
|
-=| Leonardo M. Ramé, Mon, Aug 30, 2010 at 04:42:07PM -0700 |=-
> I'm trying to compile Firebird 2.1.3 on Freebsd 8.1 Amd64 using this procedure, without success:
>
> /usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o): relocation R_X86_64_32S
> can not be used when making a shared object; recompile with -fPIC
> /usr/lib/libsupc++.a: could not read symbols: Bad value
> gmake[2]: *** [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1
I think the linker complains because libsupc++.a was built without
-fPIC and therefore is not suitable for a shared object that is
created for dynamic linking, such as libfbclient.so.
If recompiling libsupc++ with -fPIC is not feasible, you may be
interested in this patch[1] from the Debian package which replaces
static linking with libsupc++.a with dynamic linking with libstdc++.
[1] http://git.debian.org/?p=pkg-firebird/2.1.git;a=blob;f=debian/patches/no-static-linkage.patch;hb=HEAD
|