Re: XForms: Compile errors with dec Tru64 cc

From: Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
Date: Wed Apr 09 2003 - 11:23:48 EDT

  • Next message: Jeff Pierce: "Re: XForms: pthreads causing crash..."

    # To subscribers of the xforms list from Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> :

    >>>>> "Jean-Marc" == Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> writes:

    Jean-Marc> # To subscribers of the xforms list from Jean-Marc
    Jean-Marc> Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> : If I compile
    Jean-Marc> xforms with cc, I get

    OK, this was caused by the fact that my magic includes patch was not
    applied. Now that it is applied, I can compile, but get problems in
    snp/:

    First a couple of warnings that I do not understand:

    cc -c -O2 -std1 -I/usr/include -DLONG_BIT=64 -DNO_MESSAGE_CATALOG strtod.c
    cc: Warning: strtod.c, line 2169: The scalar variable "eps" is fetched but not initialized. (uninit1)
                    word0(eps) -= (P-1)*Exp_msk1;
    ----------------^
    cc: Warning: strtod.c, line 2054: The scalar variable "d2" is fetched but not initialized. (uninit1)
                    word0(d2) -= 31*Exp_msk1; /* adjust exponent */
    ----------------^

    Then there are some real errors:

    cc -c -O2 -std1 -I/usr/include -DLONG_BIT=64 -DNO_MESSAGE_CATALOG snprintf.c
    cc: Error: snprintf.c, line 252: Missing ";". (nosemi)
    static char *cvt __P((double, int, int, char *, int *, int, int *));
    -----------------^
    cc: Error: snprintf.c, line 253: Missing ";". (nosemi)
    static int exponent __P((char *, int, int));
    --------------------^
    cc: Error: snprintf.c, line 800: Missing ";". (nosemi)
    extern char *__dtoa __P((double, int, int, int *, int *, char **));
    --------------------^

    Where is this __P supposed to be defined? Is that a somewhat standard
    macro?

    Then there are other problems because I do not have isinf(), but I
    have a patch to work around that.

    JMarc
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/
    Development: http://savannah.nongnu.org/files/?group=xforms



    This archive was generated by hypermail 2b29 : Wed Apr 09 2003 - 11:24:40 EDT