Re: Error building libgtkada2
On Wed, Apr 27, 2005 at 04:39:28PM +0200, Alexander Jede wrote:
> I want to install gnat-gps and need the libgtkada2-2.4.0 package.
> trying to compile the source-code with "dpkg-buildpackage -rfakeroot -us
> -uc -d"(-d because I get the failer, that he can't find the gnat package
> although it is installed) , downloaded from the debian-website,
> I get this error:
>
[snip]
> /usr/bin/ld: /usr/lib/gcc-lib/x86_64-linux/3.3.5/adalib/libgnat.a(a-chahan.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
This message too looks a bit odd. Are you building a dynamic or
staticly linked program? It appears to be trying to include the static
libgnat.a (not that it appears to exist if the line below is right).
Maybe the below means could not use libgnat.a since amd64 does not
permit mixing PIC and non PIC (position independant code) as far as I
know. i386 does as do some other architectures (which results in
'broken' packages working on i386 but failing on other systems).
> /usr/lib/gcc-lib/x86_64-linux/3.3.5/adalib/libgnat.a: could not read
Which gnat package did you install?
On my i386 system (which was handy) I see this:
rceng02:/usr/src# apt-file search libgnat.a
gnat: usr/lib/gcc-lib/i486-linux/2.8.1/adalib/libgnat.a
gnat: usr/lib/gcc-lib/i486-linux/2.8.1/adalib/libgnat.a
gnat-3.3: usr/lib/gcc-lib/i486-linux/3.3.5/adalib/libgnat.a
gnat-3.3: usr/lib/gcc-lib/i486-linux/3.3.5/adalib/libgnat.a
gnat-3.4: usr/lib/gcc/i486-linux/3.4.4/adalib/libgnat.a
gnat-3.4: usr/lib/gcc/i486-linux/3.4.4/adalib/libgnat.a
Which I take to mean the package gnat-3.3 is what you need (assuming one
exists on amd64). If it isn't 3.3.5 version of gnat-3.3 then it won't
do you any good. What package did dpkg-buildpackage say was missing?
Len Sorensen
Reply to: