Bug #7731 Updated: compilation with deprecated abi (no -n32)
| From: | sniper@php.net | Date: | Tue, 23 Oct 2001 10:42:51 +0000 |
| Subject: | Bug #7731 Updated: compilation with deprecated abi (no -n32) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68783@lists.php.net to get a copy of this message | ||
ID: 7731
Updated by: sniper
Reported By: p.pastori@acsys.it
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: IRIX 6.5 (6.5.8m)
PHP Version: 4.0.3pl1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2000-11-09 12:20:51] p.pastori@acsys.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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=7731&edit=1