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...