* glibc 2.2 cvs on AXP: undefined symbol: atexit
@ 2002-04-12 4:43 Thorsten Kukuk
2002-04-12 9:03 ` H . J . Lu
2002-04-12 10:34 ` Ulrich Drepper
0 siblings, 2 replies; 4+ messages in thread
From: Thorsten Kukuk @ 2002-04-12 4:43 UTC (permalink / raw)
To: libc-hacker
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: glibc 2.2 cvs on AXP: undefined symbol: atexit
2002-04-12 4:43 glibc 2.2 cvs on AXP: undefined symbol: atexit Thorsten Kukuk
@ 2002-04-12 9:03 ` H . J . Lu
2002-04-12 10:30 ` Thorsten Kukuk
2002-04-12 10:34 ` Ulrich Drepper
1 sibling, 1 reply; 4+ messages in thread
From: H . J . Lu @ 2002-04-12 9:03 UTC (permalink / raw)
To: Thorsten Kukuk; +Cc: libc-hacker
On Fri, Apr 12, 2002 at 01:43:06PM +0200, Thorsten Kukuk wrote:
>
> 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
>
atexit should be in libc_nonshared.a. Why isn't it there for alpha?
H.J.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: glibc 2.2 cvs on AXP: undefined symbol: atexit
2002-04-12 9:03 ` H . J . Lu
@ 2002-04-12 10:30 ` Thorsten Kukuk
0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Kukuk @ 2002-04-12 10:30 UTC (permalink / raw)
To: H . J . Lu; +Cc: libc-hacker
On Fri, Apr 12, H . J . Lu wrote:
> On Fri, Apr 12, 2002 at 01:43:06PM +0200, Thorsten Kukuk wrote:
> >
> > 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
> >
>
> atexit should be in libc_nonshared.a. Why isn't it there for alpha?
It is there. And I can run the binary with old ld.so/libc.so.
But not with the new one. For me it looks like a bug in ld.so. As I
wrote, reverting the do-lookup.h change fixes the problem for me and
glibc works again on Alpha.
Thorsten
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: glibc 2.2 cvs on AXP: undefined symbol: atexit
2002-04-12 4:43 glibc 2.2 cvs on AXP: undefined symbol: atexit Thorsten Kukuk
2002-04-12 9:03 ` H . J . Lu
@ 2002-04-12 10:34 ` Ulrich Drepper
1 sibling, 0 replies; 4+ messages in thread
From: Ulrich Drepper @ 2002-04-12 10:34 UTC (permalink / raw)
To: Thorsten Kukuk; +Cc: libc-hacker
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
On Fri, 2002-04-12 at 04:43, Thorsten Kukuk wrote:
> 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?
THe patch isn't wrong and this is no Alpha-specific problem. I have an
additional patch to handle this more gracefully and Jakub already did
some limited testing with it. But I have to think a bit more about it.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-12 17:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12 4:43 glibc 2.2 cvs on AXP: undefined symbol: atexit Thorsten Kukuk
2002-04-12 9:03 ` H . J . Lu
2002-04-12 10:30 ` Thorsten Kukuk
2002-04-12 10:34 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).