Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th January 2007, 05:59 AM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
Exclamation gcc compilation problems on fc6 64bit

I'm not able to compile C or C++ programs using gcc or g++. My gcc version is 4.1.1-30. The error message is as follows:
[root@digjam tmp]# gcc test.c
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status

I tried installing older versions of gcc but that did not help one bit. I also tried using the -march option; but even that didn't help.
Can you help me out? [I suspect the problem's got to do with my OS rather than my gcc - that's why i'm posting on this topic]
ThanQ!
DigJaM

Last edited by digjam; 6th January 2007 at 06:23 AM.
Reply With Quote
  #2  
Old 6th January 2007, 08:42 AM
Noneus Offline
Registered User
 
Join Date: May 2006
Posts: 47
The problem is that it can't find the right glibc. You are using 64bit right? Because in 64Bit every library is in /*/lib64 So /usr/lib/libc.so is the 32Bit library. But I can't think of anything to solve this.
__________________
noneus.de
Reply With Quote
  #3  
Old 6th January 2007, 09:16 AM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
I guessed so too - but i have glibc already, and that doesnt solve my problem. :-(
Reply With Quote
  #4  
Old 6th January 2007, 09:40 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
try installing glibc-devel
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #5  
Old 6th January 2007, 11:14 AM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
i've installed that also

I had installed glibc-devel too -- even that didn help. Is there some other idea?
Reply With Quote
  #6  
Old 6th January 2007, 11:22 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
try this link ( the output is similar )

http://www.dbtalk.net/comp-databases...le-316772.html

Quote:
I'm still having problems. I took your advice and separately compile
the esqlC code and the unixODBC code. Wheh I attempt to link,I get an
error - see below.

[kcj@kylie examples]$ esql -o program cus.o main_kcj.o
-L/usr/local/easysoft/un ixODBC/lib -L/usr/local/easysoft/oob/client
-lodbc
/usr/bin/ld: skipping incompatible
/usr/local/easysoft/unixODBC/lib/libodbc.so when searching for -lodbc
/usr/bin/ld: cannot find -lodbc
collect2: ld returned 1 exit status
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #7  
Old 6th January 2007, 06:24 PM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
can u please explain what that means? i've tried doing something similar but it's not working still. Thanx anyway!
Reply With Quote
  #8  
Old 6th January 2007, 06:38 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
did you Install the 32 bit versions of glibc & glibc-devel as well
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
Reply

Tags
compilation, gcc, problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compilation problems on fc6 64bit digjam Using Fedora 5 2nd February 2007 03:01 AM
Kdevelop compilation problems joshua197 Using Fedora 0 13th February 2006 10:52 AM
gcc version and kernel compilation problems flaviusc Programming & Packaging 8 17th August 2005 08:59 AM
Intel Modem Driver compilation problems & FC4 2.6.11 kernel RAGM Using Fedora 1 30th July 2005 08:03 PM


Current GMT-time: 06:35 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat