Unix Technical Forum

weird gcc compiler issues, can't install

This is a discussion on weird gcc compiler issues, can't install within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm trying to install Snort on my Fedorea Core 2 system. I get the error on ./configure that I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 05:33 AM
LRW
 
Posts: n/a
Default weird gcc compiler issues, can't install

I'm trying to install Snort on my Fedorea Core 2 system.
I get the error on ./configure that I need libpcap.
Fine.
So I download it, and on ./configure get this error:

configure: error: installation or configuration problem: C compiler
cannot create executables.

Odd. I do this:
[root@fileserve tmp]# which gcc
/usr/bin/gcc

I seem to have a compiler.
[root@fileserve tmp]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

And it's in my path.
But, I decide to go ahead and download and install a newer gcc just in
case.
And when I ./configure it, I get:

[root@fileserve gcc-3.4.2]# ./configure
loading cache ./config.cache
checking host system type... i586-pc-linux-gnulibc1
checking target system type... i586-pc-linux-gnulibc1
checking build system type... i586-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following
subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava
(Any other directories should still work fine.)
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

OK, now I have no idea what to do now.
Any clues what I should look at?
Thanks!
Liam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 05:33 AM
Tauno Voipio
 
Posts: n/a
Default Re: weird gcc compiler issues, can't install

LRW wrote:
> I'm trying to install Snort on my Fedorea Core 2 system.
> I get the error on ./configure that I need libpcap.
> Fine.
> So I download it, and on ./configure get this error:
>
> configure: error: installation or configuration problem: C compiler
> cannot create executables.
>
> Odd. I do this:
> [root@fileserve tmp]# which gcc
> /usr/bin/gcc
>
> I seem to have a compiler.
> [root@fileserve tmp]# echo $PATH
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
>
> And it's in my path.
> But, I decide to go ahead and download and install a newer gcc just in
> case.
> And when I ./configure it, I get:
>
> [root@fileserve gcc-3.4.2]# ./configure
> loading cache ./config.cache
> checking host system type... i586-pc-linux-gnulibc1
> checking target system type... i586-pc-linux-gnulibc1
> checking build system type... i586-pc-linux-gnulibc1
> checking for a BSD compatible install... /usr/bin/install -c
> *** This configuration is not supported in the following
> subdirectories:
> target-libffi target-boehm-gc target-zlib target-libjava
> (Any other directories should still work fine.)
> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
> *** The command 'gcc -o conftest -g -O2 conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
>
> OK, now I have no idea what to do now.
> Any clues what I should look at?


Your installation seems to have the development C library
missing - there is the compiler only. Sorry, I do not
know the Fedora packages well enough to know its name.

crt1.o is the runtime startup module needed to be linked
to every executable.

HTH

Tauno Voipio
tauno voipio (at) iki fi

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 05:33 AM
Markku Kolkka
 
Posts: n/a
Default Re: weird gcc compiler issues, can't install

Tauno Voipio wrote:
> Your installation seems to have the development C library
> missing - there is the compiler only. Sorry, I do not
> know the Fedora packages well enough to know its name.


$ locate crt1.o
/usr/lib/crt1.o

$ rpm -qf /usr/lib/crt1.o
glibc-devel-2.3.3-74

The package that must be installed is glibc-devel, the version number
will be different in FC2.

--
Markku Kolkka
markku.kolkka@iki.fi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 05:35 AM
LRW
 
Posts: n/a
Default Re: weird gcc compiler issues, can't install

Markku Kolkka <markku.kolkka@iki.fi> wrote in message news:<cmh2vc$4rk$1@phys-news1.kolumbus.fi>...
> Tauno Voipio wrote:
> > Your installation seems to have the development C library
> > missing - there is the compiler only. Sorry, I do not
> > know the Fedora packages well enough to know its name.

>
> $ locate crt1.o
> /usr/lib/crt1.o
>
> $ rpm -qf /usr/lib/crt1.o
> glibc-devel-2.3.3-74
>
> The package that must be installed is glibc-devel, the version number
> will be different in FC2.


Not sure what you mean... I did "locate crt1.o" and it found nothing.
So, I'll see if I can find my source CD's and install glibc-devel.
Thanks. =)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 05:35 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: weird gcc compiler issues, can't install


"LRW" <news@celticbear.com> wrote in message
news:37a6c958.0411080728.783ac160@posting.google.c om...
> Markku Kolkka <markku.kolkka@iki.fi> wrote in message

news:<cmh2vc$4rk$1@phys-news1.kolumbus.fi>...
> > Tauno Voipio wrote:
> > > Your installation seems to have the development C library
> > > missing - there is the compiler only. Sorry, I do not
> > > know the Fedora packages well enough to know its name.

> >
> > $ locate crt1.o
> > /usr/lib/crt1.o
> >
> > $ rpm -qf /usr/lib/crt1.o
> > glibc-devel-2.3.3-74
> >
> > The package that must be installed is glibc-devel, the version number
> > will be different in FC2.

>
> Not sure what you mean... I did "locate crt1.o" and it found nothing.
> So, I'll see if I can find my source CD's and install glibc-devel.
> Thanks. =)


If you have yum installed (which it is, by default), you should be able to
do "yum install glibc-devel".


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com