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

Bug#252943: gnat-3.3: Libgnat seems to be build without -fPIC on amd64



libgnat first has to be "ported" to build the shared library. gcc-3.4
already has this support. I won't add new packages to gcc-3.3 before
sarge is released.

Goswin von Brederlow writes:
> Package: gnat-3.3
> Version: 1:3.3.4-1
> Severity: normal
> 
> Hi,
> 
> you probably can't do anything about but maybe you can check if the same
> happens on other archs, ia64 for example.
> 
> It seems like libgnat is build without -fPIC
> 
> O|114.41|gnatgcc -o debian/tmp/libgnadeodbc.so.1.5.1 -shared -fPIC debian/tmp/obj/*.o \
> O|114.41|       -Wl,--soname,libgnadeodbc.so.1 \
> O|114.41|       -L/usr/lib/gcc-lib/`gnatgcc -dumpmachine`/`gnatgcc -dumpversion`/adalib -lgnat
> E|115.09|/usr/bin/ld: /usr/lib/gcc-lib/x86_64-linux/3.3.4/adalib/libgnat.a(a-except.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
> E|115.10|/usr/lib/gcc-lib/x86_64-linux/3.3.4/adalib/libgnat.a: could not read symbols: Bad value
> E|115.10|collect2: ld returned 1 exit status



Reply to: