LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-22-2011, 10:37 PM   #1
Uzuki
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Slackware, RedHat
Posts: 27

Rep: Reputation: 4
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...
 
Old 06-23-2011, 05:33 AM   #2
Uzuki
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Slackware, RedHat
Posts: 27

Original Poster
Rep: Reputation: 4
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error Compiling Apache fop-1.0 on Slackware64 13.1 KamasCZ Slackware 2 04-05-2011 10:38 AM
php-oci8 installation fernfrancis Linux - Newbie 1 12-14-2010 03:40 AM
php compilation with oci8 gone wrong goethe Linux - Software 1 06-06-2010 01:44 PM
how to configure php-5.1.4 with oci8 for Oracle9i jimmyjiang Red Hat 2 11-10-2006 07:53 AM
php with oci8 nightmare mariogomide Programming 1 01-31-2006 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration