|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63086 Compiling PHP with YAML as static extension fails
Submitted: 2012-09-14 05:55 UTC Modified: 2013-04-23 22:47 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: hostmaster at bertololy dot de Assigned: bd808 (profile)
Status: Closed Package: yaml (PECL)
PHP Version: 5.3.17 OS: Linux (Debian)
Private report: No CVE-ID: None
 [2012-09-14 05:55 UTC] hostmaster at bertololy dot de
I installed the actual YAML PECL extension source to the php-sources as described 

Rebuilt the configure script with:
rm -f configure
PHP_AUTOCONF="autoconf2.59" ./buildconf --force

./configure --with-yaml ...

So far as usual, but "make" faild with:
main/internal_functions.c:108: error: 'phpext_yaml_ptr' undeclared here (not in a 
make: *** [main/internal_functions.lo] Error 1

If compiled with: "pecl install yaml" all went fine and compilation succeeds 
without error.

Thanks for any help you can provide.


Patch-for-bug-63085 (last revision 2012-09-15 06:45 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-14 06:00 UTC]
-Package: Compile Failure +Package: yaml
 [2012-09-15 06:44 UTC]
-Assigned To: +Assigned To: bd808
 [2012-09-15 06:44 UTC]
The yaml ext missing a declaration of the module ptr.

pecl install always install as shared object.
 [2012-09-15 06:45 UTC]
The following patch has been added/updated:

Patch Name: Patch-for-bug-63085
Revision:   1347691552
 [2012-09-15 06:48 UTC]
Hi hostmaster,
   the attached patch should been able to fix your problem :)

The patch is against trunk, there maybe conflict if you trying to 
apply to your version, but the patch is quite straight forward :)
 [2012-09-26 05:56 UTC] hostmaster at bertololy dot de
Patch looks very easy and works fine, thank you!
But this should be fixed for use without patching...
 [2013-04-23 22:47 UTC]
-Status: Assigned +Status: Closed
 [2013-04-23 22:47 UTC]
Patch has been applied to master branch. Will be included in upcoming 1.1.1 bug fix release.
 [2013-11-19 05:47 UTC]
Patch included in 1.1.1 release.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 03:01:24 2023 UTC