From:             [EMAIL PROTECTED]
Operating system: Compaq Tru64 4.0F PK3
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Failure
Bug description:  missing required flags for Compaq compiler

Without a couple of extra link/compile flags I was unable to compile php:

env LD='/usr/bin/ld -taso' CC=cc CFLAGS='-ifo -O2 -std1 -taso' ./configure 
--with-openssl --enable-bcmath --with-ndbm --with-dbm --enable-dbase --enable-filepro 
--enable-ftp --enable-gd-imgstrttf --with-gd --with-ttf --with-java=/usr/opt/java130 
--with-ldap=/usr/local/ldap --with-mysql=/usr/local/mysql --with-oci8 --with-oracle 
--enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-wddx 
--enable-memory-limit --enable-dba=shared --enable-calendar --enable-exif

The -std1 is required so that the symbol __STDC__ is defined during compilation.   
Otherwise it bombs when trying to compile the oci7 or oci8 support (I can't remember 
if it was one or the other in particular).  The -taso is required when trying to 
compile (and/or link) with LDAP support using the Netscape LDAP libraries.  Otherwise 
it bombs out when trying to use them because the Netscape libraries are 32-bit and 
that causes problems for the 64-bit OS ;-)

Example -taso error message:
/bin/sh /homeb/long/src/php-4.0.4pl1/shlibtool --mode=link cc  -I. 
-I/homeb/long/src/php-4.0.4pl1/ext/java -I/homeb/long/src/php-4.0.4pl1/main 
-I/homeb/long/src/php-4.0.4pl1 -I/homeb/long/src/php-4.0.4pl1/Zend 
-I/usr/local/ssl/include -I/usr/local/include -I/usr/local/ldap/include 
-I/usr/local/mysql/include/mysql 
-I/home/oracle/u01/app/oracle/product/8.0.5/rdbms/demo 
-I/home/oracle/u01/app/oracle/product/8.0.5/network/public 
-I/home/oracle/u01/app/oracle/product/8.0.5/plsql/public 
-I/homeb/long/src/php-4.0.4pl1/ext/xml/expat/xmltok 
-I/homeb/long/src/php-4.0.4pl1/ext/xml/expat/xmlparse 
-I/homeb/long/src/php-4.0.4pl1/TSRM -I/usr/opt/java130/include 
-I/usr/opt/java130/include/alpha -DXML_BYTE_ORDER=12 -std1 -taso -DJNI_12 -D_REENTRANT 
'-DJAVALIB="/usr/opt/java130/jre/lib/alpha/libjava.so"'  -o libphp_java.la 
-avoid-version -module -rpath /homeb/long/src/php-4.0.4pl1/modules 
-L/usr/local/ssl/lib -L/usr/opt/java130/jre/lib/alpha/classic 
-L/usr/opt/java130/jre/lib/alpha/native_threads -L/usr/opt/java130/jre/lib/alpha 
-L/usr/local/ldap/lib -L/usr/local/mysql/lib/mysql 
-L/home/oracle/u01/app/oracle/product/8.0.5/lib  -R /usr/local/ssl/lib -R 
/usr/opt/java130/jre/lib/alpha/classic -R 
/usr/opt/java130/jre/lib/alpha/native_threads -R /usr/opt/java130/jre/lib/alpha -R 
/usr/local/ldap/lib -R /usr/local/mysql/lib/mysql -R 
/home/oracle/u01/app/oracle/product/8.0.5/lib java.lo  php_java.jar -lclntsh -lpsa 
-lcore4 -lnlsrtl3 -lm -laio -lrt -lmld -lexc -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm 
-laio -lrt -lmld -lexc -lmysqlclient -lldapssl30 -ljava -lcrypto -lssl -lresolv -lm 
-taso -lresolv
mkdir .libs
(cd . && ln -s java.lo java.o)
/usr/bin/ld -shared -expect_unresolved \*  java.o   -L/usr/local/ssl/lib 
-L/usr/opt/java130/jre/lib/alpha/classic 
-L/usr/opt/java130/jre/lib/alpha/native_threads -L/usr/opt/java130/jre/lib/alpha 
-L/usr/local/ldap/lib -L/usr/local/mysql/lib/mysql 
-L/home/oracle/u01/app/oracle/product/8.0.5/lib -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm 
-laio -lrt -lmld -lexc -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm -laio -lrt -lmld -lexc 
-lmysqlclient -lldapssl30 -ljava -lcrypto -lssl -lresolv -lm -lresolv -lc  -msym 
-soname libphp_java.so `test -n "" && echo -set_version ` -update_registry 
.libs/so_locations -o .libs/libphp_java.so
/usr/bin/ld:
Cannot use 32 bit shared lib 'libldapssl30.so' without -taso option
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

I have no example of the -std1 error message: it scrolled by a long time ago.

This was done using:

DEC C V5.9-010 on Digital UNIX V4.0 (Rev. 1229)
/usr/bin/ld version 3.11

Jeff Long


-- 
Edit Bug report at: http://bugs.php.net/?id=8871&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to