ld: fatal error


 
Thread Tools Search this Thread
Top Forums Programming ld: fatal error
# 1  
Old 01-07-2005
ld: fatal error

dear all ,

iam trying to compile a progam using gcc compiler on a sun 280 R machine running solaris 9 .

iam getting an error in the last step when the compiler tries to link the objects , although the compiler executes some applicarions that contains no objects smoothly,

the error that iam getting is :


Undefined first referenced
symbol in file
dlerror /usr/lib/libnsl.a(netdir.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlclose /usr/lib/libnsl.a(netdir.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlsym /usr/lib/libnsl.a(nis_misc_proc.o) (symbol belongs to implicit dependency /usr/lib/libdl
.so.1)
dlopen /usr/lib/libnsl.a(nis_misc_proc.o) (symbol belongs to implicit dependency /usr/lib/libdl
.so.1)
ld: fatal: Symbol referencing errors. No output written to ../bld/seq/mmlmain
collect2: ld returned 1 exit status

thanks in advance for your help .
# 2  
Old 01-07-2005
That error and the resolution are discussed here.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

PHP Fatal Errors During SSL Cert Management - PHP Fatal error: xc_fcntl_mutex failed

Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup. However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies

2. Linux

Send-mail: fatal error

Hi guys, i am using the below command to send mail mail -s "HI" abcd@how.com < temp_mail.txt I am getting the below error send-mail: fatal: bad string length 0 < 1: myorigin = My os version is as Linux Help me with ur suggestion guys thank u. (3 Replies)
Discussion started by: mohanalakshmi
3 Replies

3. UNIX for Dummies Questions & Answers

GCC compiler Ld fatal error

Hi all I'm trying to install sudo. When I first ran the sudo configure script it errored saying that I didn't have a C compiler. I have since installed the GCC 3.4.6 package for sol8 from sun freeware. Doing that resolved the no C complier found error. I was then getting an error saying... (1 Reply)
Discussion started by: Donkey25
1 Replies

4. Solaris

fatal: relocation error: R_SPARC_WDISP22

Hello, I wonder if anyone has a clue what could be wrong. I get the following error on SUN Netra-T4 server when some applications try to start (e.g. slpd) also even if I try commands such as "jar" I get the same error: ld.so.1: /usr/java1.2/jre/bin/sparc/native_threads/java: fatal:... (3 Replies)
Discussion started by: Juha
3 Replies

5. AIX

dbx fatal error

Background ------------- Os: IBM AIXL 5.1 (Unix) Problem ------------- I run the dbx in csh as follows % dbx mainprog -- The following is the systemm replay Type 'help' for help. reading symbolic information ...warning: stab entry unrecognized: name ,type 45, class a8, value 0' ... (1 Reply)
Discussion started by: skfn1203
1 Replies

6. Programming

ld: fatal error

i am trying to compile my program using a makefile and i keep getting this message: Undefined first referenced symbol in file main /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o ld: fatal: Symbol referencing errors. No output written to prog5 collect2: ld returned 1 exit status ***... (2 Replies)
Discussion started by: betterdayz
2 Replies

7. Programming

Fatal Error

Hi, I just pulled out my code from source control, then I compiled, the compilation is successful at that time. Then I modified one of the source file, Then I compiled, I got the following error ld: fatal: Symbol referencing errors. No output written to ../../CM/bin/cato Before... (1 Reply)
Discussion started by: sarwan
1 Replies

8. Shell Programming and Scripting

Glance Fatal Error

Hi , I a stuck with this problem. I am trying to execute this script1 on SERVER 1 from SERVER 2 using script2 script1 on SERVER 1 #!/usr/bin/ksh /opt/perf/bin/glance -f -adviser_only -iterations 2 -maxpages 2 > /home/user/scripts/glance.op cpuval1=`grep ^CPU... (4 Replies)
Discussion started by: newbie07
4 Replies

9. UNIX for Advanced & Expert Users

Purify-SGI Fatal Error

Hi , attempting to purify code on the link line generates a fatal error like this #ERROR: (fatal) Cannot find libtest.so in the search path . command line: ------------- purify -show-directory=yes -always-use-cache-dir -cache-dir=/ppic/users/avadhani/sgi/pure /usr/bin/CC -n32 -mips3... (2 Replies)
Discussion started by: avadhani
2 Replies

10. UNIX for Advanced & Expert Users

Fatal error in disk

I have a doubt with an error message, and i want to be sure if this is a normal situation or not. Situation: I was formating and installing a SCSI 36Gb HD with UNIX SCO 5.05, the problem happens when is making the division and filesystem on disk 1, and the message error is "Exit value 139... (1 Reply)
Discussion started by: jav_v
1 Replies
Login or Register to Ask a Question