Red Hat Bugzilla – Bug 79771
/usr/include/bits/byteswap.h does not define __bswap_32 properly
Last modified: 2007-04-18 12:49:04 EDT
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):
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.
I changed my copy of byteswap.h line 84 to define __bswap_32, and the
Should be fixed in glibc-2.3.1-9 and later.