LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-30-2006, 01:01 PM   #1
70mas
Member
 
Registered: Sep 2006
Location: Slovakia
Distribution: Debian, Gentoo
Posts: 34

Rep: Reputation: 15
Angry C compiler cannot create executables


I am trying to compile Apache 2.2.3 on a Slackware 10.2 OS. When I start ./configure, I get this:
Quote:
root@slack:~/httpd-2.2.3# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 1.2.7
checking for chosen layout... apr
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.
configure failed for srclib/apr
I think that this issue is very usual but is nowhere documented how to solve this... If you can, please help me. I have been fighting with this already for 4 hours. I found out that kernel-headers and glibc-devel packages have to be installed. I reinstalled my linux machine, I installed the kernel-headers package, but I didnt find glibc-devel anywhere...

Your help would be very appreciated. Thanks.
 
Old 09-30-2006, 02:16 PM   #2
crazyjimbo
Member
 
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Rep: Reputation: 16
Have you looked at config.log for details? You probably don't have one of the many programs gcc uses to make the final executable (ln, etc).
 
Old 09-30-2006, 03:44 PM   #3
BiThian
Member
 
Registered: Aug 2006
Location: Romania
Distribution: NetBSD 3.1
Posts: 118

Rep: Reputation: 15
Quote:
Originally Posted by 70mas
I reinstalled my linux machine, I installed the kernel-headers package, but I didnt find glibc-devel anywhere...
If you meant to say "I reinstalled linux on my machine", I have to tell you that Linux != Windows
PS: Sorry for the off-topic
 
Old 01-02-2007, 12:54 AM   #4
centralb
LQ Newbie
 
Registered: Jan 2007
Distribution: Redhat, Debian, "Custom"
Posts: 27

Rep: Reputation: 15
Cool RE: C compiler cannot create executables

In some situations, it can help to remove any preceding CPPFLAGS or LDFLAGS initializations on the same line as the ./configure command.

As an alternative, set and export them in separate statements prior to the ./configure command (taking care if you need to use different values for other installs). Using LIBS and INCLUDES in this manner seems to be more reliable than setting CPPFLAGS and LDFLAGS to reference "non-standard" includes and libs for Apache 2.
 
  


Reply

Tags
apache, apache2, compile error, compiler


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 alexweb Mandriva 2 07-12-2006 07:04 AM
Compiler cannot create executables Cheechi Ubuntu 6 07-09-2006 01:15 AM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 10:44 AM
My C compiler cannot create executables, help rbmako69 Linux - Software 15 06-16-2004 02:22 PM
C compiler cannot create executables chrismiceli Linux - General 2 05-11-2003 03:21 PM


All times are GMT -5. The time now is 10:02 PM.

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