LinuxQuestions.org
Help answer threads with 0 replies.
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 05-30-2008, 12:36 AM   #1
cramerdy
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
C compiler cannot create executables CentOS


Hello:

I know this has been posted in the past, but I could not find anything that related to my exact problem. I am trying to compile the libssh2 package from a tar. I am running CentOS 5. When I run ./configure, I get the error "C compiler cannot create executables" and I check in the config.log file to see the exact error. I find the following:

configure:1773: $? = 1
configure:1796: checking for C compiler default output file name
configure:1799: gcc conftest.c >&5
/usr/bin/ld: crtbegin.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1802: $? = 1
configure: failed program was:
| /* confdefs.h. */

I have installed gcc, glibc gcc-devel, gcc-c++, Development Tools, and everything that relates to gcc imaginable but yet it is still missing that crtbegin.o file...

Does anyone have a suggestions as to how I might patch this up?

Thanks
 
Old 05-30-2008, 02:23 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Hehehe - you left out the 'libc' development files.
 
Old 05-30-2008, 05:17 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,169

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
For CentOS : glibc-devel

Rgds
 
Old 05-31-2008, 05:18 PM   #4
cramerdy
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I got glibc-devel in there too, just forgot to list it.
 
Old 05-31-2008, 06:18 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Quote:
Originally Posted by cramerdy View Post

/usr/bin/ld: crtbegin.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1802: $? = 1
configure: failed program was:
| /* confdefs.h. */

The error message says it can't find crtbegin.o. Maybe the file does not exist or maybe it is someplace not on the ld path. Try searching your entire system for crtbegin.o

find / -iname "*crtbegin.o*"

-------------------
Steve Stites
 
Old 06-01-2008, 01:58 PM   #6
cramerdy
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
There seemed to be these random 'holes' in the gcc packages. I fixed it by simply using yum remove to remove all of the packages and then reinstall them, apparently filling the holes...

Thanks
 
  


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
C compiler cannot create executables Apt Quadruped Linux - Desktop 2 07-30-2007 01:13 PM
C compiler cannot create executables alexweb Mandriva 2 07-12-2006 07:04 AM
Compiler cannot create executables? Oxyacetylene Linux - Software 4 11-25-2004 10:29 AM
My C compiler cannot create executables, help rbmako69 Linux - Software 15 06-16-2004 02:22 PM
C compiler cannot create executables londonboi Debian 2 09-23-2003 02:41 AM

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

All times are GMT -5. The time now is 07:44 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