php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60385 Make Failure - pdflib
Submitted: 2011-11-25 12:55 UTC Modified: 2012-06-06 11:34 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: richard at bizznix dot com Assigned: rjs (profile)
Status: Closed Package: pdflib (PECL)
PHP Version: 5.4.0RC2 OS: OS X 10.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: richard at bizznix dot com
New email:
PHP Version: OS:

 

 [2011-11-25 12:55 UTC] richard at bizznix dot com
Description:
------------
When using PECL to install PDFLIB in 5.4.0 RC2, make fails with the following:

In file included from /private/tmp/pear/temp/pdflib/pdf.c:131:
/private/tmp/pear/temp/pdflib/pdf7.c: In function ‘pdflib_object_new_ex’:
/private/tmp/pear/temp/pdflib/pdf7.c:336: error: ‘zend_class_entry’ has no member 
named ‘default_properties’
make: *** [pdf.lo] Error 1
ERROR: `make' failed

Note that make for PDFLIB succeeds for 5.3.9 RC2. 

This problem also occurred with 5.4.0 RC1.

Expected result:
----------------
Make for PDFLIB should succeed.

Actual result:
--------------
Make for PDFLIB fails.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-10 20:02 UTC] richard at bizznix dot xom
This is the same as Bug #60397.
 [2012-04-30 20:31 UTC] hhcbrg at gmail dot com
I have the same problem running a linux debian testing version with php 5.4, the followind solution work for me.

after attempting installing pdflib with :pecl install pdflib

I got the same error so when the program creates the tmp file /tmp/pear/temp/pdflib/pdf7.c and before I enter the path to pdflib installation? : /usr/local 

I manually modify the pdf7.c in the temp directory in the line 336 where it says "default_properties" just change it to "default_properties_table", that is the NEW name for that property in the zend struct.

After that I was able to build the "pdf.so".

Note that I am not a 'C' programmer or a PHP developer, so I do not know if this is good solution, but for now, it works.

Hope this information will be helpful.
 [2012-04-30 20:32 UTC] pajoye@php.net
correct package name
 [2012-04-30 20:32 UTC] pajoye@php.net
-Package: PECL +Package: pdflib
 [2012-06-06 11:34 UTC] rjs@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rjs
 [2012-06-06 11:34 UTC] rjs@php.net
Prepared a new PECL Package (2.1.9) including the fix for this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC