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

bugs at busybox.net bugs at busybox.net
Sat Sep 15 09:26:02 UTC 2007


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             03-02-2007 12:50 PST
Last Modified:              09-15-2007 02:26 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. 

---------------------------------------------------------------------- 
 vapier - 09-15-07 02:26  
---------------------------------------------------------------------- 
current trunk should be ok 

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                          
03-14-07 04:01  holin          File Added: uClibc-svn-070314-bswap.patch        
           
03-31-07 09:47  bendiken       Issue Monitored: bendiken                    
09-15-07 02:26  vapier         Note Added: 0002751                          
09-15-07 02:26  vapier         Status                   feedback => closed  
09-15-07 02:26  vapier         Resolution               reopened => fixed   
======================================================================




More information about the uClibc-cvs mailing list