LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2006, 05:10 PM   #1
casady
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
/usr/include/stdio.h", line 346: syntax error at token '__s'


Red Hat Enterprise Linux ES release 4 gives me errors as below and I do not have these problems with Enterprise release 3. Any suggestions?
Thanks,


"/usr/include/bits/types.h", line 50: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 51: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 59: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 60: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 136: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 137: syntax error at token 'typedef"/usr/include/stdio.h", line 243: syntax error at token '__filename'
"/usr/include/stdio.h", line 249: syntax error at token '__filename'
"/usr/include/stdio.h", line 299: syntax error at token '__stream'
"/usr/include/stdio.h", line 303: syntax error at token '__stream'
"/usr/include/stdio.h", line 310: syntax error at token '__stream'
"/usr/include/stdio.h", line 323: syntax error at token '__stream'
"/usr/include/stdio.h", line 329: syntax error at token '__format'
"/usr/include/stdio.h", line 331: syntax error at token '__s'
"/usr/include/stdio.h", line 338: syntax error at token '__s''
"/usr/include/bits/types.h", line 138: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 139: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 140: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 141: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 142: syntax error at token 'typedef'
 
Old 04-20-2006, 05:15 PM   #2
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Looks like your headers might be tweaked. Can you possibly reinstall them?

What were you building when you ran into this?

Peace...
 
Old 04-20-2006, 05:33 PM   #3
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Might be a new compiler version in R4. What's the output of "gcc -v" under both versions?

Sometimes I see stuff like this if I compile using "g++" when I should be using "gcc", or vice versa.
 
Old 04-27-2006, 07:15 PM   #4
casady
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0
still having problems with red hat enterprise 10.4( gcc -3.4.5 )

I was installing red hat enterprise 10.4( gcc -3.4.5 ) and I have not noticed them with red hat enterprise 10.3( gcc 3.2). I checked the c libraries and header files and I don't see anything missing explicitly.
Any suggestions?
"/usr/include/bits/types.h", line 50: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 51: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 59: syntax error at token 'typedef'
"/usr/include/bits/types.h", line 60: syntax error at token 'typedef'
etc
"/usr/include/stdio.h", line 346: syntax error at token '__s'
"/usr/include/stdio.h", line 395: syntax error at token '__stream'
"/usr/include/stdio.h", line 401: syntax error at token '__format'
"/usr/include/stdio.h", line 403: syntax error at token '__s'
"/usr/include/stdio.h", line 528: syntax error at token '__s'
"/usr/include/stdio.h", line 585: syntax error at token '__s'
etc
"/usr/include/libio.h", line 354: "/usr/include/stdint.h", line 44: syntax error at token 'typedef'
"/usr/include/stdint.h", line 59: syntax error at token 'typedef'
"/usr/include/stdint.h", line 73: syntax error at token 'typedef'syntax error at token '__ssize_t'
"/usr/include/libio.h", line 362: syntax error at token '__ssize_t'
"/usr/include/libio.h", line 371: syntax error at token '__off64_t'
"/usr/include/libio.h", line 478: syntax error at token '_IO_padn'
etc
/usr/include/time.h",
. line 197: syntax error at token '__s'
"/usr/include/time.h", line 229: syntax error at token '*'
"/usr/include/time.h", line 233: syntax error at token '*'
"/usr/include/time.h", line 239: syntax error at token '*'
etc

Install log seems to show glibc install
Installing
glibc-common-2.3.4-2.i386.
Installing glibc-2.3.4-2.i686.

Installing glibc-kernheaders-2.4-9.1.87.i386.
Installing glibc-headers-2.3.4-2.i386.
Installing glibc-devel-2.3.4-2.i386.

Thanks,
Casady
 
Old 04-28-2006, 12:51 AM   #5
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Looks like your errors all come from the lines that have the keyword "__restrict". Could it be that you installed the header files from a newer version of the GCC tool than the actual compiler binaries? The __restrict keyword may not have been supported by older versions of the GNU compiler.

I am looking at Red Hat Enterprise WS 4 now. The GCC version is 3.4.4, and I don't get any of the errors you're running into.
 
  


Reply

Tags
compiler, gcc



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
syntax error near unexpected token `fi' Warmduvet Programming 21 10-08-2013 10:28 AM
repeated message (tty1): ASSERT: "i <= nodes" in /usr/lib/qt-3.1.2/include/qvaluelist megahard Linux - General 4 01-17-2006 10:59 PM
Many errors when 'make'ing (example: error: syntax error before `::' token) darkblade Linux - Software 5 03-02-2005 03:00 PM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 PM.

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