RE: Compile error on RH 9

From: Laughlin, Joseph V (Joseph.V.Laughlin_at_boeing.com)
Date: 04/15/04

  • Next message: Ben Yau: "mysql install problem with redhat rpm"
    Date: Thu, 15 Apr 2004 10:23:10 -0700
    To: "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

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

  • Next message: Ben Yau: "mysql install problem with redhat rpm"

    Relevant Pages

    • Re: Linux 2.6.30.2: does not boot
      ... Yes, as Marcel Beister pointed, it resulted some binutils bug. ... Wolfgang hasn't actually tried to compile without the -fno-strict-overflow ... flag yet, and maybe his hang is the same binutils bug. ... maybe I missed some gcc flag confirmation that wasn't cc'd to ...
      (Linux-Kernel)
    • Re: Using Rake to compile FreeBASIC code
      ... compiled twice, once normally for use as a library, and once with the ... especially the flags that are sent to the compile. ... double check the -m flag. ... Still learning ruby but now I want to run ...
      (comp.lang.ruby)
    • Re: RfD -- FVALUE vsn 2.0
      ... flag, and then execute or compile the action of the name. ... No immediate. ... CELLS offset! ... STATE @ IF COMPILE, EXIT THEN EXECUTE; ...
      (comp.lang.forth)
    • Re: openssh-3.8p1 compile problem
      ... Did you compiled it with -static flag? ... "Alexander Latenko" ha scritto nel messaggio ... > I'm trying to compile openssh-3.8p1 with static flag ... >: undefined reference to `__res_query' ...
      (comp.security.ssh)
    • Re: Parse error
      ... Parse error: parse error, ... | If there is a 'target' value added in, will it still validate in strict dtd mode? ... Add a flag to each item to tell the HTML section what to do. ...
      (alt.php)

    Loading