glibc 2.2 cvs on AXP: undefined symbol: atexit
Thorsten Kukuk
kukuk@suse.de
Fri Apr 12 04:43:00 GMT 2002
Hi,
If I try to compile the current glibc 2.2 branch on Alpha, I always get
this error:
/usr/src/packages/BUILD/glibc-2.2/cc/sunrpc/rpcgen: relocation error: /usr/src/packages/BUILD/glibc-2.2/cc/libc.so.6.1: undefined symbol: atexit
make[2]: *** [/usr/src/packages/BUILD/glibc-2.2/cc/sunrpc/xbootparam_prot.stmp]
Error 127
It seems that the following patch is the reason for this. Is the fix wrong,
or is there another bug on Alpha which is triggerd with this change?
Thorsten
2002-04-02 Ulrich Drepper <drepper@redhat.com>
* elf/do-lookup.h (do_lookup): 2 is the first user-defined version
number [PR libc/3111].
--- elf/do-lookup.h Mon Aug 27 00:24:08 2001
+++ elf/do-lookup.h Wed Apr 3 16:34:15 2002
@@ -128,7 +128,7 @@
if (verstab != NULL)
{
ElfW(Half) ndx = verstab[symidx] & 0x7fff;
- if (ndx > 2) /* map->l_versions[ndx].hash != 0) */
+ if (ndx >= 2) /* map->l_versions[ndx].hash != 0) */
{
/* Don't accept hidden symbols. */
if ((verstab[symidx] & 0x8000) == 0 && num_versions++ == 0)
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Deutschherrenstr. 15-19 D-90429 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
More information about the Libc-hacker
mailing list