php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61479 Can't compile with PHP 5.4
Submitted: 2012-03-22 19:53 UTC Modified: 2012-06-12 19:44 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:3 of 4 (75.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: martin dot marques at gmail dot com Assigned: felipe (profile)
Status: Closed Package: yaz (PECL)
PHP Version: 5.4.0 OS: Linux
Private report: No CVE-ID: None
 [2012-03-22 19:53 UTC] martin dot marques at gmail dot com
Description:
------------
Had phpyaz installed with PHP 5.3 and working, but after upgrading PHP to 5.4, I tried to reinstall yaz and it doesn't compile.

Test script:
---------------
running: make
/bin/bash /tmp/pear/temp/pear-build-rootW6619U/yaz-1.1.1/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yaz -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootW6619U/yaz-1.1.1/include -I/tmp/pear/temp/pear-build-rootW6619U/yaz-1.1.1/main -I/tmp/pear/temp/yaz -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yaz/php_yaz.c -o php_yaz.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/yaz -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootW6619U/yaz-1.1.1/include -I/tmp/pear/temp/pear-build-rootW6619U/yaz-1.1.1/main -I/tmp/pear/temp/yaz -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yaz/php_yaz.c  -fPIC -DPIC -o .libs/php_yaz.o
/tmp/pear/temp/yaz/php_yaz.c:151:1: error: unknown type name 'function_entry'



Patches

yaz-1.1.1.patch (last revision 2012-03-24 22:11 UTC by php-bugs at jacekk dot info)
phpyaz.log (last revision 2012-03-22 19:54 UTC by martin dot marques at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-24 22:14 UTC] php-bugs at jacekk dot info
Added patch for yaz-1.1.1.

You need to change "function_entry" to "zend_function_entry" (line 151) and each "pval" to "zval" (in many places).
 [2012-03-25 14:54 UTC] felipe@php.net
Hi, next time provide an unified version of the diff. (diff -u)

Thanks.
 [2012-04-04 06:19 UTC] indra dot sutriadi at gmail dot com
I use patch in this page and compile within Windows 8 DP + MS. Visual Studio 2008 Express + Windows SDK 6.1. I've got this log.

ext\yaz\php_yaz.c(1892) : warning C4013: 'pval_destructor' undefined; assuming extern returning int
   Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
   Creating library Release_TS\php_yaz.lib and object Release_TS\php_yaz.exp
php_yaz.obj : error LNK2019: unresolved external symbol _pval_destructor referenced in function _zif_yaz_ccl_parse
Release_TS\php_yaz.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.
 [2012-06-12 19:44 UTC] felipe@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

It already has been fixed. Thanks.
 [2012-06-12 19:44 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 15:01:29 2024 UTC