php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33226 php 5.0.4 no longer detects endianness when cross-compiling
Submitted: 2005-06-03 02:32 UTC Modified: 2005-06-03 21:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jbparsons at ucdavis dot edu Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5.0.4 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
25 + 48 = ?
Subscribe to this entry?

 
 [2005-06-03 02:32 UTC] jbparsons at ucdavis dot edu
Description:
------------
php 5.0.3 and earlier used AC_C_BIGENDIAN during configuration to detect the endianness of the target system.  This autoconf macro is capable of detecting the endianness of many systems even when cross-compiling.

php 5.0.4 now uses AC_TRY_RUN instead, which means that it is no longer able to detect the endianness of a target, and it must instead be configured manually.

This makes it harder to configure php correctly when building for embedded systems, such as the Linksys nslu2, where this problem was noticed.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-03 08:02 UTC] sniper@php.net
Yes, life is hard sometimes. If you can provide a reliable way to detect endianness when cross-compiling, feel free to send a patch. 
 [2005-06-03 21:40 UTC] jbparsons at ucdavis dot edu
what's wrong with AC_C_BIGENDIAN?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC