Bug 79771 - /usr/include/bits/byteswap.h does not define __bswap_32 properly
/usr/include/bits/byteswap.h does not define __bswap_32 properly
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-12-16 15:01 EST by David Tiller
Modified: 2016-11-24 10:17 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-07 11:54:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Tiller 2002-12-16 15:01:10 EST
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:

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 11:54:00 EST
Should be fixed in glibc-2.3.1-9 and later.

Note You need to log in before you can comment on or make changes to this bug.