note 34405 deleted from oci8.installation by cmb

From: Date: Sun, 20 Oct 2019 08:53:55 +0000
Subject: note 34405 deleted from oci8.installation by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212706@lists.php.net to get a copy of this message
Note Submitter: lomax at arizona edu ---- Can't compile php with Oracle 9i and apache on Solaris8? Sun 280R Using some of the tips below I had to add this: (static build) #!/bin/tcsh setenv LDFLAGS -L$ORACLE_HOME/lib32 cd php-4.x.x/ ./configure --with-oci8=$ORACLE_HOME --with-apache=/path/to/apache_src ..etc make make intsall cd apache_src (make sure environment variable is still set) ./configure "--prefix=/usr/apache" "--enable-module=so" \ "--activate-module=src/modules/php4/libphp4.a" ...etc make make install Having the gcc compilier build php against oracle 32 bit libraries was the key, but without setting LDFLAGS the compiler defaults to using the 64-bit oracle libraries which cause the famous "...wrong ELF class: ELFCLASS64.." on startup. The only diffenece here was I didn't have to do play musical directories for it to work. The below post was instrumental in helping me to get this fixed. Thanks to "lore_giver at lycos dot co dot uk"

« previous php.notes (#212706) next »