Re: [gtk-list] Re: Linking problem with FreeBSD
- From: Jeroen Ruigrok/Asmodai <asmodai wxs nl>
- To: Owen Taylor <otaylor gtk org>
- Cc: GTK Questions <gtk-list redhat com>, marc bowtie nl
- Subject: Re: [gtk-list] Re: Linking problem with FreeBSD
- Date: Sun, 07 Feb 1999 18:29:53 +0100 (CET)
Sorry if the reply format is kind of lame, but my mailer died on this
particular mail... I'll spare the gory details. It involved /tmp filling up.
On 07-Feb-99 Owen Taylor wrote:
> Marc van Kempen <marc@bowtie.nl> writes:
> net/openbsd:
> library_name = libgtk-1.1.so.14.1
> symlinks = NONE
>
> sunos
> library_name = libgtk-1.1.so.14.1
> symlinks = libgtk.so.14.1
>
> freebsd-elf:
> library_name = libgtk-1.1.so.14.1
> symlinks = libgtk.so
Hey, wait a second. If the library getting created ends with .so.14.1 then
it won't work under FreeBSD's with ELF. The library naming must adhere to
the .so.n scheme. I hope that was a typo Owen?
> So it basically looks, to me, not having any of these
> platforms to test:
>
> On freebsd-aout, our current scheme doesn't work
> an incorrect symlink is created that confuses things.
>
> So, I think, it might sort of work, to say
>
> "if the version_type is sunos, or freebsd-aout, and no
> soname_spec is set, then put -lgtk-1.1 into gtk-config."
>
> I can implement that, and have some confidence that it
> will at least improve things a bit, but I have the
> strong feelings:
>
> a) I don't really understand the situation
> b) libtool has some problems with it's handling of $release
>
> On freebsd-elf I have no idea how anything is working at all, if
> it is, from reading the sources. FreeBSD-elf presumably has the
> ability to set the soname, but libtool doesn't seem to be doing
> so. When I asked one of the of the FreeBSD-ports people
> who was working on GLib about this, they sort of shrugged
> and said: "we basically ignore the shared library versioning
> that the package does and make up our own." Which
> didn't exactly increase my confidence level.
Whom ye spoke with btw? With most ports we simply use the library names and
versions as they come with the package. IMHO the current ports with
gtk/glib are patched up too much without the patches being backfeeded to
the efforts for review.
> 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.
>> 2. Add an extra symbolic link
>>
>> Currently these links are being made:
>>
>> libgdk-1.1.so.14.1
>
> libgdk.a
>> libgdk.la
>> libgdk.so -> libgdk-1.1.so.14.1
>>
>> Adding this link solves the problem:
>>
>> libgdk.so.14.1 -> libgdk-1.1.so.14.1
>
>This is an incorrect link, because it defeats our
>naming scheme. Once we have a 1.3 development
>branch, we might eventually have a libgdk-1.3.so.14.1,
>which will be incompatible with libgdk-1.1.so.14.1.
All of the above will not work with ELF.
That needs a library named libgdk-1.1.so.14
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.
---
Jeroen Ruigrok van der Werven join #FreeBSD on Undernet
asmodai(at)wxs.nl Time is merely a residue of Reality...
Network/Security Specialist <http://home.wxs.nl/~asmodai>
*BSD: Powered by Knowledge & Know-how <http://www.freebsd.org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]