From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4ad2984006c86f1e X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-05-29 15:23:15 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsfeed.media.kyoto-u.ac.jp!cancer.nca5.ad.jp!news.kanazawa-u.ac.jp!newssv.toyama-u.ac.jp!news102.toyama-u.ac.jp!not-for-mail From: Takeyasu Wakabayashi Newsgroups: comp.os.linux.alpha Subject: Re: /lib/libc.so.6.1: undefined reference to `atexit' Date: 29 May 2001 17:40:46 +0900 Organization: Toyama Univ,Japan. Message-ID: References: <3B12141F.ACBE1122@cict.fr> NNTP-Posting-Host: kongzi.eco.toyama-u.ac.jp Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII X-Trace: news102.toyama-u.ac.jp 991125604 27391 160.26.90.97 (29 May 2001 08:40:04 GMT) X-Complaints-To: usenet@news102.toyama-u.ac.jp NNTP-Posting-Date: 29 May 2001 08:40:04 GMT X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: archiver1.google.com comp.os.linux.alpha:2963 Georges Landa 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