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

Bug#475101: obsolete linuxthreads requirement



Kurt Roeckx <kurt@roeckx.be> writes:

> On Thu, Apr 10, 2008 at 09:28:03AM +0200, Simon Josefsson wrote:
>> Kurt Roeckx <kurt@roeckx.be> writes:
>> 
>> > On Tue, Apr 08, 2008 at 08:22:10PM -0400, Joey Hess wrote:
>> >> Package: debian-policy
>> >> Version: 3.7.3.0
>> >> Severity: normal
>> >> 
>> >>      You must specify the gcc option `-D_REENTRANT' when building a library
>> >>      (either static or shared) to make the library compatible with
>> >>      LinuxThreads.
>> >> 
>> >> AFAIK we don't use linuxthreads anymore, and I checked a few libraries and
>> >> failed to find them using such a flag.
>> >
>> > I think hppa still uses it.
>> >
>> > The -D_REENTRANT might also be used in other libraries that can be
>> > compiled to support threads or not.  But those might also be using some
>> > other options.  I think we should just say that all libraries should
>> > get build with thread support if they support it.
>> 
>> Do you have any references to the hppa case (in particular, does it
>> affect glibc/debian on hppa?), and which these libraries are?
>
> http://lists.debian.org/debian-release/2008/03/msg00367.html
>
> says:
>> - All Linux platforms except hppa have switched to NPTL. 2.4 kernels
>>   are not supported anymore.

Thanks.  But does LinuxThreads need -D_REENTRANT today?  The links to
the gnulib list I gave suggested that it isn't necessary, but without
knowing exactly what to test it is difficult to know for sure.

I don't know much about thread stuff, but my hope is that we could
derive some concrete explanation of what breaks if you don't add
-D_REENTRANT when building debian packages.  That would make it possible
to come back to this text later and evaluate whether the reasons for
having the text are still valid.

/Simon



Reply to: