LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2004, 06:16 PM   #1
sraphim
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
"atexit" only defined in root


When compliing programs, I get a common error, where the linker fails to resolve "atexit" in any program that uses it:

/tmp/ccityKp3.o(.text+0x1d): In function `main':
: undefined reference to `atexit'

However, every binary that references atexit CAN use it without problem, and if I compile the program as root, it will be able to link successfully.

This is particularly interesting, considering that libc_nonshared.a is in the right place, and /usr/lib/libc.so groups the nonshared static lib with the libc.so in /lib/. Furthermore, regular users and root use the same ld.

Does anyone happen to know why it does not work for regular users? Any help would be greatly appreciated.

Thanks in advance!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 10:47 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
MDK10 official error with "GLIBC_2.0 not defined" lvxiang Mandriva 3 08-16-2004 10:34 AM
Evolution 1.4 : Cannot send mail ("No recipients defined") Obi-Wan_Kenobi Linux - Software 3 11-25-2003 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration