[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055613#comment-13055613
 ] 

David Simon commented on QPID-3027:
-----------------------------------

hey Paul,

it is a 32 bit debian squeeze in VirtualBox, just for test it. The debug 
version of the php was only for the backtrace.

I have just now made a brand new deployment again.

here is your request (though I know that you wanted it about the last 
deployment):
david@qpid4:~$ which -a php php-config
/usr/bin/php
/usr/bin/php-config

david@qpid4:~$ php -r 'phpinfo();' | grep -A7 '^cqpid$'
cqpid

Qpid Version => 0.11
SWIG Version => 2.0.4
Targeted PHP Version => 5.3.3 (5.3.3-7+squeeze1)
PHP Thread Safety => disabled
Compiler Version => gcc 4.4.5
Build Date => Jun 27 2011 17:27:45

here is my installation process (mostly the relevant lines are copied from the 
.bash_history):
cd ~

sudo apt-get install cmake libopenais-dev uuid-dev libboost-all-dev php5-cli 
php5-dev subversion build-essential automake autoconf libtool ruby python 
sasl2-bin libpcre3-dev 

svn co http://svn.apache.org/repos/asf/qpid/trunk/qpid -r r1092662

cd ~

wget https://issues.apache.org/jira/secure/attachment/12476447/FindPHPDev.cmake

sudo cp FindPHPDev.cmake /usr/share/cmake-2.8/Modules/

wget 
https://issues.apache.org/jira/secure/attachment/12476446/cqpid_php.20110415.diff
patch -p0 <cqpid_php.20110415.diff 
cd qpid/cpp
./bootstrap 
./configure 
make
sudo make install

here there is a Makefile problem:
............
libtool: install: warning: relinking `acl.la'
libtool: install: (cd /home/david/qpid/cpp/src; /bin/bash 
/home/david/qpid/cpp/libtool  --tag CXX --mode=relink g++ -Werror -pedantic 
-Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers 
-Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\" 
-DBOOST_FILESYSTEM_VERSION=2 -g -O2 -no-undefined -module -avoid-version -o 
acl.la -rpath /usr/local/lib/qpid/daemon qpid/acl/Acl.lo qpid/acl/AclData.lo 
qpid/acl/AclPlugin.lo qpid/acl/AclReader.lo qpid/acl/AclValidator.lo 
libqpidbroker.la )
libtool: relink: g++ -shared -nostdlib 
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crti.o 
/usr/lib/gcc/i486-linux-gnu/4.4.5/crtbeginS.o  qpid/acl/.libs/Acl.o 
qpid/acl/.libs/AclData.o qpid/acl/.libs/AclPlugin.o qpid/acl/.libs/AclReader.o 
qpid/acl/.libs/AclValidator.o   -L/usr/local/lib -lqpidbroker 
-L/usr/lib/gcc/i486-linux-gnu/4.4.5 
-L/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib -L/lib/../lib 
-L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.4.5/../../.. -lstdc++ -lm -lc 
-lgcc_s /usr/lib/gcc/i486-linux-gnu/4.4.5/crtendS.o 
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crtn.o    -Wl,-soname 
-Wl,acl.so -o .libs/acl.so
/usr/bin/ld: cannot find -lqpidbroker
collect2: ld returned 1 exit status
libtool: install: error: relink `acl.la' with the above command before 
installing it
make[3]: *** [install-dmoduleexecLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/david/qpid/cpp/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/david/qpid/cpp/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/david/qpid/cpp/src'
make: *** [install-recursive] Error 1

# that's why I do:

sudo cp src/.libs/libq*.so /lib/

and somehow it hasnt created the cqpid.ini under the /etc/php5/conf.d

I create it.

and the result:

david@qpid4:~$ php -r ""
Segmentation fault

best regards,
David

> 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: Ted Ross
>         Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff, 
> cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff, 
> cqpid_php.diff
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to