php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59802 Compilation error (amqp.h not found)
Submitted: 2011-06-06 04:33 UTC Modified: 2011-06-06 05:18 UTC
From: henrikolsen at gmail dot com Assigned:
Status: Closed Package: amqp (PECL)
PHP Version: 5.3.2 OS: Ubuntu 10.04.1 LTS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: henrikolsen at gmail dot com
New email:
PHP Version: OS:

 

 [2011-06-06 04:33 UTC] henrikolsen at gmail dot com
Description:
------------
Trying to install the 0.2.2 (currently latest) version throws 
a compilation error:

/tmp/pear/temp/amqp/amqp.c:39:18: error: amqp.h: No such file 
or director


Got same issue on a Debian Squeeze setup.

Reproduce code:
---------------
sudo pecl install amqp-beta


Expected result:
----------------
Successful compilation

Actual result:
--------------
...

running: make
/bin/bash /var/tmp/pear-build-root/amqp-0.2.2/libtool --
mode=compile cc  -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -
I/var/tmp/pear-build-root/amqp-0.2.2/include -
I/var/tmp/pear-build-root/amqp-0.2.2/main -
I/tmp/pear/temp/amqp -I/usr/include/php5 -
I/usr/include/php5/main -I/usr/include/php5/TSRM -
I/usr/include/php5/Zend -I/usr/include/php5/ext -
I/usr/include/php5/ext/date/lib -I/usr/local/include  -
DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/amqp/amqp.c -o 
amqp.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/amqp -
DPHP_ATOM_INC -I/var/tmp/pear-build-root/amqp-0.2.2/include 
-I/var/tmp/pear-build-root/amqp-0.2.2/main -
I/tmp/pear/temp/amqp -I/usr/include/php5 -
I/usr/include/php5/main -I/usr/include/php5/TSRM -
I/usr/include/php5/Zend -I/usr/include/php5/ext -
I/usr/include/php5/ext/date/lib -I/usr/local/include -
DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/amqp/amqp.c  -fPIC -
DPIC -o .libs/amqp.o
/tmp/pear/temp/amqp/amqp.c:39:18: error: amqp.h: No such 
file or directory
/tmp/pear/temp/amqp/amqp.c:40:26: error: amqp_framing.h: No 
such file or directory
In file included from /tmp/pear/temp/amqp/amqp.c:42:
/tmp/pear/temp/amqp/php_amqp.h:144: error: expected ')' 
before 'x'
/tmp/pear/temp/amqp/php_amqp.h:198: error: expected 
specifier-qualifier-list before 'amqp_connection_state_t'
/tmp/pear/temp/amqp/amqp.c:244: error: expected ')' before 
'x'
make: *** [amqp.lo] Error 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-06 05:18 UTC] henrikolsen at gmail dot com
I missed the part from 
http://www.php.net/manual/en/amqp.installation.php about 
installing rabbitmq-c first. Now it compiles fine.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 11 02:01:23 2021 UTC