bug with Sun "c" compiler

From: Edward Chrzanowski MFCF (echrzano AT unknown)
Date: Fri May 16 2003 - 10:50:22 MDT

  • Next message: philippe marguinaud: "(no subject)"

    I have distilled the first instance of this problem as follows:

    cc -Xc -O -I../../.././include -I/usr/include -I/usr/openwin/include -I/usr/dt/include -DSunOS -DSolaris -DSUN -DVERSION='"4.3.1"' -DENV_DEFS='{"tmp","TMPDIR",NULL,"/tmp",NULL, "fontcap","FONTCAP",NULL,NULL,NULL, "graphcap","GRAPHCAP",NULL,NULL,NULL, "root",NULL,NULL,"/software/ncarg-4.3.1","/lib/ncarg/fontcaps/font1", "usrresfile",NULL,NULL,"~/.hluresfile",NULL, "gks_output",NULL,NULL,"gmeta",NULL, "bin",NULL,"root",NULL,NULL, "lib",NULL,"root",NULL,NULL, "include",NULL,"root",NULL,NULL, "man",NULL,"root",NULL,NULL, "ncarg",NULL,"lib",NULL,NULL, "config",NULL,"ncarg",NULL,NULL, "data",NULL,"ncarg",NULL,NULL, "database",NULL,"ncarg",NULL,NULL, "doc",NULL,"ncarg",NULL,NULL, "fontcaps",NULL,"ncarg",NULL,NULL, "graphcaps",NULL,"ncarg",NULL,NULL, "colormaps",NULL,"ncarg",NULL,NULL, "rangs","NCARG_RANGS","database",NULL,NULL, "examples",NULL,"ncarg",NULL,NULL, "hluex",NULL,"ncarg",NULL,NULL, "nclex",NULL,"ncarg",NULL,NULL, "resfile!
     s",NULL,"ncarg",NULL,NULL, "tests",NULL,"ncarg",NULL,NULL, "tutorial",NULL,"ncarg",NULL,NULL, "xapp",NULL,"ncarg",NULL,NULL, "ngwww",NULL,"ncarg",NULL,NULL, "ngurl",NULL,"ngwww",NULL,NULL, "sysresfile",NULL,"ncarg",NULL,NULL, "sysappres",NULL,"ncarg",NULL,NULL,NULL}' -DNCARGURL='"ngurl"' -DSYSV -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ -DNeedFuncProto -c gsbytes.c

    which happens in the ncarg-4.3.1/common/src/libncarg_c directory.
     
    The error I get is
    Missing }

    I have tried compiling this under Sun forte compilers versions 5, 6 and 7 and the bug
    in their c compile still exists. A work around is to use gcc and remove the -Xc flag
    (since it is not in gcc). Is there anyway to reduce the information between the
    curly braces since I believe the error is a result of the line being too long.

    Edward Chrzanowski
    Math Faculty Computing Facility
    University of Waterloo
    s
    _______________________________________________
    ncarg-talk mailing list
    ncarg-talk AT unknown
    http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



    This archive was generated by hypermail 2b29 : Fri May 16 2003 - 15:54:09 MDT