Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* /lib/libc.so.6.1: undefined reference to `atexit'
@ 2001-05-28  9:02 Georges Landa
  2001-05-29  8:40 ` Takeyasu Wakabayashi
  0 siblings, 1 reply; 2+ messages in thread
From: Georges Landa @ 2001-05-28  9:02 UTC (permalink / raw)


Dear All,
Whatever  the program I try to compile, I have the following error :
/lib/libc.so.6.1: undefined reference to `atexit'
any idea ?
Georges
-- 

Georges Landa	Tel :(33) 05 61 55 65 49, Fax : (33) 05 61 55 62 33
Lab. de Physique des solides, associe au CNRS, UMR5477
Universite Paul Sabatier	email : landa@cict.fr
118 route de Narbonne		URL   : http://www.lpst.ups-tlse.fr
31062 Toulouse cedex, France
http://www.lpst.ups-tlse.fr/SFP/sfpmidi.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /lib/libc.so.6.1: undefined reference to `atexit'
  2001-05-28  9:02 /lib/libc.so.6.1: undefined reference to `atexit' Georges Landa
@ 2001-05-29  8:40 ` Takeyasu Wakabayashi
  0 siblings, 0 replies; 2+ messages in thread
From: Takeyasu Wakabayashi @ 2001-05-29  8:40 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-29  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-28  9:02 /lib/libc.so.6.1: undefined reference to `atexit' Georges Landa
2001-05-29  8:40 ` Takeyasu Wakabayashi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox