LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-26-2008, 05:14 PM   #1
Khue
LQ Newbie
 
Registered: Jan 2002
Posts: 9

Rep: Reputation: 0
Compiler Issues running ./configure


Hey everyone, I am having a problem dealing with an install (or 10).

I have a trimmed down version of Slackware (ver 10.2). It is a VMware appliance for running a Jabber server. While messing around with the Jabber server, I noticed that it didn't come with the ability to group chat so in order to do so, Jabber needed to be supplemented with mu-conference and mu-conference needed glib-2.0 or greater for the make file to run. I downloaded this package (glib-2.16.5.tar.gz) and got it on to the appliance I attempted to run
Code:
./configure
and I got the following error
Code:
configure: error: no acceptable C compiler found in $PATH
Browsing around I found that I needed to install gcc. I browsed the slackware package webpage and got gcc-g++-4.2.3-i486-1.tgz. I ftp'd the file to the /tmp folder and then ran:
Code:
installpkg gcc-g++-4.2.3-i486-1.tgz
Some stuff then happened and it appeared like it may have been installed correctly. I then attempted to run the configure command again and the output I received was as follows:
Code:
root@jabber:/tmp/glib-2.16.5# ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking for the BeOS... no
checking for Win32... no
checking for Mac OS X Carbon support... checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Config.log doesn't contain much more then what I posted above. Seemingly Slack doesn't know what the compiler is still. Can anyone help me troubleshoot a bit?

Thanks in advance.
 
Old 08-26-2008, 05:26 PM   #2
Fidori
LQ Newbie
 
Registered: Oct 2007
Location: Finland
Distribution: Slackware
Posts: 24

Rep: Reputation: 8
Do you have the gcc-4.2.3-i486-1 package installed?
 
Old 08-27-2008, 07:34 AM   #3
Khue
LQ Newbie
 
Registered: Jan 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks Fidori, that got me a little farther. I am now erroring out with the following message:
Code:
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Output from the config.log file can be found here (clicky!).

Last edited by Khue; 08-27-2008 at 07:51 AM. Reason: Updating after following directions.
 
Old 08-27-2008, 09:13 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
It's not finding the assembler (/usr/bin/as). Install binutils.

Wow. Slackware without gcc and binutils. Hard to imagine.
 
Old 08-27-2008, 09:21 AM   #5
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
I think he need gcc-g++-4.2.3-i486-1 package too.
 
Old 08-27-2008, 09:23 AM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Also, I think your going about this all wrong.

First, your using Slackware 10.2 and trying to install the latest packages from 12.1 or current. It may or may not work when it's all said and done but I guess you'll find out soon enough.

What you should first try is selecting 10.2 from the drop down box when looking for packages. If you were to get an error later on stating that some prog is too old, then you should try upgrading. 10.2 does come with glib2 so you should just try installing that.

Last edited by jong357; 08-27-2008 at 09:24 AM.
 
Old 08-27-2008, 09:24 AM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Quote:
Originally Posted by Road_map View Post
I think he need gcc-g++-4.2.3-i486-1 package too.
He said he already installed it. config.log also indicates that he did.

Code:
configure:2658: checking for gcc
configure:2674: found /usr/bin/gcc
configure:2685: result: gcc
configure:2923: checking for C compiler version
configure:2930: gcc --version >&5
gcc (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Last edited by jong357; 08-27-2008 at 09:29 AM.
 
Old 08-27-2008, 10:42 AM   #8
Khue
LQ Newbie
 
Registered: Jan 2002
Posts: 9

Original Poster
Rep: Reputation: 0
I kind of agree with you on the 10.2 thing in retrospect. Once I get this process down, I am going to destroy this box and rebuild it from scratch to make sure everything is clean.

Ok after binutils install, I got further... however still stopping.

Code:
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Here (clicky!) is the config.log file.

Help me with my troubleshooting here, is it failing on trying to include the limits.h header file in the compilation?

Last edited by Khue; 08-27-2008 at 10:51 AM.
 
Old 08-27-2008, 11:50 AM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Use packages for the version 10.2 if thats what you are running. A minimum of packages which you need for compiling stuff will include: glibc (not the glibc-solibs), kernel-headers, gcc, g++, , cxxlibs, binutils, make, perl, m4, libtool, automake, autoconf and probably bison, flex, gettext, gettext-tools, plus any particular libs needed by the program you are trying to compile.
 
Old 08-27-2008, 12:28 PM   #10
Khue
LQ Newbie
 
Registered: Jan 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gnashley View Post
...glibc (not the glibc-solibs), kernel-headers...
There we go. After those two were installed we were good to go. I had to use pkg-config from the current slack version b/c 10.2 wasn't new enough. The complete list of things missing or that I needed to make this conference thing work included the following items:

automake-1.9.5 (10.2)
gcc-4.2.3-i486 (10.2)
gcc-g++4.2.3-i486 (not sure)
binutils-2.15.92.0.2-i486 (10.2)
kernel-headers-2.6.13-i386 (10.2)
glibc-2.3.5-i486-6 (10.2)
pkg-config (current)


Holy crap about 50 megs of additionally stuff.

Thanks for the help everyone. I think... (and hope) this gets me to where I need to be.

Last edited by Khue; 08-27-2008 at 12:30 PM.
 
Old 08-27-2008, 03:50 PM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
The pkg-config problem might have been resolved with the nearly 'magic' autoconf command 'autoreconf -if'. Many times when configuration complains because of mis-matched versions of autoconf, automake or libtool, using this command will set things right.
Anyway, glad you got things going. That was a pretty complete list of packages for compiling nearly any sources which use autoconf configuration.
 
  


Reply

Tags
install, linux, package management, slackware10


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
how to configure/install a compiler? Cyrano_de_Bergerac Solaris / OpenSolaris 3 07-20-2008 12:26 PM
how to specify the compiler when configure? baosheng Ubuntu 1 01-24-2006 11:52 AM
C compiler when running configure mr_a_ali Linux - General 9 08-18-2004 08:29 AM
C compiler fails when running the configure command So_What_Linux Linux - Software 3 08-25-2003 07:30 PM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration