ID: 36780 Updated by: [EMAIL PROTECTED] Reported By: james at groovytrain dot com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Redhat Linux 7.1 PHP Version: 5.1.2 New Comment:
As you can see, it doesn't work indeed. No PHP bug here, it's some mess in your system. Previous Comments: ------------------------------------------------------------------------ [2006-03-18 19:28:07] james at groovytrain dot com Executing the binary gives me the following error: ./conftest: error while loading shared libraries: /usr/local/lib/libpthread.so.0: undefined symbol: _dl_cpuclock_offset ------------------------------------------------------------------------ [2006-03-18 19:20:29] [EMAIL PROTECTED] Did you try to execute the result binary? ------------------------------------------------------------------------ [2006-03-18 19:08:15] james at groovytrain dot com I tried configuring with "--with-libxml-dir=/usr/local" (although I was fairly sure I'd tried this) and it still failed with the same error. I then created "conftest.c", as you recommended, and compiled it. "conftest.c" compiled without error into the file "conftest". The only difference I can see, between the "conftest.c" that the configuration script makes and the one I created, is the include line. ------------------------------------------------------------------------ [2006-03-18 18:02:12] [EMAIL PROTECTED] 1) "--with-libxml-dir=/usr/local/lib" This is definitely wrong. The "/lib" part should be omitted, so it would look like "--with-libxml-dir=/usr/local". This also applies to all the other options. 2) If you still can reproduce it, please put this code: ---------- char xmlInitParser(); int main() { xmlInitParser(); return 0; } ---------- into conftest.c and try to compile it like this: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm and post here the error message you get. ------------------------------------------------------------------------ [2006-03-18 12:04:07] james at groovytrain dot com Description: ------------ Having compiled PHP without XML support on my system several times without problem, I decided to try and include XML support. When I run the following command: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --without-pear --enable-libxml --with-gd --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr --enable-mbstring=all It fails with: checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details. The "config.log" shows: configure:19959: checking whether libxml build works configure:19986: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5 configure: failed program was: #line 19975 "configure" #include "confdefs.h" char xmlInitParser(); int main() { xmlInitParser(); return 0; } My system has libxml2 version 2.6.23, which was compiled and installed from source not using an RPM. I have tried a various "--with-libxml-dir" parameters including "--with-libxml-dir=/usr/local/lib" (libxml2 v2.6.23 is in "/usr/local/lib" and v 2.4.10 in "/usr/lib"). Any help you can give will be gratefully received. Expected result: ---------------- I expect ./configure to complete successfully. Actual result: -------------- ./configure fails with: checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36780&edit=1