Here are more details for this problem:
Looks like I have to upgrade the glibc libs.
this is a partial output after run /lib/libc.so.6
/lib/libc.so.6
Compiled by GNU CC version 3.4.6 20060404 (Red Hat 3.4.6-9).
Compiled on a Linux 2.4.20 system on 2008-04-15.
I have downloaded
glibc-2.4.tar.gz (06-Mar-2006)
from http://ftp.gnu.org/gnu/glibc/
but got compile errors when build the package:
gcc ../sysdeps/unix/sysv/linux/if_index.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/libs_C/glibc/glibc-2.4-build/inet -I/libs_C/glibc/glibc-2.4-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -I /lib/modules/2.6.9-89.0.25.ELsmp/build/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /libs_C/glibc/glibc-2.4-build/inet/if_index.o -MD -MP -MF /libs_C/glibc/glibc-2.4-build/inet/if_index.o.dt -MT /libs_C/glibc/glibc-2.4-build/inet/if_index.o
In file included from /lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/netlink.h:5,
from ../sysdeps/unix/sysv/linux/netlinkaccess.h:23,
from ../sysdeps/unix/sysv/linux/if_index.c:32:
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:158: error: syntaxerror before "__sum16"
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:158: warning: typedefaults to `int' in declaration of `__sum16'
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:158: warning: datadefinition has no type or storage class
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:159: error: syntaxerror before "__wsum"
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:159: warning: typedefaults to `int' in declaration of `__wsum'
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:159: warning: datadefinition has no type or storage class
Can anyone confirm if I am on the right path? If it is, how can I fix the build error of glibc 2.4? Thank you in advance for help.
Bookmarks