The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
dbx fatal error skfn1203 AIX 1 10-30-2008 06:24 AM
ld: fatal error betterdayz High Level Programming 2 11-01-2006 10:47 AM
Fatal Error sarwan High Level Programming 1 05-10-2006 11:21 AM
Glance Fatal Error newbie07 Shell Programming and Scripting 4 05-10-2006 02:15 AM
ld: fatal error ppass High Level Programming 1 01-07-2005 12:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-28-2009
Donkey25 Donkey25 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 36
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 "gcc: installation problem, cannot exec `as': No such file or directory"

I installed GNU binutils and this solved the "as" problem. Now when I run the sudo configure script I'm getting the following error:

configure: error: C compiler cannot create executables

when I look in the config.log file I see the following:

ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out

I can see the following in the config.log file which I don't think is helping

Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77

my "as" is in usr/local/bin (which is in my PATH) but if I do a whereis ld is see the following:

ld: /usr/ccs/bin/ld /usr/lib/ld /usr/lib/ld.so /usr/ucb/ld /usr/local/bin/ld

Any help on why I'm getting that ld error would be greatly appreciated. Could it be some kind of conflict as I seem to have multiple occurences of ld?

Many Thanks!!!
  #2 (permalink)  
Old 04-30-2009
Donkey25 Donkey25 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 36
Hi all,

I've worked it out, this was happening becuase the SUNWarc package was missing. I hope that helps somebody out if they come across the same problem.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0