glicb-2.2.5 compiling error

Grant Leslie grantl at
Tue Oct 29 11:05:49 PST 2002

Jens Emmel Wrote:

> I am using lfs 4.0 and during compiling glibc-2.2.5 the following error
> message came up and the compilation aborted:
> /usr/src/glibc-build/stdio-common/errlist.os
> ../sysdeps/unix/sysv/linux/errlist.c:41: weak declaration of
> `_old_sys_nerr'
> must precede definition

Looks to me like you did apply the patch  glibc-2.2.5-2.patch mentioned in the
Since the patch removes the weak-alias on line 41 which is causing your error.

diff -uNr glibc-2.2.5.orig/sysdeps/unix/sysv/linux/errlist.c
--- glibc-2.2.5.orig/sysdeps/unix/sysv/linux/errlist.c  2001-07-06
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/errlist.c       2002-08-10
@@ -38,10 +38,9 @@
 const int __old_sys_nerr = OLD_ERRLIST_SIZE;

 strong_alias (__old_sys_nerr, _old_sys_nerr);
-weak_alias (__old_sys_nerr, _old_sys_nerr)
 compat_symbol (libc, __old_sys_nerr, _sys_nerr, GLIBC_2_0);
 compat_symbol (libc, _old_sys_nerr, sys_nerr, GLIBC_2_0);
-weak_alias (__old_sys_errlist, _old_sys_errlist);
+strong_alias (__old_sys_errlist, _old_sys_errlist);
 compat_symbol (libc, __old_sys_errlist, _sys_errlist, GLIBC_2_0);
 compat_symbol (libc, _old_sys_errlist, sys_errlist, GLIBC_2_0);

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list