LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2004, 05:17 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
Apache / gcc errors


I've got a clean install of Debian and used apt-get to install gcc-3.0 (acutally 3.0.4). The problem is that when I try to configure Apache, I get the following error...

checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
check 'config.log' for details
configure failed for srclib/apr

I've searched google, but can't seem to find a solution for this. Any ideas? Thanks in advance!
 
Old 02-08-2004, 05:42 PM   #2
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
Are you logged in as root?
 
Old 02-08-2004, 05:44 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well if you do infact say its installed, then try to compile the following code :
(also double check if it installed correctly by typing gcc -v)
if you get command not found, then it did not obviously install correctly ...


Code:
#include <stdio.h>
int main( void )
{
  printf("\nHello, world!\n");
  return 0;
}
save the file as test.c and then type
gcc test.c -o test


one more thing to check is to see if you have an executable called gcc in /usr/bin ... well its actually a symlink to the compiler ...

if that does not exist then symlink it to the compiler (for example mine is called gcc-3.2.3) so if i were to make a symlink i would type :
ln -s gcc-3.2.3 gcc
(that is if i was in /usr/bin, otherwise type full commands)
yours will probably be called gcc-3.0.4 since you say thats the version ...

and to see right away what you have going on you can type something like :
which gcc
which should output /usr/bin/gcc
or just use ls by typing :
ls -alc /usr/bin/gcc*

i am just starting to ramble on here, so hopefully this leads you in the right direction ..
 
Old 02-08-2004, 06:02 PM   #4
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
gcc -v returns a bunch of config info...

I already added the symbolic link, and...

which gcc returns /usr/bin/gcc

I appreciate the help, hopefully you have more suggestions
 
Old 02-08-2004, 08:38 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
i will try and dig up more info, but did you try to compile that sample program i posted ?
if so, did it compile ?
if not, what happened ?
 
Old 02-08-2004, 08:43 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
the other thing is, make sure you have the package
glibc
installed, otherwise this could cause this error ..
 
Old 02-13-2004, 01:59 PM   #7
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
When I try to compile the following statement, I get a bunch of errors from stdio.h and the output is not being generated to the test file.

# gcc test.c -o test

Note, the "__THROW" error occurs numerous times...

/usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h: 469: parse error before "__THROW"
/usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h: 504: parse error before "fpos_t"
/usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h: 507: parse error before '*' to ken
 
  


Reply



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
GCC Compilation Errors The_Dish Programming 7 10-08-2004 04:33 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
gcc compiler errors? johnnyrags Fedora 0 06-23-2004 05:53 PM
gcc errors?? or are they? Rito Linux From Scratch 1 01-06-2003 04:54 PM
gcc errors: What are they and how to fix sleepwalker1.0 Programming 8 01-06-2003 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration