LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Error compiling php with oci8 - slackware64-13.37 (https://www.linuxquestions.org/questions/slackware-14/error-compiling-php-with-oci8-slackware64-13-37-a-887852/)

Uzuki 06-22-2011 10:37 PM

Error compiling php with oci8 - slackware64-13.37
 
Hi,

I tried to recompile php with support for oracle extensions oci8.so. Got the source and slackbuild script from slackware repo and just add the following line to the slackbuild script.
"--with-oci8=shared,instantclient,/opt/instantclient_11_2". I use instant client from oracle Version 11.2.0.2.0 from this page

After I run the script I got this error message
Code:

/bin/sh /tmp/php-5.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -I/tmp/php-5.3.6/ext/fileinfo/libmagic -Iext/fileinfo/ -I/tmp/php-5.3.6/ext/fileinfo/ -DPHP_ATOM_INC -I/tmp/php-5.3.6/include -I/tmp/php-5.3.6/main -I/tmp/php-5.3.6 -I/tmp/php-5.3.6/ext/date/lib -I/tmp/php-5.3.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/include/freetype2 -I/usr/local/lib64/c-client/include -I/tmp/php-5.3.6/ext/mbstring/oniguruma -I/tmp/php-5.3.6/ext/mbstring/libmbfl -I/tmp/php-5.3.6/ext/mbstring/libmbfl/mbfl -I/opt/instantclient_11_2/sdk/include -I/usr/include/pspell -I/tmp/php-5.3.6/TSRM -I/tmp/php-5.3.6/Zend    -I/usr/include -O2 -fPIC -fvisibility=hidden  -c /tmp/php-5.3.6/ext/fileinfo/libmagic/readelf.c -o ext/fileinfo/libmagic/readelf.lo
/bin/sh /tmp/php-5.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -I/tmp/php-5.3.6/ext/fileinfo/libmagic -Iext/fileinfo/ -I/tmp/php-5.3.6/ext/fileinfo/ -DPHP_ATOM_INC -I/tmp/php-5.3.6/include -I/tmp/php-5.3.6/main -I/tmp/php-5.3.6 -I/tmp/php-5.3.6/ext/date/lib -I/tmp/php-5.3.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/include/freetype2 -I/usr/local/lib64/c-client/include -I/tmp/php-5.3.6/ext/mbstring/oniguruma -I/tmp/php-5.3.6/ext/mbstring/libmbfl -I/tmp/php-5.3.6/ext/mbstring/libmbfl/mbfl -I/opt/instantclient_11_2/sdk/include -I/usr/include/pspell -I/tmp/php-5.3.6/TSRM -I/tmp/php-5.3.6/Zend    -I/usr/include -O2 -fPIC -fvisibility=hidden  -c /tmp/php-5.3.6/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo
/bin/sh /tmp/php-5.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/filter/ -I/tmp/php-5.3.6/ext/filter/ -DPHP_ATOM_INC -I/tmp/php-5.3.6/include -I/tmp/php-5.3.6/main -I/tmp/php-5.3.6 -I/tmp/php-5.3.6/ext/date/lib -I/tmp/php-5.3.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/include/freetype2 -I/usr/local/lib64/c-client/include -I/tmp/php-5.3.6/ext/mbstring/oniguruma -I/tmp/php-5.3.6/ext/mbstring/libmbfl -I/tmp/php-5.3.6/ext/mbstring/libmbfl/mbfl -I/opt/instantclient_11_2/sdk/include -I/usr/include/pspell -I/tmp/php-5.3.6/TSRM -I/tmp/php-5.3.6/Zend    -I/usr/include -O2 -fPIC -fvisibility=hidden  -c /tmp/php-5.3.6/ext/filter/filter.c -o ext/filter/filter.lo
/tmp/php-5.3.6/ext/fileinfo/libmagic/softmagic.c: In function 'file_strncmp':
/tmp/php-5.3.6/ext/fileinfo/libmagic/softmagic.c:1575:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [ext/fileinfo/libmagic/softmagic.lo] Error 1
make: *** Waiting for unfinished jobs....

and the script just stop. Please help...

Uzuki 06-23-2011 05:33 AM

SOLVED
download packages from http://pecl.php.net/package/oci8, and do usual ./configure, make and make install. Don't forget run phpize command before configure.


All times are GMT -5. The time now is 11:33 AM.