Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when installing via PECL #95

Closed
EagleEyeJohn opened this issue Mar 17, 2014 · 13 comments
Closed

Segmentation fault when installing via PECL #95

EagleEyeJohn opened this issue Mar 17, 2014 · 13 comments
Labels
bug

Comments

@EagleEyeJohn
Copy link

@EagleEyeJohn EagleEyeJohn commented Mar 17, 2014

Not sure if this is the correct place to report this, but I get a Segmentation fault when installing amqp-1.4.0beta2

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Last few lines of PECL install

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2" install
Installing shared extensions:     /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2/usr/lib64/php/modules/
running: find "/var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2" | xargs ls -dils
663766   4 drwxr-xr-x. 3 root root   4096 Mar 17 09:49 /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2
663800   4 drwxr-xr-x. 3 root root   4096 Mar 17 09:49 /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2/usr
788331   4 drwxr-xr-x. 3 root root   4096 Mar 17 09:49 /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2/usr/lib64
788332   4 drwxr-xr-x. 3 root root   4096 Mar 17 09:49 /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2/usr/lib64/php
788333   4 drwxr-xr-x. 2 root root   4096 Mar 17 09:49 /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2/usr/lib64/php/modules
788334 364 -rwxr-xr-x. 1 root root 371736 Mar 17 09:49 /var/tmp/pear-build-rootye2Jud/install-amqp-1.4.0beta2/usr/lib64/php/modules/amqp.so

Build process completed successfully
Installing '/usr/lib64/php/modules/amqp.so'
install ok: channel://pecl.php.net/amqp-1.4.0beta2
configuration option "php_ini" is not set to php.ini location
You should add "extension=amqp.so" to php.ini
Segmentation fault
[root@localhost ~]#
@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Mar 17, 2014

Please, privde detailed (as described in readme) info about your problem.

@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Mar 18, 2014

@EagleEyeJohn got some news about your problem?

@EagleEyeJohn

This comment has been minimized.

Copy link
Author

@EagleEyeJohn EagleEyeJohn commented Mar 19, 2014

Well there really isn't a lot to say other than you run pecl install amqp-beta on Centos 6.5 and it produces the output already listed above which includes "Segmentation fault". Here's some output below from a server that already has beta2 installed... yet php --ri amqp lists it as beta1.

[root@uat-4 ~]# php -v
PHP 5.5.10 (cli) (built: Mar 11 2014 17:37:46)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.4, Copyright (c) 2002-2014, by Derick Rethans


[root@uat-4 ~]# yum list | grep erlang
erlang.x86_64                          R14B-04.3.el6                  @epel
erlang-appmon.x86_64                   R14B-04.3.el6                  @epel
erlang-asn1.x86_64                     R14B-04.3.el6                  @epel
erlang-common_test.x86_64              R14B-04.3.el6                  @epel
erlang-compiler.x86_64                 R14B-04.3.el6                  @epel
erlang-cosEvent.x86_64                 R14B-04.3.el6                  @epel
erlang-cosEventDomain.x86_64           R14B-04.3.el6                  @epel
erlang-cosFileTransfer.x86_64          R14B-04.3.el6                  @epel
erlang-cosNotification.x86_64          R14B-04.3.el6                  @epel
erlang-cosProperty.x86_64              R14B-04.3.el6                  @epel
erlang-cosTime.x86_64                  R14B-04.3.el6                  @epel
erlang-cosTransactions.x86_64          R14B-04.3.el6                  @epel
erlang-crypto.x86_64                   R14B-04.3.el6                  @epel
erlang-debugger.x86_64                 R14B-04.3.el6                  @epel
erlang-dialyzer.x86_64                 R14B-04.3.el6                  @epel
erlang-diameter.x86_64                 R14B-04.3.el6                  @epel
erlang-docbuilder.x86_64               R14B-04.3.el6                  @epel
erlang-edoc.x86_64                     R14B-04.3.el6                  @epel
erlang-erl_docgen.x86_64               R14B-04.3.el6                  @epel
erlang-erl_interface.x86_64            R14B-04.3.el6                  @epel
erlang-erts.x86_64                     R14B-04.3.el6                  @epel
erlang-et.x86_64                       R14B-04.3.el6                  @epel
erlang-eunit.x86_64                    R14B-04.3.el6                  @epel
erlang-examples.x86_64                 R14B-04.3.el6                  @epel
erlang-gs.x86_64                       R14B-04.3.el6                  @epel
erlang-hipe.x86_64                     R14B-04.3.el6                  @epel
erlang-ic.x86_64                       R14B-04.3.el6                  @epel
erlang-inets.x86_64                    R14B-04.3.el6                  @epel
erlang-inviso.x86_64                   R14B-04.3.el6                  @epel
erlang-jinterface.x86_64               R14B-04.3.el6                  @epel
erlang-kernel.x86_64                   R14B-04.3.el6                  @epel
erlang-megaco.x86_64                   R14B-04.3.el6                  @epel
erlang-mnesia.x86_64                   R14B-04.3.el6                  @epel
erlang-observer.x86_64                 R14B-04.3.el6                  @epel
erlang-odbc.x86_64                     R14B-04.3.el6                  @epel
erlang-orber.x86_64                    R14B-04.3.el6                  @epel
erlang-os_mon.x86_64                   R14B-04.3.el6                  @epel
erlang-otp_mibs.x86_64                 R14B-04.3.el6                  @epel
erlang-parsetools.x86_64               R14B-04.3.el6                  @epel
erlang-percept.x86_64                  R14B-04.3.el6                  @epel
erlang-pman.x86_64                     R14B-04.3.el6                  @epel
erlang-public_key.x86_64               R14B-04.3.el6                  @epel
erlang-reltool.x86_64                  R14B-04.3.el6                  @epel
erlang-runtime_tools.x86_64            R14B-04.3.el6                  @epel
erlang-sasl.x86_64                     R14B-04.3.el6                  @epel
erlang-snmp.x86_64                     R14B-04.3.el6                  @epel
erlang-ssh.x86_64                      R14B-04.3.el6                  @epel
erlang-ssl.x86_64                      R14B-04.3.el6                  @epel
erlang-stdlib.x86_64                   R14B-04.3.el6                  @epel
erlang-syntax_tools.x86_64             R14B-04.3.el6                  @epel
erlang-test_server.x86_64              R14B-04.3.el6                  @epel
erlang-toolbar.x86_64                  R14B-04.3.el6                  @epel
erlang-tools.x86_64                    R14B-04.3.el6                  @epel
erlang-tv.x86_64                       R14B-04.3.el6                  @epel
erlang-typer.x86_64                    R14B-04.3.el6                  @epel
erlang-webtool.x86_64                  R14B-04.3.el6                  @epel
erlang-wx.x86_64                       R14B-04.3.el6                  @epel
erlang-xmerl.x86_64                    R14B-04.3.el6                  @epel
emacs-erlang.noarch                    R14B-04.3.el6                  epel
emacs-erlang-el.noarch                 R14B-04.3.el6                  epel
emacs-erlang-lfe.noarch                0.6.2-1.el6                    epel
emacs-erlang-lfe-el.noarch             0.6.2-1.el6                    epel
erlang-amf.x86_64                      0-0.6.20110224gitb36dfb6.el6   epel
erlang-basho_stats.x86_64              1.0.3-1.el6                    epel
erlang-bear.x86_64                     0.1.3-1.el6                    epel
erlang-bitcask.x86_64                  1.6.1-1.el6                    epel
erlang-cluster_info.x86_64             1.2.3-1.el6                    epel
erlang-doc.noarch                      R14B-04.3.el6                  epel
erlang-ebloom.x86_64                   1.1.2-1.el6                    epel
erlang-edown.x86_64                    0.3.1-1.el6                    epel
erlang-egeoip.x86_64                   0-0.3.20111025git45c32ad.el6   epel
erlang-eleveldb.x86_64                 1.3.0-1.el6                    epel
erlang-emmap.x86_64                    0-0.2.git05ae1bb.el6           epel
erlang-eper.x86_64                     0.60-2.20120621git16bae32.el6  epel
erlang-eradius.x86_64                  0.8.7-1.el6                    epel
erlang-erlando.x86_64                  2.8.2-2.el6                    epel
erlang-erlsom.x86_64                   1.2.1-12.20120904gitdef76b9.el6
erlang-erlsyslog.x86_64                0.6.2-4.el6                    epel
erlang-erlydtl.x86_64                  0.7.0-1.20130214git6a9845f.el6 epel
erlang-esasl.x86_64                    0.1-5.el6                      epel
erlang-etap.x86_64                     0.3.4-5.el6                    epel
erlang-folsom.x86_64                   0.7.4-1.el6                    epel
erlang-gen_leader.x86_64               1.0-2.el6                      epel
erlang-getopt.x86_64                   0.7.0-1.el6                    epel
erlang-gettext.x86_64                  2.1.0-0.2.20101022gitb55cb72.el6
erlang-gproc.x86_64                    0.2.17-2.el6                   epel
erlang-gtknode.x86_64                  0.32-2.20110310git19ddfd5.el6  epel
erlang-ibrowse.x86_64                  2.2.0-4.el6                    epel
erlang-js.x86_64                       1.2.2-1.el6                    epel
erlang-lager.x86_64                    1.2.2-1.el6                    epel
erlang-lfe.x86_64                      0.6.2-1.el6                    epel
erlang-log4erl.x86_64                  0.9.0-3.el6                    epel
erlang-luke.x86_64                     0.2.5-1.el6                    epel
erlang-meck.x86_64                     0.7.2-1.el6                    epel
erlang-merge_index.x86_64              1.3.0-1.el6                    epel
erlang-mimetypes.x86_64                1.0-2.el6                      epel
erlang-misultin.x86_64                 0.9-1.el6                      epel
erlang-mochiweb.x86_64                 1.4.1-5.el6                    epel
erlang-mustache.x86_64                 0.1.0-2.el6                    epel
erlang-neotoma.x86_64                  1.6.0-1.el6                    epel
erlang-oauth.x86_64                    1.1.1-1.el6                    epel
erlang-pgsql.x86_64                    0-6.20101203svn.el6            epel
erlang-poolboy.x86_64                  0.9.1-1.el6                    epel
erlang-protobuffs.x86_64               0.8.0-1.el6                    epel
erlang-ranch.x86_64                    0.6.2-1.el6                    epel
erlang-rebar.x86_64                    2.1.0-0.6.el6                  epel
erlang-riak_client.x86_64              1.3.3-1.el6                    epel
erlang-riak_control.x86_64             0.1.2-2.el6                    epel
erlang-riak_core.x86_64                1.1.2-3.el6                    epel
erlang-riak_err.x86_64                 1.0.1-1.el6                    epel
erlang-riak_pb.x86_64                  1.3.3-1.el6                    epel
erlang-riak_pipe.x86_64                1.1.2-1.el6                    epel
erlang-riak_sysmon.x86_64              1.1.3-2.el6                    epel
erlang-rpm-macros.noarch               0.1.3-1.el6                    epel
erlang-sext.x86_64                     0.5.2-1.el6                    epel
erlang-skerl.x86_64                    1.1.0-2.el6                    epel
erlang-snappy.x86_64                   1.0.3-0.2.git80db168.el6       epel
erlang-webmachine.x86_64               1.10.1-1.el6                   epel
erlang-xmlrpc.x86_64                   1.13-2.el6                     epel
xemacs-erlang.noarch                   R14B-04.3.el6                  epel
xemacs-erlang-el.noarch                R14B-04.3.el6                  epel

[root@uat-4 ~]# php --ri amqp

amqp

Version => 1.4.0beta1
Revision => $Revision: 327551 $
Compiled => Mar 13 2014 @ 10:21:05
AMQP protocol version => 0-9-1
librabbitmq version => 0.5.0

Directive => Local Value => Master Value
amqp.host => localhost => localhost
amqp.vhost => / => /
amqp.port => 5672 => 5672
amqp.timeout => no value => no value
amqp.read_timeout => 0 => 0
amqp.write_timeout => 0 => 0
amqp.connect_timeout => 0 => 0
amqp.login => guest => guest
amqp.password => guest => guest
amqp.auto_ack => 0 => 0
amqp.prefetch_count => 3 => 3
[root@uat-4 ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * remi: remi.mirrors.hostinginnederland.nl
 * remi-php55: remi.mirrors.hostinginnederland.nl
Setting up Update Process
No Packages marked for Update

[root@uat-4 ~]# pecl upgrade
Nothing to upgrade
[root@uat-4 ~]# pecl install amqp-beta
pecl/amqp is already installed and is the same as the released version 1.4.0beta2
install failed
[root@uat-4 ~]#  php --ri amqp

amqp

Version => 1.4.0beta1
Revision => $Revision: 327551 $
Compiled => Mar 13 2014 @ 10:21:05
AMQP protocol version => 0-9-1
librabbitmq version => 0.5.0

Directive => Local Value => Master Value
amqp.host => localhost => localhost
amqp.vhost => / => /
amqp.port => 5672 => 5672
amqp.timeout => no value => no value
amqp.read_timeout => 0 => 0
amqp.write_timeout => 0 => 0
amqp.connect_timeout => 0 => 0
amqp.login => guest => guest
amqp.password => guest => guest
amqp.auto_ack => 0 => 0
amqp.prefetch_count => 3 => 3



@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Mar 19, 2014

Assume, you have

# yum list installed | grep rabbit
258:librabbitmq.x86_64                   0.5.0-1.el6.remi           @remi           
259:librabbitmq-devel.x86_64             0.5.0-1.el6.remi           @remi           

on

# cat /etc/centos-release
CentOS release 6.5 (Final)

and

# php -v
PHP 5.5.10 (cli) (built: Mar  5 2014 16:41:29) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.2.4, Copyright (c) 2002-2014, by Derick Rethans

then running

# pecl install amqp-beta
downloading amqp-1.4.0beta2.tgz ...
Starting to download amqp-1.4.0beta2.tgz (48,540 bytes)
.............done: 48,540 bytes
16 source files, building
running: phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
....
Build process completed successfully
Installing '/usr/lib64/php/modules/amqp.so'
install ok: channel://pecl.php.net/amqp-1.4.0beta2
configuration option "php_ini" is not set to php.ini location
You should add "extension=amqp.so" to php.ini

and then

# echo "extension=amqp.so" >>  /etc/php.ini

gives you

# php --ri amqp

amqp

Version => 1.4.0beta1
Revision => $Revision: 327551 $
Compiled => Mar 19 2014 @ 10:11:27
AMQP protocol version => 0-9-1
librabbitmq version => 0.5.0

Directive => Local Value => Master Value
amqp.host => localhost => localhost
amqp.vhost => / => /
amqp.port => 5672 => 5672
amqp.timeout => no value => no value
amqp.read_timeout => 0 => 0
amqp.write_timeout => 0 => 0
amqp.connect_timeout => 0 => 0
amqp.login => guest => guest
amqp.password => guest => guest
amqp.auto_ack => 0 => 0
amqp.prefetch_count => 3 => 3

Note: don't be confused with Version => 1.4.0beta1, it's just a typo in release version (issue #93).

@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Mar 19, 2014

P.S.: maybe #96 is somehow related to this issue and fix the segfault?

@EagleEyeJohn

This comment has been minimized.

Copy link
Author

@EagleEyeJohn EagleEyeJohn commented Mar 19, 2014

Yes, that's pretty much it. Some Segmentation faults have been from pecl upgrade which installed beta2 over beta1 (which we had memory leak issues with). Others have been as you've described above on new build vagrant VMs.

librabbitmq-devel.x86_64 not showing below though on the latest server to exhibit the issue. Oddly, amqp does seem to work as expected afterwards. We're due to move to live servers with this next month so seeing Segmentation fault is not confidence inspiring

[root@localhost consumers]# yum list installed | grep rabbit
librabbitmq.x86_64                  0.5.0-1.el6.remi          @remi
rabbitmq-server.noarch              3.2.2-1                   installed
[root@localhost consumers]# cat /etc/centos-release
CentOS release 6.5 (Final)

Uninstall and reinstall exhibits same issue

[root@localhost consumers]# pecl uninstall amqp-beta
uninstall ok: channel://pecl.php.net/amqp-1.4.0beta2
[root@localhost consumers]# pecl install amqp-beta
downloading amqp-1.4.0beta2.tgz ...
Starting to download amqp-1.4.0beta2.tgz (48,540 bytes)
.............done: 48,540 bytes
16 source files, building
running: phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
building in /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2
running: /var/tmp/amqp/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -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
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for amqp support... yes, shared
checking for amqp... yes, shared
yes
checking for amqp files in default path... found in /usr/local
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp.c -o amqp.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp.c  -fPIC -DPIC -o .libs/amqp.o
/var/tmp/amqp/amqp.c: In function ‘amqp_error’:
/var/tmp/amqp/amqp.c:616: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_exchange.c -o amqp_exchange.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_exchange.c  -fPIC -DPIC -o .libs/amqp_exchange.o
/var/tmp/amqp/amqp_exchange.c: In function ‘zim_amqp_exchange_class_publish’:
/var/tmp/amqp/amqp_exchange.c:876: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_queue.c -o amqp_queue.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_queue.c  -fPIC -DPIC -o .libs/amqp_queue.o
/var/tmp/amqp/amqp_queue.c: In function ‘read_message_from_channel’:
/var/tmp/amqp/amqp_queue.c:277: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/var/tmp/amqp/amqp_queue.c:334: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/var/tmp/amqp/amqp_queue.c:418: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_connection.c -o amqp_connection.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_connection.c  -fPIC -DPIC -o .libs/amqp_connection.o
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_channel.c -o amqp_channel.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_channel.c  -fPIC -DPIC -o .libs/amqp_channel.o
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_envelope.c -o amqp_envelope.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_envelope.c  -fPIC -DPIC -o .libs/amqp_envelope.o
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_object_store.c -o amqp_object_store.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_object_store.c  -fPIC -DPIC -o .libs/amqp_object_store.o
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -o amqp.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/modules  amqp.lo amqp_exchange.lo amqp_queue.lo amqp_connection.lo amqp_channel.lo amqp_envelope.lo amqp_object_store.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lrabbitmq
libtool: link: cc -shared  .libs/amqp.o .libs/amqp_exchange.o .libs/amqp_queue.o .libs/amqp_connection.o .libs/amqp_channel.o .libs/amqp_envelope.o .libs/amqp_object_store.o   -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/librabbitmq.so -lrt  -Wl,-rpath -Wl,/usr/local/lib   -Wl,-soname -Wl,amqp.so -o .libs/amqp.so
libtool: link: ( cd ".libs" && rm -f "amqp.la" && ln -s "../amqp.la" "amqp.la" )
/bin/sh /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/libtool --mode=install cp ./amqp.la /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/modules
libtool: install: cp ./.libs/amqp.so /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/modules/amqp.so
libtool: install: cp ./.libs/amqp.lai /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/modules/amqp.la
libtool: finish: PATH="/usr/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/pear-build-rootCvlZbs/amqp-1.4.0beta2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2" install
Installing shared extensions:     /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2/usr/lib64/php/modules/
running: find "/var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2" | xargs ls -dils
664279   4 drwxr-xr-x 3 root root   4096 Mar 19 10:28 /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2
664368   4 drwxr-xr-x 3 root root   4096 Mar 19 10:28 /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2/usr
664436   4 drwxr-xr-x 3 root root   4096 Mar 19 10:28 /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2/usr/lib64
664448   4 drwxr-xr-x 3 root root   4096 Mar 19 10:28 /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2/usr/lib64/php
664454   4 drwxr-xr-x 2 root root   4096 Mar 19 10:28 /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2/usr/lib64/php/modules
664367 364 -rwxr-xr-x 1 root root 371896 Mar 19 10:28 /var/tmp/pear-build-rootCvlZbs/install-amqp-1.4.0beta2/usr/lib64/php/modules/amqp.so

Build process completed successfully
Installing '/usr/lib64/php/modules/amqp.so'
install ok: channel://pecl.php.net/amqp-1.4.0beta2
configuration option "php_ini" is not set to php.ini location
You should add "extension=amqp.so" to php.ini
Segmentation fault

Installing librabbitmq-devel

[root@localhost consumers]# yum install librabbitmq-devel -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                                     |  24 kB     00:00
 * base: centos.serverspace.co.uk
 * epel: www.mirrorservice.org
 * extras: centos.hyve.com
 * remi: mirror.1000mbps.com
 * remi-php55: mirror.1000mbps.com
 * remi-test: mirror.1000mbps.com
 * rpmforge: mirror.ate.info
 * updates: mirror.for.me.uk
base                                                                                                                                                                                              | 3.7 kB     00:00
elasticsearch-1.0                                                                                                                                                                                 | 2.5 kB     00:00
extras                                                                                                                                                                                            | 3.4 kB     00:00
jenkins                                                                                                                                                                                           |  951 B     00:00
mongodb                                                                                                                                                                                           |  951 B     00:00
mysql-connectors-community                                                                                                                                                                        | 2.5 kB     00:00
mysql-tools-community                                                                                                                                                                             | 2.5 kB     00:00
mysql56-community                                                                                                                                                                                 | 2.5 kB     00:00
remi                                                                                                                                                                                              | 2.9 kB     00:00
remi-php55                                                                                                                                                                                        | 2.9 kB     00:00
remi-test                                                                                                                                                                                         | 2.9 kB     00:00
rpmforge                                                                                                                                                                                          | 1.9 kB     00:00
updates                                                                                                                                                                                           | 3.4 kB     00:00
updates/primary_db                                                                                                                                                                                | 2.0 MB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package librabbitmq-devel.x86_64 0:0.5.0-1.el6.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================================================
 Package                                                   Arch                                           Version                                                     Repository                                    Size
=========================================================================================================================================================================================================================
Installing:
 librabbitmq-devel                                         x86_64                                         0.5.0-1.el6.remi                                            remi                                          37 k

Transaction Summary
=========================================================================================================================================================================================================================
Install       1 Package(s)

Total download size: 37 k
Installed size: 213 k
Downloading Packages:
librabbitmq-devel-0.5.0-1.el6.remi.x86_64.rpm                                                                                                                                                     |  37 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : librabbitmq-devel-0.5.0-1.el6.remi.x86_64                                                                                                                                                             1/1
  Verifying  : librabbitmq-devel-0.5.0-1.el6.remi.x86_64                                                                                                                                                             1/1

Installed:
  librabbitmq-devel.x86_64 0:0.5.0-1.el6.remi

Complete!

Uninstall and resinstall again - now seems to work. No Segmentation fault raised.

[root@localhost consumers]# pecl uninstall amqp-beta
Unable to remove "extension=amqp.so" from php.ini
uninstall ok: channel://pecl.php.net/amqp-1.4.0beta2

[root@localhost consumers]# pecl install amqp-beta
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/amqp.so' - /usr/lib64/php/modules/amqp.so: cannot open shared object file: No such file or directory in Unknown on line 0
downloading amqp-1.4.0beta2.tgz ...
Starting to download amqp-1.4.0beta2.tgz (48,540 bytes)
.............done: 48,540 bytes
16 source files, building
running: phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
building in /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2
running: /var/tmp/amqp/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -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
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for amqp support... yes, shared
checking for amqp... yes, shared
yes
checking for amqp files in default path... found in /usr/local
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp.c -o amqp.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp.c  -fPIC -DPIC -o .libs/amqp.o
/var/tmp/amqp/amqp.c: In function ‘amqp_error’:
/var/tmp/amqp/amqp.c:616: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_exchange.c -o amqp_exchange.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_exchange.c  -fPIC -DPIC -o .libs/amqp_exchange.o
/var/tmp/amqp/amqp_exchange.c: In function ‘zim_amqp_exchange_class_publish’:
/var/tmp/amqp/amqp_exchange.c:876: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_queue.c -o amqp_queue.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_queue.c  -fPIC -DPIC -o .libs/amqp_queue.o
/var/tmp/amqp/amqp_queue.c: In function ‘read_message_from_channel’:
/var/tmp/amqp/amqp_queue.c:277: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/var/tmp/amqp/amqp_queue.c:334: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/var/tmp/amqp/amqp_queue.c:418: warning: ‘amqp_error_string’ is deprecated (declared at /usr/local/include/amqp.h:1996)
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_connection.c -o amqp_connection.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_connection.c  -fPIC -DPIC -o .libs/amqp_connection.o
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_channel.c -o amqp_channel.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_channel.c  -fPIC -DPIC -o .libs/amqp_channel.o
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_envelope.c -o amqp_envelope.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_envelope.c  -fPIC -DPIC -o .libs/amqp_envelope.o
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=compile cc  -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/amqp/amqp_object_store.c -o amqp_object_store.lo
libtool: compile:  cc -I. -I/var/tmp/amqp -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/amqp/amqp_object_store.c  -fPIC -DPIC -o .libs/amqp_object_store.o
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/include -I/var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/main -I/var/tmp/amqp -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -o amqp.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/modules  amqp.lo amqp_exchange.lo amqp_queue.lo amqp_connection.lo amqp_channel.lo amqp_envelope.lo amqp_object_store.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lrabbitmq
libtool: link: cc -shared  .libs/amqp.o .libs/amqp_exchange.o .libs/amqp_queue.o .libs/amqp_connection.o .libs/amqp_channel.o .libs/amqp_envelope.o .libs/amqp_object_store.o   -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/librabbitmq.so -lrt  -Wl,-rpath -Wl,/usr/local/lib   -Wl,-soname -Wl,amqp.so -o .libs/amqp.so
libtool: link: ( cd ".libs" && rm -f "amqp.la" && ln -s "../amqp.la" "amqp.la" )
/bin/sh /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/libtool --mode=install cp ./amqp.la /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/modules
libtool: install: cp ./.libs/amqp.so /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/modules/amqp.so
libtool: install: cp ./.libs/amqp.lai /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/modules/amqp.la
libtool: finish: PATH="/usr/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/pear-build-rootdFFiQm/amqp-1.4.0beta2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2" install
Installing shared extensions:     /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2/usr/lib64/php/modules/
running: find "/var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2" | xargs ls -dils
664297   4 drwxr-xr-x 3 root root   4096 Mar 19 10:30 /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2
664463   4 drwxr-xr-x 3 root root   4096 Mar 19 10:30 /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2/usr
664464   4 drwxr-xr-x 3 root root   4096 Mar 19 10:30 /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2/usr/lib64
664466   4 drwxr-xr-x 3 root root   4096 Mar 19 10:30 /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2/usr/lib64/php
664467   4 drwxr-xr-x 2 root root   4096 Mar 19 10:30 /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2/usr/lib64/php/modules
664462 364 -rwxr-xr-x 1 root root 371896 Mar 19 10:30 /var/tmp/pear-build-rootdFFiQm/install-amqp-1.4.0beta2/usr/lib64/php/modules/amqp.so

Build process completed successfully
Installing '/usr/lib64/php/modules/amqp.so'
install ok: channel://pecl.php.net/amqp-1.4.0beta2
configuration option "php_ini" is not set to php.ini location
You should add "extension=amqp.so" to php.ini

So my assumption is that yum isn't picking up that librabbit-devel is a dependency of amqp-1.4.0-beta2 ?

@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Mar 19, 2014

Yes, yum didn't. In fact, to make him pick up necessary dependencies, he should be told by the amqp package (see https://github.com/remicollet/remirepo/blob/master/php/pecl/php-pecl-amqp/php-pecl-amqp.spec). I guess requirements should be specified under Requires: keyword. Feels free to contact @remicollet or, preferable, just PR dependencies.

P.S.: looks like there are dependency specification - BuildRequires: librabbitmq-devel >= 0.4.1, but yum doesn't install them for me.

P.P.S.: and it will not while, as note below, php extension installed from PECL, not from rpm.

@remicollet

This comment has been minimized.

Copy link
Contributor

@remicollet remicollet commented Mar 19, 2014

If you use "remi" repo for dependencies (librabbitmq-devel), why don't you simply install pecl/amqp from there ? ;)

 yum install php-pecl-amqp

See http://rpms.famillecollet.com/enterprise/6/test/x86_64/repoview/php-pecl-amqp.html

  • version 1.2.0 in remi (for 5.4) and remi-php55
  • version 1.4.0beta2 in remi-test (for 5.5) and remi-php56
@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Mar 19, 2014

Ah, yes, sorry for mentioned you for nothing. Actually, in my environment i do. Btw, thanks for great repo!

@EagleEyeJohn

This comment has been minimized.

Copy link
Author

@EagleEyeJohn EagleEyeJohn commented Mar 19, 2014

We've been using PECL for installing PECL extensions for years but our use of the remi repositories is very recent - mainly so that we could obtain PHP 5.5.x and MySQL 5.6.x. We will try to alter our build process to install via yum instead of PECL wherever possible.

@lstrojny lstrojny added bug and removed bug labels Jan 25, 2015
@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Feb 1, 2015

@EagleEyeJohn do you have this bug with latest (1.6.0 beta2) php-amqp version?

@lstrojny

This comment has been minimized.

Copy link
Collaborator

@lstrojny lstrojny commented Feb 6, 2015

I can reproduce a segfault with beta2, cannot yet tell if it is the same.

@pinepain

This comment has been minimized.

Copy link
Contributor

@pinepain pinepain commented Nov 5, 2015

@lstrojny propose to close as it too old.

@lstrojny lstrojny closed this Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.