php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13814 missing required flags for Compaq compiler
Submitted: 2001-10-24 09:56 UTC Modified: 2002-07-03 10:39 UTC
From: long at kestrel dot cc dot ku dot edu Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0CVS-2001-10-24 OS: Compaq Tru64 4.0F PK3
Private report: No CVE-ID: None
 [2001-10-24 09:56 UTC] long at kestrel dot cc dot ku dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-02 21:40 UTC] sniper@php.net
Please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz


 [2002-07-03 09:50 UTC] long at kestrel dot cc dot ku dot edu
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);
}
 [2002-07-03 10:37 UTC] sniper@php.net
I forgot to mention that that -taso thing is not fixed yet.
So please try setting it. I wanted to know whether the
other flags are needed too..

 [2002-07-03 10:39 UTC] sniper@php.net
Just noticed that you have other bug (#17702) which has 
basically the same problems. There's no use for us to
have many reports in our bug db so I'm bogusing this one.

Let's use the 17702 from now on for all these issues with Tru64.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 12:01:33 2024 UTC