ID: 41889 User updated by: roman dot vanicek at gmail dot com Reported By: roman dot vanicek at gmail dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Ubuntu Linux 6.06 PHP Version: 5.2.3 New Comment:
Yes, you are right, the configure problem is a bug in the instantclinet, thank you a lot for the link, it saved my night :-)) I confirm the solution is to remove -lirc from ths file sdk/demo/sysliblist. So, to summarize, configure is working fine for me now, I can build both modules static (oci8 and pdo-oci). The crash still remains under some circumstances: PHP-CLI: OK PHP-Apache2: OK PHP-Apache1.3 + no oci: OK PHP-Apache1.3 + oci8 dynamic: OK PHP-Apache1.3 + pdo-oci dynamic: OK PHP-Apache1.3 + oci8 dynamic + pdo-oci dynamic: SIGSEGV PHP-Apache1.3 + oci8 dynamic + pdo-oci static: OK PHP-Apache1.3 + oci8 static + pdo-oci static: OK It's a rare situation and there is a workaround (static build), so let us leave it as bogus. Previous Comments: ------------------------------------------------------------------------ [2007-07-03 22:25:27] roman dot vanicek at gmail dot com Sorry again, it seems that there must be some part of configure information that is cached and it interferes when I run configure again. I have unpacked the sources to get a fresh, clean setup and I ran the above command again and it worked well. And it still worked when I added almost all the other database drivers. BUT - there seems to be some kind of interference between oci8 and pdo-odbc in configure, because this command does not work even from the source files freshly unpacked: ./configure --prefix=/usr --with-config-file-path=/etc/php5 --with-apxs=/usr/bin/apxs \ --prefix=/build/install \ --enable-debug --without-pear --without-mysql \ --with-openssl \ --with-oci8=instantclient,/usr/local/lib/oracli \ --with-pdo-odbc=generic,/usr,iodbc checking for SQLBindCol in -liodbc... no configure: error: Your ODBC library does not exist or there was an error. Check config.log for more information But it does exist, and changing the command to this (again from fresh sources), works: ./configure --prefix=/usr --with-config-file-path=/etc/php5 --with-apxs=/usr/bin/apxs \ --prefix=/build/install \ --enable-debug --without-pear --without-mysql \ --with-openssl \ --with-oci8=shared,instantclient,/usr/local/lib/oracli \ --with-pdo-odbc=generic,/usr,iodbc I cannot figure why. Maybe it's getting late...(midnight has just passed here :-) I add that --with-iodbc is not a problem and --with-pdo-oci is not a problem. Just having these two together (--with-oci8= and --with-pdo-odbc=generic,/usr,iodbc) seems to kick me. ------------------------------------------------------------------------ [2007-07-03 22:11:18] [EMAIL PROTECTED] There seem to be a bug in Oracle Instant Client. See http://forums.oracle.com/forums/thread.jspa?messageID=1508129 and http://forums.oracle.com/forums/thread.jspa?threadID=307303 ------------------------------------------------------------------------ [2007-07-03 22:05:33] roman dot vanicek at gmail dot com To complete my comment - these parameters of configure lead to the same error ./configure --prefix=/usr --with-config-file-path=/etc/php5 --with-apxs=/usr/bin/apxs \ --prefix=/build/install \ --enable-debug --without-pear --without-mysql \ --with-openssl \ --with-oci8=instantclient,/usr/local/lib/oracli ------------------------------------------------------------------------ [2007-07-03 21:55:56] roman dot vanicek at gmail dot com Ah, I see, I have checked it again and there must be something queer at the configure phase. I need almost all database drivers at the same time. Doing this is ok: --with-sybase-ct=/usr/local/lib/freetds \ --with-interbase=/usr/local/lib/firebird \ --with-oci8=shared,instantclient,/usr/local/lib/oracli Doing this produces this error during configure: --with-sybase-ct=/usr/local/lib/freetds \ --with-interbase=/usr/local/lib/firebird \ --with-oci8=instantclient,/usr/local/lib/oracli checking for PostgreSQL support for PDO... no checking for sqlite 3 support for PDO... yes checking for PDO includes... checking for PDO includes... /root/build/php/php-5.2.3/ext checking for char *... yes checking size of char *... configure: error: cannot compute sizeof (char *), 77 See `config.log' for more details. --- config.log configure:96562: checking for PDO includes configure:96568: checking for PDO includes configure:96579: result: /root/build/php/php-5.2.3/ext configure:97708: checking for char * configure:97732: gcc -c -I/usr/include -g -O0 conftest.c >&5 configure:97738: $? = 0 configure:97741: test -z || test ! -s conftest.err configure:97744: $? = 0 configure:97747: test -s conftest.o configure:97750: $? = 0 configure:97761: result: yes configure:97764: checking size of char * configure:98076: gcc -o conftest -I/usr/include -g -O0 -L/usr/lib -Wl,-rpath,/root/build/bin/firebird/lib -L/root/build/bin/firebird/lib -Wl,-rpath,/usr/local/lib/oracli -L/usr/local/lib/oracli conftest.c -lfbclient -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -ldl -lm -lnsl -lirc -lclntsh >&5 /usr/bin/ld: cannot find -lirc collect2: ld returned 1 exit status configure:98079: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h. */ | ... There is some problem with -lirc but what is this library? ------------------------------------------------------------------------ [2007-07-03 21:03:22] [EMAIL PROTECTED] >Last notice: If pdo_oci is compiled statically into PHP and oci8 >dynamically (it refuses to be built static) Huh? I _never_ build it as dynamic extension. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41889 -- Edit this bug report at http://bugs.php.net/?id=41889&edit=1
