Compile error on RH 9

Laughlin, Joseph V Joseph.V.Laughlin at boeing.com
Thu Apr 15 17:23:10 UTC 2004


I removed the -DSYSV flag, errors went away.

I think there's a problem in Xosdefs.h though, as I shouldn't have to
remove that flag.

Joe Laughlin

-----Original Message-----
From: Laughlin, Joseph V 
Sent: Thursday, April 15, 2004 9:51 AM
To: redhat-list at redhat.com
Subject: Compile error on RH 9

I'm seeing this error when compiling an application on RH 9.  The only
other online reference that I could find about this problem is at
http://www.geocrawler.com/archives/3/84/2002/11/0/10232037/.

I don't think the previous declaration part is a problem, though it
shouldn't happen.   wchar_t is being typedef'd to unsigned long in both
places.

/usr/include/stdlib.h, line 597-8 is 
/* Register a function to be called when `exit' is called.  */
extern int atexit (void (*__func) (void)) __THROW;


In the link above, the guy commented out that line and said that the
application compiled fine.  

Anyone have a clue why there's a parse error on that line?






Compiling vcsi.c [ANSI C] [XT-CODE]
        `if [ "ANSI C" = "C++" ]; then echo CC ;fi` `if [ "ANSI C" =
"ANSI C" ]; then echo cc ; fi` `if [ "ANSI C" = "KR-C" ]; then echo cc
-D_NO_PROTO -cckr; fi` -c -g -DSYSV -DXT_CODE -DXOPEN_CATALOG  -DMOTIF
-I/usr/X11R6/include -I../include -I/vobs/shared/interfaces/MBAIDD
-I/vobs/shared/tools/ud/util  vcsi.c -o vcsi.o
In file included from /usr/X11R6/include/X11/Intrinsic.h:97,
                 from vcsi.c:18:
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h:325:
conflicting types for `wchar_t'
/usr/X11R6/include/X11/Xlib.h:78: previous declaration of `wchar_t'
In file included from UxXt.h:28,
                 from vcsi.c:29:
/usr/include/stdlib.h:598: parse error before numeric constant
*** Error code 1
clearmake: Error: Build script failed for "vcsi.o"

Joe Laughlin
Phantom Works - Integrated Technology Development Labs 
The Boeing Company




-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





More information about the redhat-list mailing list