Date: 2003-05-05
Description: Mistakenly redefines __bswap_16 instead of
__bswap_32 in /usr/include/bits/byteswap.h
Affects: glibc-devel-2.2.5 that is shipped with
Red Hat Linux 8.0.
Summary: This a fix that allows to install MPICH and
LAM/MPI using Intel Compilers.
Symptoms: You get the error " undefined references to
`__bswap_32' follow" when one try to compile
MPICH or LAM/MPI using Intel Compilers.
To find the version of glic-devel package in
Red Hat,
run the command
rpm -q glibc-devel.
If the version is 2.2.5, then you may want to do
the following:
1) su as root
2) change directory to /usr/include/bits:
# cd /usr/include/bits
3) Make a backup copy of the file byteswap.h
# cp byteswap.h byteswap.h.bak
4) Open the file byteswap.h with an editor.
5) go to line number 84.
6) replace the line:
# define __bswap_16(x) \
with the line
# define __bswap_32(x) \
(i.e., change 16 to 32)
|