[xml/sgml-pkgs] Bug#551079: libexpat1: links with -lpthread for no reason

Raphael Bossek raphael.bossek at googlemail.com
Sun Oct 25 16:23:40 UTC 2009


Hi all,

background of the -lpthread -D_REENTRANT request was bug#275097 I can
not remember for all side effects anymore but maybe Mirko can help
testing if the change works with the latest 4suite and expat versions.

Mirko, are you working with 4Suite and mod_python/Apache and can help
us with the change ?

Regards,
Raphael

2009/10/25, Daniel Leidert <daniel.leidert at wgdd.de>:
> Am Samstag, den 24.10.2009, 22:51 -0500 schrieb Ardo van Rangelrooij:
>> Daniel Leidert wrote:
>> > Hi Ardo,
>> >
>> > Can you coment on this please? You've added the flags for expat in
>> > 2004,
>> > but maybe you remember for what?
>> >
>> > Regards, Daniel
>> >
>> > Am Donnerstag, den 15.10.2009, 15:05 +0200 schrieb Julien Cristau:
>> >
>> >> < ickle> jcristau: libfontconfig pulls in pthreads [debian]
>> >>  * ickle starts recompiling the whole damn stack to lose the pthread
>> >>     dependency, gah!
>> >> < pq> what's wrong with pthread? Or for distribution?
>> >> < ickle> just the excessive performance cost when running
>> >> single-threaded
>> >> < ickle> jcristau: it appears that the debian package of expat links
>> >>          against libpthread.so, but not when compiled from source...
>> >> < ickle> yay for uncommented changes: expat (1.95.8-1) unstable;
>> >>          urgency=low
>> >> < ickle>  * debian/rules: added '-pthread -D_REENTRANT' to 'CFLAGS'
>> >> < ickle>  but no explanation :(
>> >>
>> >> Any chance you could remove this unnecessary -pthread from
>> >> debian/rules?
>> >> Or is there a hidden non-obvious reason to keep it there (not that I
>> >> can
>> >> see what that could possibly be)?
>>
>> Hello Daniel,
>>
>> This was added per request from Raphael Bossek:
>>
>> > Please consider to extend the compilerflags with -pthread -D_REENTRANT.
>> > This is required for my python-4suite package and all other
>> > multi-threaded applications.
>
> But why? Expat doesn't use pthread nor _REENTRANT. IMO this switch just
> results in a useless linkage to libpthreads for the expat library in
> Debian. Raphael, can you please comment on this?
>
> Regards, Daniel





More information about the debian-xml-sgml-pkgs mailing list