Re: [gtk-list] Re: Linking problem with FreeBSD



[lots of stuff about elf deleted]

> > I don't think the problem per-se is that the patches aren't
> > beeing backfeeded. Most of the stuff in the FreeBSD port
> > has been sent to us at one time or the other. The problem
> > seems to be more that a lot of the patches are FreeBSD
> > specific instead of being suitable for inclusion in the
> > mainline sources.
> 
> Where it concerns hacking makefiles to use variables set for use with the
> ports system, yes, the rest might not be so specific. I'll look over them
> again.
> 
> >> > Anybody who made it through the above, probably understands
> >> > why I've sort of given up, and am waiting for somebody
> >> > who understands, and has access to, *BSD boxes, to send
> >> > in patch to fix things.
> >> 
> >> I have access to BSD boxen, FreeBSD in particular and probably able to
> >> test on OpenBSD and NetBSD as well.
> > 
> > Help getting this working is much appreciated.
> 
> Please note that the FreeBSD system I have easy access on (my own box) is
> ELF. And apart from changing ltconfig to create shared libraries for 4.0 it
> worked like a charm. Except gettext, but I'm looking into that.
> 
> [ snip link/library names ]
> 
> >> All of the above will not work with ELF.
> >> 
> >> That needs a library named libgdk-1.1.so.14 
> >  
> > It is created currently, I believe.
> 
> *nods* Correct.
> 
> >> Besides aout libraries can also use libgdk-1.1.so.14.1 as name. So I
> >> don't see where the problem is coming from.
> > 
> > The problem is that we currently put -lgtk in the 
> > link line (and would like to continue doing this). 
> > On a standard ELF system, we have a symlinks from
> > 
> >  libgtk.so => libgtk-1.1.so.14.0.1
> >  libgtk-1.1.so => libgtk-1.1.so.14.0.1
> > 
> > and we write a soname of "libgtk-1.1.so" into
> > the library.
> > 
> > On aout systems, this doesn't work at all, since
> > the linker (I think) actually records the library
> > filename it found at linktime and uses that 
> > at runtime.
> 
> The linker currently in use on FreeBSD CURRENT (4.0) is:
> 
> GNU ld 2.9.1
> 
> My guess is that this is the same version for 2.2.x and 3.x
> 
I'm not sure about my linker version, I can't get to the sources right now.
But it was my understanding that one of the major reasons to switch
to elf was that we then could use the latest GNU stuff again, since
they dropped aout support some time ago, and the 2.2.x range was still 
using the old tools.

Anyway, it looks like Owen's proposal seems to make the most sense, but 
I think the method should work for all aout platforms. Though I must 
admit that I'm not sure about 2.2.8 (+).

(Jeroen do you know someone to talk to about this, who knows what the deal
is with aout?)

All I can say is that when gtk-config was still specifying -lgtk-1.1
I could link without problems, and now it doesn't see the shared libraries
anymore and links with the static ones.

Regards,
Marc.

----------------------------------------------------
Marc van Kempen                 BowTie Technology     
Email: marc@bowtie.nl            WWW & Databases
tel. +31 40 2 43 20 65         
fax. +31 40 2 44 21 86         http://www.bowtie.nl
----------------------------------------------------





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