glicb-2.2.5 compiling error

Grant Leslie grantl at nbnet.nb.ca
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
book?
Since the patch removes the weak-alias on line 41 which is causing your error.

<snipped>
diff -uNr glibc-2.2.5.orig/sysdeps/unix/sysv/linux/errlist.c
glibc-2.2.5/sysdep
--- glibc-2.2.5.orig/sysdeps/unix/sysv/linux/errlist.c  2001-07-06
14:56:12.000
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/errlist.c       2002-08-10
09:24:57.000
@@ -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);
 #endif

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



More information about the lfs-support mailing list