#41794 [NEW]: Library test for external sqlite3 misses -lrt and fails

From: Date: Mon, 25 Jun 2007 05:21:42 +0000
Subject: #41794 [NEW]: Library test for external sqlite3 misses -lrt and fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114139@lists.php.net to get a copy of this message
From: geoffwa at cs dot rmit dot edu dot au Operating system: Solaris 10 PHP version: 5.2.3 PHP Bug Type: Compile Failure Bug description: Library test for external sqlite3 misses -lrt and fails Description: ------------ The library test for external SQLite3 libraries fails on Solaris 10 as it does not include -lrt and consequently always fails. When building with bundled sqlite3 library, there is a test for -lrt on line 122 of ext/pdo_sqlite/config.m4: dnl Solaris fix PHP_CHECK_LIBRARY(rt, fdatasync, [ PHP_ADD_LIBRARY(rt,, PDO_SQLITE_SHARED_LIBADD)]) This test could be moved so it's usable by both the bundled and non-bundled builds. (I'd offer a patch but my M4 foo is weak) Reproduce code: --------------- shell: ./configure --prefix=/usr/local --with-pdo-sqlite=shared,/usr/local *snip* checking for sqlite 3 support for PDO... yes, shared checking for PDO includes... (cached) /export/work/php-5.2.3/ext checking for sqlite3_open in -lsqlite3... no configure: error: wrong sqlite lib version or lib not found config.log: configure:76889: cc -o conftest -I/usr/include -O -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/local/ lib -R/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib -lm conftest.c -lsqlite3 -lintl -lbz2 -lz -lpcre -lresolv -lm -lnsl -ls ocket -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl 1>&5 Undefined first referenced symbol in file fdatasync /usr/local/lib/libsqlite3.so ld: fatal: Symbol referencing errors. No output written to conftest configure: failed program was: #line 76878 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char sqlite3_open(); int main() { sqlite3_open() ; return 0; } -- Edit bug report at http://bugs.php.net/?id=41794&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41794&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41794&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41794&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41794&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41794&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41794&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41794&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41794&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41794&r=support Expected behavior: http://bugs.php.net/fix.php?id=41794&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41794&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41794&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41794&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41794&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41794&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41794&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41794&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41794&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41794&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41794&r=mysqlcfg

« previous php.bugs (#114139) next »