Compile error on RH 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux