Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157863 - dev-php5/syck-php-bindings-0.55: 'tsrm_ls' undeclared w/ thread-safe php
Summary: dev-php5/syck-php-bindings-0.55: 'tsrm_ls' undeclared w/ thread-safe php
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Yuval Yaari (RETIRED)
URL:
Whiteboard:
Keywords:
: 186502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-11 15:05 UTC by Norberto Bensa
Modified: 2007-10-15 19:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,3.59 KB, text/plain)
2006-12-11 15:05 UTC, Norberto Bensa
Details
emerge.log (emerge-log,9.35 KB, text/plain)
2006-12-11 15:05 UTC, Norberto Bensa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norberto Bensa 2006-12-11 15:05:04 UTC
While emerging slimserver I get...
Comment 1 Norberto Bensa 2006-12-11 15:05:28 UTC
Created attachment 103829 [details]
emerge --info
Comment 2 Norberto Bensa 2006-12-11 15:05:55 UTC
Created attachment 103830 [details]
emerge.log
Comment 3 Yuval Yaari (RETIRED) gentoo-dev 2006-12-12 01:00:56 UTC
What version of dev-libs/syck do you have?
Comment 4 Norberto Bensa 2006-12-12 02:39:39 UTC
The only one available in Portage (AFAIK)

nbensa@zeddmore ~ $ eix dev-libs/syck
[I] dev-libs/syck
     Available versions:  0.55-r3
     Installed versions:  0.55-r3(03:24:36 PM 12/11/2006)(php python)
     Homepage:            http://whytheluckystiff.net/syck/
     Description:         Syck is an extension for reading and writing YAML swiftly in popular scripting languages.

Comment 5 Yuval Yaari (RETIRED) gentoo-dev 2006-12-12 03:02:58 UTC
After google-ing a bit, it looks like a PHP-related problem.
I'm not a PHP fiend, so I'll see if the PHP guys have any clue.

(Works for me, FWIW...)
Comment 6 Luca Longinotti (RETIRED) gentoo-dev 2006-12-12 06:57:52 UTC
Something is broken in the Syck bindings, tsrm_ls is thread-safety related stuff (ZTS, Zend Thread Safety), which would show up only on systems with PHP compiled with USE=threads enabled, it probably works for you Yuval since you probably have threads for PHP disabled. Should be checked upstream (with the Syck people) if they're aware of this or if they alraedy fixed it, as it's a bug in their extensions code I'd say.
Best regards, CHTEKK.
Comment 7 Stuart Hickinbottom 2007-01-29 08:34:16 UTC
Just a note to say I'm experiencing the same problem with my emerge of dev-php5/syck-php-bindings-0.55. I do have "USE=threads" enabled.
Comment 8 Norberto Bensa 2007-02-21 11:40:48 UTC
Hello everyone. Any news on this one?

Thanks in advance,
Norberto
Comment 9 Norberto Bensa 2007-02-22 15:28:58 UTC
I've reemerged apache and php with USE="mpm-prefork -threads" and syck-php-bindings emerged without problems. I don't know if mpm-prefork has any negative performance impact, so any feedback on it will be welcomed.

I'm resolving this one as "WORKS FOR ME"
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-07-24 19:10:54 UTC
*** Bug 186502 has been marked as a duplicate of this bug. ***
Comment 11 Rod Leonard 2007-10-05 18:20:38 UTC
(In reply to comment #9)
> I've reemerged apache and php with USE="mpm-prefork -threads" and
> syck-php-bindings emerged without problems. I don't know if mpm-prefork has any
> negative performance impact, so any feedback on it will be welcomed.
> 
> I'm resolving this one as "WORKS FOR ME"
> 

This bug was never really solved for those of us who want to continue using the threads USE variable.  I did some googling and found that adding a line to phpext.c fixes the problem.  I tried it myself, and it worked.  Anyone else having this problem should give it a try, and the fix should be included in portage.  Here's the change that must be made:

233 else if ( strcmp( n->type_id, "merge" ) == 0 )
234 {
+235 TSRMLS_FETCH();
236 MAKE_STD_ZVAL( o );
237 object_init_ex( o, &merge_key_entry );
238 }
Comment 12 Christian Hoffmann (RETIRED) gentoo-dev 2007-10-05 19:06:11 UTC
This package should be turned into a real PECL package now as it simply is one [1]. :)

I haven't tried yet, but it looks like the code already contains a similar fix, so just bumping/moving this package around should fix that bug.

[1] http://pecl.php.net/syck/
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-10-07 21:00:06 UTC
Test this one instead (unmerge dev-php5/syck-php-bindings first or you'll get collisions).

http://overlays.gentoo.org/proj/php/browser/testing/migration/dev-php5/pecl-syck
Comment 14 Anant Narayanan (RETIRED) gentoo-dev 2007-10-15 19:43:11 UTC
pecl-syck now in CVS.