All of lore.kernel.org
 help / color / mirror / Atom feed
* Thread-support in perl-native often breaks libintl-perl
@ 2007-02-08 11:31 Martin Dietze
  2007-02-14  1:34 ` Jamie Lenehan
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Dietze @ 2007-02-08 11:31 UTC (permalink / raw)
  To: openembedded-devel

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

-- 
-------------- Martin Dietze --------------- / -- 4G Systeme GmbH Hamburg ---
-- martin@the-little-red-haired-girl.org -- / ---- dietze@4g-systems.com ----
------------- / 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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Thread-support in perl-native often breaks libintl-perl
  2007-02-08 11:31 Thread-support in perl-native often breaks libintl-perl Martin Dietze
@ 2007-02-14  1:34 ` Jamie Lenehan
  2007-02-19 11:27   ` Paul Sokolovsky
  0 siblings, 1 reply; 3+ messages in thread
From: Jamie Lenehan @ 2007-02-14  1:34 UTC (permalink / raw)
  To: Martin Dietze; +Cc: openembedded-devel

On Thu, Feb 08, 2007 at 12:31:36PM +0100, Martin Dietze wrote:
> 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?

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.)

-- 
 Jamie Lenehan <lenehan@twibble.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Thread-support in perl-native often breaks libintl-perl
  2007-02-14  1:34 ` Jamie Lenehan
@ 2007-02-19 11:27   ` Paul Sokolovsky
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Sokolovsky @ 2007-02-19 11:27 UTC (permalink / raw)
  To: Jamie Lenehan; +Cc: openembedded-devel

Hello Jamie,

Wednesday, February 14, 2007, 3:34:42 AM, you wrote:

[]

> 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
;-) ).


-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-19 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-08 11:31 Thread-support in perl-native often breaks libintl-perl Martin Dietze
2007-02-14  1:34 ` Jamie Lenehan
2007-02-19 11:27   ` Paul Sokolovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.