[php-maint] Bug#690173: libphp5-embed: embed sapi not found in php-config5 and thus cannot be used

David Carter dcarter at sigfs.org
Wed Oct 10 19:32:05 UTC 2012

Package: libphp5-embed
Version: 5.4.4-7
Severity: important

While trying to build PL/PHP for PostgreSQL, the configure script is
unable to determine that the embed SAPI of php5 is available.

The configure script for PL/PHP fails to find "embed" in
"php-config5 --php-sapis":

configure: error: PL/php requires the Embed PHP SAPI.
Please rebuild your PHP library with --enable-embed

Something else is also not correct, as if I manually add embed to the
SAPI list in php-config5 (as a possible workaround) it fails to link
its test program to libphp5:

checking for php_module_startup in -lphp5... no
configure: error: Cannot find PHP 5 SAPI library

I also tried to pass the location of the include file
(/usr/include/php5/sapi/embed/php_embed.h) via the LDFLAGS env variable
without success.

To ensure that the problem is not with the PL/PHP configure file, I also
attempted to run the configure script from phc (which also uses the embed
SAPI) and it also failed to find it:

configure: WARNING:
* It seems the PHP embed SAPI has not been installed.                         *
*                                                                             *
* You will be able to compile and run phc, but you will not be able to        *
* compile PHP scripts with phc.                                               *
*                                                                             *
* To install the PHP embed SAPI, follow the PHP installation instructions,    *
* but make sure to pass the --enable-embed option to the PHP configure        *
* script.                                                                     *

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libphp5-embed depends on:
ii  libbz2-1.0        1.0.6-4
ii  libc6             2.13-35
ii  libcomerr2        1.42.5-1
ii  libdb5.1          5.1.29-5
ii  libgssapi-krb5-2  1.10.1+dfsg-2
ii  libk5crypto3      1.10.1+dfsg-2
ii  libkrb5-3         1.10.1+dfsg-2
ii  libmagic1         5.11-2
ii  libonig2          5.9.1-1
ii  libpcre3          1:8.30-5
ii  libqdbm14         1.8.78-2
ii  libssl1.0.0       1.0.1c-4
ii  libxml2           2.8.0+dfsg1-5
ii  mime-support      3.52-1
ii  php5-common       5.4.4-7
ii  tzdata            2012c-1
ii  ucf               3.0025+nmu3
ii  zlib1g            1:1.2.7.dfsg-13

libphp5-embed recommends no packages.

Versions of packages libphp5-embed suggests:
pn  php-pear  <none>

-- no debconf information

More information about the pkg-php-maint mailing list