HI,
I'm new in PHP and solaris. I have SOlaris x86 intel,and I try to install PHP, Apache 1.3.22 and Oracle 8.0.5. When I reconfigure my Apache to activate PHP4 module, I got some error. I think this error caused by libclntsh.so in oracle 8.0.5.Because, when i installed oracle, i could not find libclntsh.so file in $ORACLE_HOME/lib directory. Then I generated it by running the genclntsh script.The error message is like this :
Sun Microsystems Inc. SunOS 5.7 Generic October 1998
bash
bash-2.03# cd /master/apache1322/apache_1.3.22
bash-2.03# ./configure --activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.22
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Solaris 270 platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
A test compilation with your Makefile configuration
failed. The below error output from the compilation
test will give you an idea what is failing. Note that
Apache requires an ANSI C Compiler, such as gcc.
cd ..; gcc -DSOLARIS2=270 -I/master/php411/php-4.1.1 -I/master/php411/php-4.1.1/main -I/master/php411/php-4.1.1/main -I/master/php411/php-4.1.1/Zend -I/master/php411/php-4.1.1/Zend -I/master/php411/php-4.1.1/TSRM -I/master/php411/php-4.1.1/TSRM -I/master/php411/php-4.1.1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci -o helpers/dummy helpers/dummy.c -R/usr/ucblib -R/usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 -R/usr/oracle/app/oracle/product/8.0.5/lib -L/usr/ucblib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 -L/usr/oracle/app/oracle/product/8.0.5/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm -lposix4 -laio -lelf -ldl -lmw -lgen -lnsl -lsocket -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc -lcrypt -lsocket -lnsl
Undefined first referenced
symbol in file
ncrfiv /usr/oracle/app/oracle/product/8.0.5/lib/libclntsh.so
nttini /usr/oracle/app/oracle/product/8.0.5/lib/libclntsh.so
osncon /usr/oracle/app/oracle/product/8.0.5/lib/libclntsh.so
niqname /usr/oracle/app/oracle/product/8.0.5/lib/libclntsh.so
ld: fatal: Symbol referencing errors. No output written to helpers/dummy
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `dummy'
======== Error Output for sanity check ========
============= End of Error Report =============
Aborting!
bash-2.03#
Does anyone have any idea to solve this problem? Please, help me ....
Thank's a lot
Andrie