LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem installing glibc 2.10.1 (https://www.linuxquestions.org/questions/linux-software-2/problem-installing-glibc-2-10-1-a-751838/)

dokness 09-01-2009 12:21 PM

Problem installing glibc 2.10.1
 
I'm trying to update glibc from an old version 2.3 to 2.10.1
on a Redhat Enterprise Linux 4
kernel version 2.6.9-78.0.1.ELsmp

I configured with ./configure --prefix=/usr in a build directory as recommended.

However, make fails with the following error:
...
In file included from /lib/modules/2.6.9-78.0.1.ELsmp/build/include/linux/netlink.h:5,
from ../sysdeps/unix/sysv/linux/netlinkaccess.h:23,
from ../sysdeps/unix/sysv/linux/if_index.c:33:
/lib/modules/2.6.9-78.0.1.ELsmp/build/include/linux/types.h:158: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__sum16’
/lib/modules/2.6.9-78.0.1.ELsmp/build/include/linux/types.h:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wsum’
make[2]: *** [/home/dokland/glibc-build/inet/if_index.o] Error 1
make[2]: Leaving directory `/home/dokland/glibc-2.10.1/inet'
make[1]: *** [inet/subdir_lib] Error 2
make[1]: Leaving directory `/home/dokland/glibc-2.10.1'
make: *** [all] Error 2

I have installed binutils 2.19
gcc 4.3.2
gmake 3.80

I have seen some comments on related issues that a patch for the headers is needed, but am not really sure what patch I need or how to install it.

John VV 09-01-2009 01:23 PM

FIRST DO NOT INSTALL A DIFFERENT GLIBC IN /usr
THAT WILL KILL YOUR SYSTEM!!!!!!!!!!!!!!!!!!!!!!!!!!!


upgrade your RHEL 4 install to RHEL 5.3


All times are GMT -5. The time now is 10:03 PM.