|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8871 missing required flags for Compaq compiler
Submitted: 2001-01-23 16:47 UTC Modified: 2001-10-24 01:11 UTC
From: long at kestrel dot cc dot ukans dot edu Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.4pl1 OS: Compaq Tru64 4.0F PK3
Private report: No CVE-ID: None
 [2001-01-23 16:47 UTC] long at kestrel dot cc dot ukans dot edu
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/"'  -o -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 `test -n "" && echo -set_version ` -update_registry .libs/so_locations -o .libs/
Cannot use 32 bit shared lib '' without -taso option
*** Exit 1
*** Exit 1
*** Exit 1
*** Exit 1

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 06:50 UTC]
Are all these needed with the latest snapshot of PHP? 


 [2001-10-24 01:11 UTC]
Empty user passwd. Please re-submit if problem still exists
with latest snapshot.


PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Sep 29 04:01:23 2020 UTC