[
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465628#comment-13465628
]
Darryl L. Pierce commented on QPID-3027:
----------------------------------------
The patch fails to build for me on Fedora 17 x86_64 with Cmake. The steps I
took:
1. Copy FindPHPDev.cmake to /usr/share/cmake/Modules/
2. Applied cqpid_php.20120406.diff in the $REPO/qpid directory: patch -p0 <
cqpid_php.20120406.diff
3. Created an out-of-tree build environment: mkdir cmake; cd cmake; cmake
../qpid/cpp
4. Run the build: make
The result I see is:
[100%] Building CXX object
bindings/qpid/php/CMakeFiles/cqpid_php.dir/phpPHP_wrap.o
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx: In
function ‘qpid::types::Variant zvalToVariant(zval**)’:
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx:1544:107:
error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
In file included from
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx:742:0:
/usr/include/php/Zend/zend_API.h:337:45: error: initializing argument 2 of
‘int zend_get_object_classname(const zval*, const char**, zend_uint*)’
[-fpermissive]
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx:1555:91:
error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make[3]: *** [bindings/qpid/php/CMakeFiles/cqpid_php.dir/phpPHP_wrap.o] Error 1
make[2]: *** [bindings/qpid/php/CMakeFiles/cqpid_php.dir/all] Error 2
make[1]: *** [bindings/qpid/php/CMakeFiles/cqpid_php.dir/rule] Error 2
make: *** [cqpid_php] Error 2
Building with automake tools I get:
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../../../../qpid/cpp/bindings/qpid/php -I../../../src
-I../../../../qpid/cpp/include -I../../../include -fpic
-I../../../../qpid/cpp/include -I../../../include -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib
-DPHP_QPID_VERSION='"0.19"' -Wno-write-strings -g -O2 -MT cqpid_la-cqpid.lo -MD
-MP -MF .deps/cqpid_la-cqpid.Tpo -c -o cqpid_la-cqpid.lo `test -f 'cqpid.cpp'
|| echo '../../../../qpid/cpp/bindings/qpid/php/'`cqpid.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I.
-I../../../../qpid/cpp/bindings/qpid/php -I../../../src
-I../../../../qpid/cpp/include -I../../../include -fpic
-I../../../../qpid/cpp/include -I../../../include -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib
-DPHP_QPID_VERSION=\"0.19\" -Wno-write-strings -g -O2 -MT cqpid_la-cqpid.lo -MD
-MP -MF .deps/cqpid_la-cqpid.Tpo -c cqpid.cpp -fPIC -DPIC -o
.libs/cqpid_la-cqpid.o
cqpid.cpp: In function 'qpid::types::Variant zvalToVariant(zval**)':
cqpid.cpp:1544:107: error: invalid conversion from 'char**' to 'const char**'
[-fpermissive]
In file included from cqpid.cpp:742:0:
/usr/include/php/Zend/zend_API.h:337:45: error: initializing argument 2 of
'int zend_get_object_classname(const zval*, const char**, zend_uint*)'
[-fpermissive]
cqpid.cpp:1555:91: error: invalid conversion from 'const char*' to 'char*'
[-fpermissive]
make[3]: *** [cqpid_la-cqpid.lo] Error 1
make[3]: Leaving directory
`/home/mcpierce/Programming/Qpid/automake/bindings/qpid/php'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/mcpierce/Programming/Qpid/automake/bindings/qpid'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/mcpierce/Programming/Qpid/automake/bindings/qpid'
make: *** [all-recursive] Error 1
> PHP binding of Qpid Messaging API
> ---------------------------------
>
> Key: QPID-3027
> URL: https://issues.apache.org/jira/browse/QPID-3027
> Project: Qpid
> Issue Type: New Feature
> Components: C++ Client
> Affects Versions: 0.8
> Reporter: Paul Colby
> Assignee: Darryl L. Pierce
> Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff,
> cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff,
> cqpid_php.diff, FindPHPDev.cmake, Makefile
>
>
> Working on a PHP binding for the Qpid Messaging API via SWIG. There are
> several PHP-specific issues with C++ and SWIG which I've managed to
> workaround, so the binding is starting to take shape, but still very much a
> work in progress.
> The rough plan:
> 1. report relevant bugs / feature requests to SWIG (done).
> 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to
> implement PHP namespaces).
> 3. implement qpid::types::Variant <-> PHP typemapping (not started).
> 4. implement printinfo pragma (should be easy, just need to choose what info
> to include).
> 5. create relevant [auto]makefile.
> Of course, there's lots of things to discuss / decide along the way... so
> I'll post 'em here as they come up.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]