Bug 200132

Summary: php bindings does not build
Product: [Developer tools] bindings Reporter: Funda Wang <fundawang>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal CC: rdieter, than
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Funda Wang 2009-07-14 06:30:44 UTC
Version:            (using KDE 4.2.96)
Compiler:          gcc 4.4.0 CFLAGS="-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4"
OS:                Linux
Installed from:    Compiled From Sources

When building kdebindings 4.2.95 and 4.2.96 with php 5.3.0, it fails when building php bindings:

[ 91%] Building CXX object php/phpqt/src/CMakeFiles/php_qt.dir/zphp/functions.cpp.o
In file included from /usr/include/php/main/php.h:34,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/phpqt_internals.h:27,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/functions.cpp:30:
/usr/include/php/Zend/zend.h:82:5: warning: "HAVE_MACH_O_DYLD_H" is not defined
In file included from /usr/include/php/Zend/zend.h:768,
                 from /usr/include/php/main/php.h:34,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/phpqt_internals.h:27,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/functions.cpp:30:
/usr/include/php/Zend/zend_operators.h:66:5: warning: "ZEND_DVAL_TO_LVAL_CAST_OK" is not defined
In file included from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/phpqt_internals.h:27,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/functions.cpp:30:
/usr/include/php/main/php.h:94:5: warning: "HAVE_UNIX_H" is not defined
In file included from /usr/include/php/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/include/php/main/php.h:407,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/phpqt_internals.h:27,
                 from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/functions.cpp:30:
/usr/include/php/TSRM/tsrm_config_common.h:5:6: warning: "WINNT" is not defined
/usr/include/php/TSRM/tsrm_config_common.h:5:12: warning: "WIN32" is not defined
In file included from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/functions.cpp:34:
/home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/php_qt.h:62: warning: type qualifiers ignored on function return type
/home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/php_qt.h:64: warning: type qualifiers ignored on function return type
/home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/php_qt.h:76: warning: type qualifiers ignored on function return type
In file included from /home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/functions.cpp:35:
/home/fwang/rpm/BUILD/kdebindings-4.2.96/php/phpqt/src/zphp/z_extension.h:48: error: conflicting specifiers in declaration of 'phpqt_cast_arginfo'
Comment 1 Rex Dieter 2009-07-21 06:37:13 UTC
Been hit by this too in fedora, here's what we've got so far,
http://cvs.fedoraproject.org/viewvc/devel/kdebindings/kdebindings-4.2.96-php-5.3.patch
Comment 2 Than Ngo 2009-07-21 11:31:08 UTC
i already commited the fix in 4.3 branch and trunk yesterday.
Comment 3 Rex Dieter 2009-07-21 14:35:15 UTC
woo