Menu

MAC OS X Build

Help
Walt Lee
2007-10-23
2012-11-18
  • Walt Lee

    Walt Lee - 2007-10-23

    Hello,

    I decided to try to build Varkon on Mac OS 10.4.x using the FreeBSD make file and encountered some errors.  I'd like to work through this build but I am going to need some help.  Here is the terminal feeback:

    evmesh.c: In function 'evmsar':
    evmesh.c:71: warning: 'fltsiz' may be used uninitialized in this function
    evmesh.c:70: warning: 'xfadr' may be used uninitialized in this function
    evtform.c: In function 'evtrmv':
    evtform.c:74: warning: 'sx' may be used uninitialized in this function
    evtform.c:74: warning: 'sy' may be used uninitialized in this function
    evtform.c:74: warning: 'sz' may be used uninitialized in this function
    evtform.c: In function 'evtrrp':
    evtform.c:121: warning: 'sx' may be used uninitialized in this function
    evtform.c:121: warning: 'sy' may be used uninitialized in this function
    evtform.c:121: warning: 'sz' may be used uninitialized in this function
    evtform.c: In function 'evtrrl':
    evtform.c:177: warning: 'sx' may be used uninitialized in this function
    evtform.c:177: warning: 'sy' may be used uninitialized in this function
    evtform.c:177: warning: 'sz' may be used uninitialized in this function
    evtform.c: In function 'evtmult':
    evtform.c:542: warning: implicit declaration of function 'GEtform_mult'
    evtform.c:547: warning: assignment from incompatible pointer type
    evtform.c: In function 'evtinv':
    evtform.c:655: warning: implicit declaration of function 'GEtform_inv'
    evtform.c:660: warning: assignment from incompatible pointer type
    evview.c: In function 'evmsiz':
    evview.c:484: warning: passing argument 1 of 'WPmsiz' from incompatible pointer
    type
    evview.c:472: warning: unused variable 'status'
    inac10.c:1813: warning: 'fptrap' defined but not used
    inac20.c: In function 'ingpva':
    inac20.c:166: warning: 'rtsstart' may be used uninitialized in this function
    innpar.c: In function 'inevnp':
    innpar.c:126: warning: unused variable 'intval'
    pretty.c: In function 'pprlin':
    pretty.c:1897: warning: implicit declaration of function 'WPalla'
    stacc.c:491: warning: useless storage class specifier in empty declaration
    stacc.c: In function 'sticmp':
    stacc.c:808: warning: comparison is always false due to limited range of data ty
    pe
    stacc.c:808: warning: comparison is always false due to limited range of data ty
    pe
    stacc.c:808: warning: comparison is always false due to limited range of data ty
    pe
    stacc.c:809: warning: comparison is always false due to limited range of data ty
    pe
    stacc.c:809: warning: comparison is always false due to limited range of data ty
    pe
    stacc.c:809: warning: comparison is always false due to limited range of data ty
    pe
    ar: creating archive ../lib/EXlib.a
    excur1.c: In function 'EXcuro':
    excur1.c:769: warning: 'nknots' may be used uninitialized in this function
    excur1.c:769: warning: 'ncpts' may be used uninitialized in this function
    excur1.c:767: warning: 'pknots' may be used uninitialized in this function
    excur1.c:766: warning: 'phcpts' may be used uninitialized in this function
    excur1.c: In function 'EXcomp':
    excur1.c:942: warning: 'uvminmax.xmin' may be used uninitialized in this functio
    n
    excur1.c:942: warning: 'uvminmax.ymin' may be used uninitialized in this functio
    n
    excur1.c:942: warning: 'uvminmax.xmax' may be used uninitialized in this functio
    n
    excur1.c:942: warning: 'uvminmax.ymax' may be used uninitialized in this functio
    n
    excur1.c: In function 'mergeNURB':
    excur1.c:2201: warning: 'segtype' may be used uninitialized in this function
    exdia1.c: In function 'EXlsin':
    exdia1.c:459: warning: implicit declaration of function 'WPinla'
    exdia1.c: In function 'EXlsex':
    exdia1.c:482: warning: implicit declaration of function 'WPexla'
    exdia1.c: In function 'EXlsln':
    exdia1.c:505: warning: implicit declaration of function 'WPalla'
    exsymb.c: In function 'EXsymb':
    exsymb.c:139: warning: 'ny' may be used uninitialized in this function
    exsymb.c:139: warning: 'nx' may be used uninitialized in this function
    exsymb.c: At top level:
    exsymb.c:44: warning: 'acc_tab' defined but not used
    exsymb.c:46: warning: 'ch' defined but not used
    exview.c: In function 'EXplwi':
    exview.c:681: warning: passing argument 3 of 'WPdxf_out' from incompatible point
    er type
    exlevel.c:270: warning: ISO C does not allow extra ';' outside of a function
    db1.c:177: error: initializer element is not constant
    make[1]: *** [db1.o] Error 1
    make: *** [distr] Error 2
    leewalt:~/varkon_1.19B/sources leewalt$

     
    • Johan Kjellander

      Hi,

      Your error mesage:
      db1.c:177: error: initializer element is not constant
      can be caused by a problem of different C compiler conventions.

      Line 177 is the line after the following code:

      V3MDAT gmsdat_db = { 0,              /* Not used by DB */
                           DB_LIBVERSION,  /* Version */
                           DB_LIBREVISION, /* Revision */
                           DB_LIBLEVEL,    /* Level */
                           0,0,0,0,0,      /* Creation date */
                           0,0,0,0,0,      /* Last update */
                           "?",            /* OS or Hostname */
                           " ",            /* Not used by DB */
                           0,              /* Not used by DB */
                           0,              /* Not used by DB */
                           "?",            /* OS Release */
                           "?",            /* OS Version */
                           0 };            /* Not used by DB */

      Try to remove the comments in this initializer. If this works there
      may be more places in the system where comments are used in initializers.
      Most C compilers accept comments in initializers but I know from
      old times that some didn't. I have no experience of MAC OS X.

      Please let me know the result.

      Regards, Johan

       

Log in to post a comment.