[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #13800] link/dependency order issue (e.g. amd64-unknown-freebsd
From: |
David Ayers |
Subject: |
Re: [bug #13800] link/dependency order issue (e.g. amd64-unknown-freebsd7.0) |
Date: |
Fri, 15 Jul 2005 12:45:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 |
Pete French wrote:
>>The real bug does indeed lie in the internal initialization process of the
>>FreeBSD libpthread library. In this case when libobjc is not excplitly linked
>
>
> ... this is probably the root cause of the issue I am seeing as well.
>
>
>>I'll leave it up to the -make maintainers to decide what to do. My current
>>tendency is to close this bug as invalid at least until someone verifies that
>>the issue exists with released versions of FreeBSD. And even then a
>>workaround should probably be done in libobjc (which seems to be installed by
>>FreeBSD but if libobjc needs updating you might as well update libpthread
>>instead and fix the bug properly).
>
>
> What would the actual fix to libpthread be in this case ? I can submit
> a PR for this and try and get it fixed in FreeBSD.
>
IMHO, to guard all public API functions of libpthread internally with:
if (_thr_initial == NULL)
_libpthread_init(NULL);
as the have already done for some of them.
Cheers,
David