php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57057 sdo does not compile against 5.2-dev
Submitted: 2006-06-01 11:37 UTC Modified: 2006-10-30 06:33 UTC
From: lmpmbernardo at users dot sourceforge dot net Assigned: cem (profile)
Status: Closed Package: SCA_SDO (PECL)
PHP Version: 5_1 CVS-2006-06-01 OS: Fedora Core 5
Private report: No CVE-ID: None
 [2006-06-01 11:37 UTC] lmpmbernardo at users dot sourceforge dot net
Description:
------------
[root@antonio sdo-1.0.1]# uname -mrs
Linux 2.6.16-1.2122_FC5 i686
[root@antonio sdo-1.0.1]# g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
[root@antonio sdo-1.0.1]# php -v
PHP 5.2.0-dev (cli) (built: May 31 2006 23:37:17)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
[root@antonio sdo-1.0.1]# phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220060519
[root@antonio sdo-1.0.1]# ./configure
................
[root@antonio sdo-1.0.1]# make
/bin/sh /tmp/sdo-1.0.1/libtool --mode=compile g++ -I/tmp/sdo-1.0.1 -I. -I/tmp/sdo-1.0.1 -DPHP_ATOM_INC -I/tmp/sdo-1.0.1/include -I/tmp/sdo-1.0.1/main -I/tmp/sdo-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/include/libxml2  -DHAVE_CONFIG_H     -c /tmp/sdo-1.0.1/sdo.cpp -o sdo.lo
 g++ -I/tmp/sdo-1.0.1 -I. -I/tmp/sdo-1.0.1 -DPHP_ATOM_INC -I/tmp/sdo-1.0.1/include -I/tmp/sdo-1.0.1/main -I/tmp/sdo-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/include/libxml2 -DHAVE_CONFIG_H -c /tmp/sdo-1.0.1/sdo.cpp  -fPIC -DPIC -o .libs/sdo.o
/tmp/sdo-1.0.1/sdo.cpp:331: error: 'zif_SDO_Model_ReflectionDataObject_export' was not declared in this scope
make: *** [sdo.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-02 06:21 UTC] simonslaws at googlemail dot com
I took a look at this and the immediate problem is that sdo-1.0.1 has not caught up with Johannes Schl?ter's patch to prefix extension methods and functions differently, i.e. with zim and zif respectively (
http://svn.schlueters.de/phpatches/HEAD/zend_separate_zend_method.diff)

So the error below can be fixed by changing the line reporting the error (331 in sdo.cpp) from:
ZEND_FENTRY(export, ZEND_FN(SDO_Model_ReflectionDataObject_export),
to:
ZEND_FENTRY(export, ZEND_MN(SDO_Model_ReflectionDataObject_export),

However fixing this exposes another error further on in the build which I will chase now. 

I will create patches when I'm done. I don't have a PECL account at the mo so I will apply for one
 [2006-06-02 09:50 UTC] simonslaws at googlemail dot com
There are further errors relating to the changes to method signatures in zend_object_handlers.h in the PHP5.2 branch (http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_object_handlers.h?r1=1.47.2.2&r2=1.47.2.2.2.1). I note from the SDO-1.01 code base that there is already a ToDo in this area re. PHP6 compatibility. I will contact cem@php.net and discuss how best to manage these changes in the newer PHP versions.
 [2006-06-30 14:06 UTC] cem@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/sdo

Should be OK in release 1.0.2
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Aug 22 09:01:27 2019 UTC