Bug #77342 [Com]: php-src does not compile

From: Date: Wed, 16 Jan 2019 11:15:03 +0000
Subject: Bug #77342 [Com]: php-src does not compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218983@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77342&edit=1 ID: 77342 Comment by: petk@php.net Reported by: carusogabriel@php.net Summary: php-src does not compile Status: Open Type: Bug Package: Compile Failure Operating System: MacOS 10.14.2 (18C54) PHP Version: master-Git-2018-12-23 (Git) Block user comment: N Private report: N New Comment: It's mac, not PHP. Case is that this system is locked to its own packages and versions, yet to install a custom package, for example, via brew, it doesn't upgrade the system's sqlite package but installs its own under a special location - something like /usr/local/opt/sqlite So, after inspecting particular package: brew info sqlite3 we notice info where the package is installed and the command to configure PHP (at the time of this writing) becomes: ./configure --with-sqlite3=/usr/local/opt/sqlite --without-iconv --with-pdo-sqlite=/usr/local/opt/sqlite (yes, with the current moving to so called pkg-config there will be quite a lot of adjustments still required on some systems because I'm not sure that it will recognize all packages without passing environment variables. I'm assuming, but in your case it might be that php is trying to build against the system's sqlite3 version which is either outdated, or something else wrong with it, so you'll need to similarly point to the brew sqlite3 package. P.S: Probably something similar goes for the iconv library... Previous Comments: ------------------------------------------------------------------------ [2018-12-24 15:27:44] carusogabriel@php.net But using both --without-sqlite3 --without-pdo-sqlite I could make it ran :) ------------------------------------------------------------------------ [2018-12-24 15:20:37] carusogabriel@php.net Even using the --without-sqlite3 flag, I still get this error. ------------------------------------------------------------------------ [2018-12-23 17:40:33] carusogabriel@php.net I`ve installed SQLite using this article: https://tableplus.io/blog/2018/08/download-install-sqlite-for-mac-osx-in-5-minutes.html ------------------------------------------------------------------------ [2018-12-23 17:35:00] cmb@php.net Interesting! See <http://news.php.net/php.qa/68282>. ------------------------------------------------------------------------ [2018-12-23 17:08:36] carusogabriel@php.net Description: ------------ I tried to configure php-src locally in a new MacBook, but without success while compiling. I can edit this bug with further needed information, but this is what I get when trying to run make -j5 after ./configure --enable-maintainer-zts --enable-debug --enable-cli --without-iconv: Undefined symbols for architecture x86_64: "_sqlite3_column_table_name", referenced from: _pdo_sqlite_stmt_col_meta in sqlite_statement.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [sapi/phpdbg/phpdbg] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77342&edit=1

« previous php.bugs (#218983) next »