Bug #79056 [NEW]: sqlite does not respect PKG_CONFIG_PATH during compilation

From: Date: Thu, 02 Jan 2020 19:55:28 +0000
Subject: Bug #79056 [NEW]: sqlite does not respect PKG_CONFIG_PATH during compilation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224670@lists.php.net to get a copy of this message
From: naox at yum dot pl Operating system: PHP version: 7.4.1 Package: Compile Failure Bug Type: Bug Bug description:sqlite does not respect PKG_CONFIG_PATH during compilation Description: ------------ PKG_CONFIG_PATH=/usr/sqlite-autoconf-3300100/lib/pkgconfig ./configure checking for sqlite3 > 3.7.4... yes checking for sqlite3_stmt_readonly in -lsqlite3... no configure: error: Please install SQLite 3.7.4 first or check libsqlite3 is present I suspect compilation does not respect sqlite from PKG_CONFIG_PATH. It would be usefull if it printed sqlite version it uses... When I cut out these test from configure script I got errors like that, which suggest wrong sqlite version was used. ext/pdo_sqlite/.libs/sqlite_statement.o: In function `pdo_sqlite_stmt_param_hook': sqlite_statement.c:(.text+0x58f): undefined reference to `sqlite3_reset' sqlite_statement.c:(.text+0x5e2): undefined reference to `sqlite3_bind_text' sqlite_statement.c:(.text+0x620): undefined reference to `sqlite3_bind_null' sqlite_statement.c:(.text+0x697): undefined reference to `sqlite3_bind_blob' sqlite_statement.c:(.text+0x6d5): undefined reference to `sqlite3_bind_int64' sqlite_statement.c:(.text+0x71b): undefined reference to `sqlite3_bind_parameter_index' sqlite_statement.c:(.text+0x738): undefined reference to `sqlite3_bind_null' sqlite_statement.c:(.text+0x761): undefined reference to `sqlite3_bind_null' sqlite_statement.c:(.text+0x7f2): undefined reference to `sqlite3_bind_null' ext/pdo_sqlite/.libs/sqlite_statement.o: In function `pdo_sqlite_stmt_execute': sqlite_statement.c:(.text+0x88d): undefined reference to `sqlite3_step' sqlite_statement.c:(.text+0x8e9): undefined reference to `sqlite3_data_count' sqlite_statement.c:(.text+0x989): undefined reference to `sqlite3_column_count' sqlite_statement.c:(.text+0xa07): undefined reference to `sqlite3_reset' sqlite_statement.c:(.text+0xa15): undefined reference to `sqlite3_reset' sqlite_statement.c:(.text+0xa3e): undefined reference to `sqlite3_changes' sqlite_statement.c:(.text+0xa4d): undefined reference to `sqlite3_reset' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 -- Edit bug report at https://bugs.php.net/bug.php?id=79056&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79056&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79056&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79056&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79056&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79056&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79056&r=support Expected behavior: https://bugs.php.net/fix.php?id=79056&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79056&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79056&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79056&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79056&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79056&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79056&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79056&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79056&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79056&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79056&r=mysqlcfg

« previous php.bugs (#224670) next »