[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build problems with gcc 3.1.1 and 3.2 in building a cross libc
From: |
Peter Barada |
Subject: |
Re: build problems with gcc 3.1.1 and 3.2 in building a cross libc |
Date: |
Fri, 16 Aug 2002 10:23:07 -0400 |
>../sysdeps/unix/sysv/linux/errlist.c:41: weak declaration of `_old_sys_nerr'
>must precede definition
I ran into this also. I got past it by reverinng the declaration order
of old_sys_nerr to have the weak declaration first:
===================================================================
RCS file:
/usr/local/wavemark/cvs/archives/cross-linux-tools/glibc-2.2.5/sysdeps/unix/sysv/linux/errlist.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- errlist.c 2002/07/19 18:29:04 1.1
+++ errlist.c 2002/07/22 22:29:59 1.2
@@ -37,8 +37,8 @@
const int __old_sys_nerr = OLD_ERRLIST_SIZE;
-strong_alias (__old_sys_nerr, _old_sys_nerr);
weak_alias (__old_sys_nerr, _old_sys_nerr)
+strong_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);