From: mamfelt at gmail dot com
Operating system: AIX
PHP version: 5.4.6
Package: Compile Failure
Bug Type: Bug
Bug description:cannot get ./configure and make to both complete - one or the other fails
Description:
------------
Trying to package php 5.4.6 - stuck in logic loop regarding sqlite3.
--with-sqlite3=DIR seems to be ignored
--without-sqlite3=DIR is not accepted
--without-sqlite3 causes ./configure to fail with
checking for PDO includes... checking for PDO includes...
/data/prj/php-5.4.6/ext
configure: error:
You've configured extension pdo_sqlite, which depends on extension
sqlite3,
but you've either not enabled sqlite3, or have disabled it.
Test script:
---------------
Example 1. ## configure completes but the embedded sqlite3 attempts to
build anyway. This has a compile error that I have not researched.
I have sqlite3 in /opt
root@x104:[/data/prj/php-5.2.17]ls -l /opt/*/*sql*
-rwxr-xr-x 1 root system 2026673 Jun 13 21:52 /opt/bin/sqlite3
-rw-r--r-- 1 root system 268351 Jun 13 21:52 /opt/include/sqlite3.h
-rw-r--r-- 1 root system 20686 Jun 13 21:52 /opt/include/sqlite3ext.h
-rw-r--r-- 1 root system 1927674 Jun 13 21:52 /opt/lib/libsqlite3.a
-rwxr-xr-x 1 root system 743 Jun 13 21:52 /opt/lib/libsqlite3.la
# ./configure --prefix=/opt --sysconfdir=/etc --mandir=/usr/share/man
--with-sqlite3=/opt
+++++++++++
Example 2. ### provide --without-sqlite3=DIR (per ./configure --help)
# ./configure --prefix=/opt --sysconfdir=/etc --mandir=/usr/share/man
--without-sqlite3=/opt
Note: configure --help | grep sqlite
--without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix
to
+++++++++
Example 3. ### use --without-sqlite3 - cannot complete due to dependency
# ./configure --prefix=/opt --sysconfdir=/etc --mandir=/usr/share/man
--without-sqlite3
=============
Note: imho - there are two issues: one is the help text, seems wrong
somehow, but has been around for a long time. second issue - why is make
still trying to compile embedded sqlite3 ?
Expected result:
----------------
that make finishes and I can proceed with make check or make test
Actual result:
--------------
#1 result
/bin/sh /data/prj/php-5.4.6/libtool --silent --preserve-dup-deps
--mode=compile cc -qlanglvl=extc89 -Iext/sqlite3/
-I/data/prj/php-5.4.6/ext/sqlite3/ -DPHP_ATOM_INC
-I/data/prj/php-5.4.6/include -I/data/prj/php-5.4.6/main
-I/data/prj/php-5.4.6 -I/data/prj/php-5.4.6/ext/date/lib
-I/data/prj/php-5.4.6/ext/ereg/regex -I/opt/include/libxml2 -I/opt/include
-I/data/prj/php-5.4.6/ext/sqlite3/libsqlite -I/data/prj/php-5.4.6/TSRM
-I/data/prj/php-5.4.6/Zend -I/usr/include -g -c
/data/prj/php-5.4.6/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo
"/data/prj/php-5.4.6/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S)
Syntax error.
"/data/prj/php-5.4.6/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S)
Undeclared identifier i.
"/data/prj/php-5.4.6/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S)
Syntax error: possible missing ';' or ','?
"/data/prj/php-5.4.6/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S)
Undeclared identifier or.
make: *** [ext/sqlite3/sqlite3.lo] Error 1
#2 result
configure: error: invalid package name: sqlite3=/opt
#3 result
checking for PostgreSQL support for PDO... no
checking for sqlite 3 support for PDO... yes
checking for PDO includes... checking for PDO includes...
/data/prj/php-5.4.6/ext
configure: error:
You've configured extension pdo_sqlite, which depends on extension
sqlite3,
but you've either not enabled sqlite3, or have disabled it.
--
Edit bug report at https://bugs.php.net/bug.php?id=62971&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62971&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62971&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62971&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62971&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62971&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62971&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62971&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62971&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62971&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62971&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62971&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62971&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62971&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62971&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62971&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62971&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62971&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62971&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62971&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62971&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62971&r=mysqlcfg