php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7731 compilation with deprecated abi (no -n32)
Submitted: 2000-11-09 12:20 UTC Modified: 2001-11-14 06:37 UTC
From: p dot pastori at acsys dot it Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: IRIX 6.5 (6.5.8m)
Private report: No CVE-ID: None
 [2000-11-09 12:20 UTC] p dot pastori at acsys dot it
Under IRIX OS all code is generally compiled at least with the -n32 option.
Since more than one object format exists SGI states that a portable lib/app would be compiled with the -n32 option. Moreover this is a de facto standard when you need to link toghether more libs (from separate vendors) because different object abi does not link togheter.
Under newer platform this is the default but on older you must specify the option above NOT ONLY to the compiler but to the linker too (if as you do do not let the compiler to invoke the linker).
I do not known the GNU libtool but to overcome the problem i simply set the following environment variables before run the configure script:
setenv CFLAGS '-n32 -INLINE -O2 -OPT:Olimit=0'
setenv LDFLAGS -n32
apart from the csh syntax note that the -INLINE directive is given to ensure proper inlining and the -O2 and following Olimit is for ensure that optimization is turned on without memory limit

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 06:42 UTC] sniper@php.net
Could you please test latest CVS snapshot from 
http://snaps.php.net/ ? It uses the more recent libtool.
Maybe it has fixed this? (I don't have access to any IRIX systems)

--Jani


 [2001-11-14 06:37 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 07:01:30 2024 UTC