Bug 79771

Summary: /usr/include/bits/byteswap.h does not define __bswap_32 properly
Product: [Retired] Red Hat Linux Reporter: David Tiller <none_yobidness>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: fweimer, mitr
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-07 16:54:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Tiller 2002-12-16 20:01:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202

Description of problem:
If __GNUC__ is less that 2 and the machine architecture is 386 or less,
__swap_16 gets redefined and __swap_32 is not defined at all.

Line 84 of /usr/include/bits/byteswap.h should define __swap_32 - instead
__swap_16 is redefined.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Download and unzip dante-1.1.13.tar.gz
2. cd into dante-1.1.13 and type ./configure
3. type make

For whatever reason, dante redefines __GNUC__ to be zero, causing the flaw in
byteswap.h to emerge.
    

Actual Results:  gcc reports a missing definition for __bswap_32.
/usr/include/bits/byteswap.h is being included from /usr/include/netinet/in.h.

Expected Results:  Sucessful compilation.

Additional info:

I changed my copy of byteswap.h line 84 to define __bswap_32, and the
compilation suceeded.

Comment 1 Jakub Jelinek 2003-01-07 16:54:00 UTC
Should be fixed in glibc-2.3.1-9 and later.