Bug #13814 Updated: missing required flags for Compaq compiler
| From: | long at kestrel dot cc dot ku dot edu | Date: | Wed, 03 Jul 2002 13:50:05 +0000 |
| Subject: | Bug #13814 Updated: missing required flags for Compaq compiler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12982@lists.php.net to get a copy of this message | ||
ID: 13814
Updated by: long@kestrel.cc.ku.edu
Reported By: long@kestrel.cc.ku.edu
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: Compaq Tru64 4.0F PK3
PHP Version: 4.0CVS-2001-10-24
New Comment:
php4-200207030600 doesn't quite work. Here is the configure line I
tried:
env CC=cc CXX=cxx ./configure --with-openssl --enable-bcmath
--with-ndbm --with-dbm --enable-dbase --enable-filepro --enable-ftp
--with-gd --with-ttf --with-java=/usr/opt/java130
--with-ldap=/usr/local/ldap --with-mysql --with-oci8 --with-oracle
--enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-wddx --enable-dba=shared --enable-calendar --enable-exif
--enable-discard-path --enable-dbx --enable-ctype --with-hyperwave
--enable-mailparse --enable-mbstring --enable-mbstr-enc-trans
--enable-memory-limit
Here is the problem (from config.log):
configure:42279: checking size of char
configure:42298: cc -o conftest -g -Wl,-rpath,/usr/local/ssl/lib
-L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/opt/java130/./jre/lib/alpha/classic
-L/usr/opt/java130/./jre/lib/alpha/classic
-Wl,-rpath,/usr/opt/java130/./jre/lib/alpha/native_threads
-L/usr/opt/java130/./jre/lib/alpha/native_threads
-Wl,-rpath,/usr/opt/java130/./jre/lib/alpha
-L/usr/opt/java130/./jre/lib/alpha -Wl,-rpath,/usr/local/ldap/lib
-L/usr/local/ldap/lib conftest.c -lldapssl30 -ljava -lgd -lttf -lssl
-lcrypto -lresolv -lm -lresolv 1>&5
ld:
Cannot use 32 bit shared lib 'libldapssl30.so' without -taso option
configure: failed program was:
#line 42287 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(char));
exit(0);
}
Previous Comments:
------------------------------------------------------------------------
[2002-07-02 21:40:22] sniper@php.net
Please try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
------------------------------------------------------------------------
[2001-10-24 09:56:43] long@kestrel.cc.ku.edu
See bug #8871 for the background on this bug. I'm unable to update
that bug due to password issues. Here's my update for that bug:
Well, after dinking with the configure script in php4-200110230600 to
get it to use -rpath correctly (see bug #8844) I was able to get it to
work with the following configure line:
env CFLAGS='-taso -std1' CC=cc ./configure --with-openssl
--enable-bcmath --with-ndbm --with-dbm --enable-dbase --enable-filepro
--enable-ftp --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
It looks like setting LD is no longer needed as cc is used for linking.
-taso is still needed to link with the Netscape LDAP SDK 3.0 libraries
as they're only 32-bit (and this is a 64-bit platform). -std1 is
needed to compile with the oracle libs when using this particular
version of Oracle and C compiler. The other flags I was using were
just optional optimization flags, thus not necessary.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13814&edit=1