[uClibc 0001247]: uClibc endian detection seems broken if __BYTE_ORDER is not defined

bugs at busybox.net bugs at busybox.net
Wed Mar 14 11:00:46 UTC 2007


The following issue has been REOPENED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1247 
====================================================================== 
Reported By:                holin
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1247
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             03-02-2007 12:50 PST
Last Modified:              03-14-2007 04:00 PDT
====================================================================== 
Summary:                    uClibc endian detection seems broken if __BYTE_ORDER
is not defined
Description: 
This was observer on Mac OS X. In case BYTE_ORDER is defined by the host
and __BYTE_ORDER is not, __BIG_ENDIAN and __LITTLE_ENDIAN still remain
undefined. Attached patch fixes that and also adds fallback OS X support
if even BYTE_ORDER is not defined; gcc defines __BIG_ENDIAN__ (=1) or
__LITTLE_ENDIAN__ (=1) on OS X. The patch is against 0.9.28.3, but svn
seems affected, too.

====================================================================== 

---------------------------------------------------------------------- 
 vapier - 03-13-07 20:46  
---------------------------------------------------------------------- 
added to trunk, cheers 

---------------------------------------------------------------------- 
 holin - 03-14-07 04:00  
---------------------------------------------------------------------- 
In trunk, as it seems, bswap_64 is also taken into use. A lame replacement
is needed for that, too. Attaching a patch for the issue. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-02-07 12:50  holin          New Issue                                    
03-02-07 12:50  holin          Status                   new => assigned     
03-02-07 12:50  holin          Assigned To               => uClibc          
03-02-07 12:50  holin          File Added: uClibc-0.9.28.3-endian.patch         
          
03-13-07 20:46  vapier         Note Added: 0002234                          
03-13-07 20:46  vapier         Status                   assigned => closed  
03-13-07 20:46  vapier         Resolution               open => fixed       
03-14-07 04:00  holin          Status                   closed => feedback  
03-14-07 04:00  holin          Resolution               fixed => reopened   
03-14-07 04:00  holin          Note Added: 0002236                          
======================================================================




More information about the uClibc-cvs mailing list