Thread-support in perl-native often breaks libintl-perl
Hi,
on most platforms thread support is turned off for the
cross-compiled perl packages. However it is always turned on in the perl-native package. Since libraries like libintl-perl depend on perl-native since they include their headers from staging/[my-platform]-linux/lib/perl5 we get an inconsistent configuration: the shared lib gettext_xs.so is cross-compiled with headers with thread support turned on while the actual (non-native) perl has it turned off. In the end libintl-perl will not work:
| /var/bin/perl: relocation error: /var/lib/perl5/auto/Locale/gettext_xs/gettext_xs.so: undefined symbol: Perl_Gthr_key_ptr
Removing the `-Dusethreads' from the perl-native recipe solves this problem, but will it cause problems for others?
BTW, where is bugs.openembedded.org - it has not been up for a longer while...
Cheers,
Martin
Signature · 6 lines
-------------- Martin Dietze --------------- / -- 4G Systeme GmbH Hamburg --- -- [email protected] -- / ---- [email protected] ---- ------------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= - Are you attempting to tell me my duty, sir? - No. Just having fun trying to guess what they are.
Quoted 12 lines · Martin Dietze
Hi,
on most platforms thread support is turned off for the
cross-compiled perl packages. However it is always turned on in the perl-native package. Since libraries like libintl-perl depend on perl-native since they include their headers from staging/[my-platform]-linux/lib/perl5 we get an inconsistent configuration: the shared lib gettext_xs.so is cross-compiled with headers with thread support turned on while the actual (non-native) perl has it turned off. In the end libintl-perl will not work:
Quoted 4 lines
|
/var/bin/perl: relocation error:/var/lib/perl5/auto/Locale/gettext_xs/gettext_xs.so: undefined symbol:Perl_Gthr_key_ptrRemoving the `-Dusethreads' from the perl-native recipe solves this problem, but will it cause problems for others?
For sh4 I turned on threading for perl which is probably why I didn't have this issue. I can't remember if I turned it on because of this issue or if I needed it for somethings else. It probably doesn't matter much anymore for my situation because I've since rewrote the perl management application I was working on in C, so I only use perl a lot of simpler things now.
I agree that we probably need to make perl and perl-native agree on this. If everything appears to be ok with it turned off in perl-native then I'd be fine with that (and would turn it of for the sh4 perl as well.)
Signature · 1 line
Jamie Lenehan <[email protected]>
Hello Jamie,
Wednesday, February 14, 2007, 3:34:42 AM, you wrote:
[]
Quoted 11 lines
For sh4 I turned on threading for perl which is probably why I didn't have this issue. I can't remember if I turned it on because of this issue or if I needed it for somethings else. It probably doesn't matter much anymore for my situation because I've since rewrote the perl management application I was working on in C, so I only use perl a lot of simpler things now.
I agree that we probably need to make perl and perl-native agree on this. If everything appears to be ok with it turned off in perl-native then I'd be fine with that (and would turn it of for the sh4 perl as well.)
Maybe make that some "global" config option, and have it on by
default after all (after bit of QA of course)? These days, lack of multithreadedness is a defect, and even while it's Perl, maybe it shouldn't be crippled such? ;-) (No, I don't volunteer to do QA on it ;-) ).
Signature · 2 lines
Best regards, Paul mailto:[email protected]