php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hostmaster at bertololy dot de
New email:
PHP Version: OS:

 

 [2012-09-14 05:55 UTC] hostmaster at bertololy dot de
Description:
------------
I installed the actual YAML PECL extension source to the php-sources as described 
in 
http://www.php.net/manual/en/install.pecl.static.php

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


Patches

Patch-for-bug-63085 (last revision 2012-09-15 06:45 UTC by reeze@php.net)

Pull Requests

History

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

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

Patch Name: Patch-for-bug-63085
Revision:   1347691552
URL:        https://bugs.php.net/patch-display.php?bug=63086&patch=Patch-for-bug-63085&revision=1347691552
 [2012-09-15 06:48 UTC] reeze@php.net
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] bd808@php.net
-Status: Assigned +Status: Closed
 [2013-04-23 22:47 UTC] bd808@php.net
Patch has been applied to master branch. Will be included in upcoming 1.1.1 bug fix release.
 [2013-11-19 05:47 UTC] bd808@php.net
Patch included in 1.1.1 release.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 02:01:28 2025 UTC