LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-04-2003, 10:29 PM   #1
b0lt
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
gcc problems?


i recently turned a old computer into a slackware 9.1 machine, everything seems to run smooth.. except for gcc.

when i try to compile things i get errors..


including

Quote:
./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
and when i tryed to test gcc with something of my own.. very simple hello world.. i get

Quote:
gcc hi.c -o hji
In file included from hi.c:1:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:37:23: features.h: N
o such file or directory
In file included from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.
h:43,
from hi.c:1:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stddef.h:213: syntax error b
efore "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:45:25: bits/types.h:
No such file or directory
In file included from hi.c:1:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:55: syntax error bef
ore "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:71: syntax error bef
ore "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:81:19: libio.h: No s
uch file or directory
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:97: syntax error bef
ore "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:147:28: bits/stdio_l
im.h: No such file or directory
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:151: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:161: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:161: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:163: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:167: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:170: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:170: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:180: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:207: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:209: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:209: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:211: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:225: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:228: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:229: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:233: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:280: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:283: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:283: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:288: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:302: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:304: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:305: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:307: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:310: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:314: syntax error be
fore "_G_va_list"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:316: syntax error be
fore "_G_va_list"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:320: syntax error be
fore "_G_va_list"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:358: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:360: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:361: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:363: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:366: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:388: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:390: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:390: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:391: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:394: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:413: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:415: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:415: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:416: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:419: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:447: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:449: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:450: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:454: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:484: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:486: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:487: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:490: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:494: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:499: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:502: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:520: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:522: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:522: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:524: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:526: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:553: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:556: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:556: syntax error be
fore "fpos_t"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:559: syntax error be
fore '*' token
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:582: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:584: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:584: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:586: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:588: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:599: syntax error be
fore "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:601: syntax error be
fore "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:601: syntax error be
fore "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:608:30: bits/sys_err
list.h: No such file or directory
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:686: syntax error be
fore "__END_DECLS"

any ideas?
 
Old 10-05-2003, 01:21 AM   #2
boudie
LQ Newbie
 
Registered: Sep 2003
Location: nova scotia, canada
Distribution: slackware 9
Posts: 27

Rep: Reputation: 15
Ahhh...do you have glibc installed, because /usr/include/
bits/types.h is part of the GNU C library (glibc).
 
Old 11-19-2003, 08:07 AM   #3
Gods
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware 9
Posts: 1

Rep: Reputation: 0
I had the exact same problem, could not even compile helloworld.c..
Installed glibc and gcc with Slackware 9.1 "installpkg"..
Worked like a charm!

(installpkg gcc-3.3.2-i486-1.tgz)
(installpkg glibc-2.3.2-i486-3.tgz)
 
  


Reply


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
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 06:49 PM
GCC problems natm Linux - Newbie 8 10-17-2004 10:42 PM
cc (gcc) problems malbery Debian 2 08-23-2004 01:55 PM
GCC problems inanna Red Hat 4 04-28-2004 05:20 PM
GCC problems garf12 Linux - Software 1 03-07-2004 10:59 PM


All times are GMT -5. The time now is 07:34 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