From: Takeyasu Wakabayashi <twakaba@eco.toyama-u.ac.jp>
Subject: Re: /lib/libc.so.6.1: undefined reference to `atexit'
Date: 29 May 2001 17:40:46 +0900 [thread overview]
Message-ID: <m2wv70wnsh.fsf@eco.toyama-u.ac.jp> (raw)
In-Reply-To: 3B12141F.ACBE1122@cict.fr
Georges Landa <landa@cict.fr> writes:
> Whatever the program I try to compile, I have the following error :
> /lib/libc.so.6.1: undefined reference to `atexit'
> any idea ?
Try
$ nm /lib/libc.so.6.1 | grep atexit
to see if the symbol "atexit" is defined in libc.
If it's defined, then that's a bug of the linker
or something. My system with glibc 2.1.3 gives:
000000000003f2e0 T __cxa_atexit
0000000000220af0 ? __elf_set___libc_atexit_element__cleanup__
0000000000220af0 a __start___libc_atexit
0000000000220af8 a __stop___libc_atexit
0000000000227f40 s added_atexit_handler.104
000000000003f120 T atexit
The last line shows that the symbol "atexit" is
defined in the text region.
--
Takeyasu Wakabayashi
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
prev parent reply other threads:[~2001-05-29 8:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-28 9:02 /lib/libc.so.6.1: undefined reference to `atexit' Georges Landa
2001-05-29 8:40 ` Takeyasu Wakabayashi [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox