473,383 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

compilation error /usr/include/_G_config.h:29: parse error before "__mbstate_t"

Hello All,

I am trying to compile my application on Red Hat Linux 8 against gcc
3.2.2.

Very first file in application is failing to compile. I tried
compiling my application on Linux 7.2 against gcc 3.1 and it got build
without any problems.
However on against gcc 3.2.2 I hitting this error:

gcc -DNULL="((void *)0)" -O2 -c -fPIC -D_UNIX_ -Dlinux_i32
-Dlinux_ia64 -DNEED_XMU -DX_USEBFUNCS -Dindex=strchr -DULONGDEFINED
-DUNCHARDEFINED -DWIN32_LEAN_AND_MEAN -D_REENTRANT -D_MT -D_BSD_SOURCE
-I/usr/include -I../wininc -I.. -I../include
-I/vobs/windu/win32/../../btiutil -D_INCLUDE_XOPEN_SOURCE_EXTENDED
-D_XOPEN_SOURCE_EXTENDED wuerror.c -o linux_ia64/wuerror.o
In file included from /usr/include/libio.h:32,
from
/usr/gcc3.2.2/lib/gcc-lib/ia64-unknown-linux-gnu/3.2.2/include/stdio.h:74,
from wuerror.c:55:
/usr/include/_G_config.h:29: parse error before "__mbstate_t"
/usr/include/_G_config.h:34: parse error before "__mbstate_t"
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from
/usr/gcc3.2.2/lib/gcc-lib/ia64-unknown-linux-gnu/3.2.2/include/stdio.h:74,
from wuerror.c:55:
/usr/include/gconv.h:158: parse error before "__mbstate_t"
/usr/include/gconv.h:164: parse error before '}' token
/usr/include/gconv.h:172: field `__data' has incomplete type

However I tried to reproduce the problem in a small C program, but
could not.

Can somebody help me or direct me to the path to solve this problem.

Any help is greatly appreciated.

Thanks
-Vittal
Nov 13 '05 #1
2 4948
# /usr/include/gconv.h:158: parse error before "__mbstate_t"
# /usr/include/gconv.h:164: parse error before '}' token
# /usr/include/gconv.h:172: field `__data' has incomplete type

Probability that anything in /usr/include is bad is very close to zero. Usually
errors attributed to an included file are really errors before the #include,
such as a missing semicolon or a #define of a name the included file had
reserved unto itself.

--
Derk Gwen http://derkgwen.250free.com/html/index.html
So basically, you just trace.
Nov 13 '05 #2
>In file included from /usr/include/libio.h:32,
from
/usr/gcc3.2.2/lib/gcc-lib/ia64-unknown-linux-gnu/3.2.2/include/stdio.h:74,
from wuerror.c:55:
/usr/include/_G_config.h:29: parse error before "__mbstate_t"
/usr/include/_G_config.h:34: parse error before "__mbstate_t"
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from
/usr/gcc3.2.2/lib/gcc-lib/ia64-unknown-linux-gnu/3.2.2/include/stdio.h:74,
from wuerror.c:55:
/usr/include/gconv.h:158: parse error before "__mbstate_t"
/usr/include/gconv.h:164: parse error before '}' token
/usr/include/gconv.h:172: field `__data' has incomplete type


Failure to compile due to syntax errors in system include files
often indicate a failure to include a prerequesite include file
beforehand. The syntax error is often something that should
be a typedef but isn't. __mbstate_t looks like a name for
a typedef. For example, in UNIX programs, you commonly need
to include <sys/types.h> before including anything of the form
<sys/*.h>.

Note that from the file paths given, <stdio.h> is an entirely
different file for the two versions of GCC.
Gordon L. Burditt
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steven | last post by:
I got a "Parse error: parse error in ..." in this line: if(empty($_POST){ ..... But if I fist assign $ssn=$_POST; and then if(empty($ssn){ ... it is working. Any advice? Thanks in advance.
3
by: Marten van Urk | last post by:
I got the following error in my page Parse error: parse error, unexpected T_ELSE in line 25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Club</title>...
6
by: Ehartwig | last post by:
I recently created a script for user verification, solved my emailing issues, and then re-created the script in order to work well with the new PHP 5 that I installed on my server. After...
1
by: mdouble | last post by:
I'm a complete novice with HTML and PHP. Recently I purchased an auto responder that requires me to edit a PHP file during the installation process as per directions provided in a read me file. ...
1
by: sheenrose | last post by:
<? $uname = $_REQUEST; $pass = $_REQUEST; /*Connecting, selecting database */ $LogStatus = 0; $link = mysql_connect("localhost","root","kushal") or die();
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
3
paulrajj
by: paulrajj | last post by:
hi to all, i am getting syntax error on my code.. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in D:\xampp\htdocs\Dummy\paulraj\matrim\exam.php on line 62 ...
6
by: qila | last post by:
Holla... i' getting an error in this code : Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\webdav\OSP_Assignment2\edit promo book.php on line 151 <?php $con =...
13
Topbidder
by: Topbidder | last post by:
I have this error on the code Parse error: syntax error, unexpected '"' in /home/topbidd/public_html/bid2/bid_classic.php on line 159 now i thought the error was this It seems that the...
3
by: CYNTHIA CUTRER | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.