• sqafix compilation errors

    From mark lewis@1:3634/12 to all on Sun Nov 9 19:58:30 2003
    preface: i do not /know/ C but have been able to wheedle my way thru some problems in the past and even create a few very minor programs... i can only point out what i see and ask questions or just wait for a solution...


    in the sqafix sources retrieved from cvs.sourceforge.net, i get the following errors...

    =====
    In file included from dw-def.h:34,
    from dw-lst.h:35,
    from sqafix.h:63,
    from sqafix.c:62:
    dw-saa.h:297: parse error before string constant
    dw-saa.h:297: stray '\' in program
    dw-saa.h:298: undefined or invalid # directive
    =====

    here're the lines in that section with line numbers added..

    293 #ifdef NDEBUG
    294 # define ASSERT(p) ((void)0)
    295 #else
    296 # define ASSERT(p) ((p) ? (void)0 : (void) fprintf(stderr, \
    297 "Assertion failed: %s, file %s, line %d\n\a", \
    298 #p, __FILE__, __LINE__ ) )
    299 #endif


    i'm not sure i see the two afore mentioned problems...

    =====
    In file included from dw-lst.h:35,
    from sqafix.h:63,
    from sqafix.c:62:
    dw-def.h:140: parse error before `USHORT'
    dw-def.h:173: parse error before string constant
    dw-def.h:173: stray '\' in program
    dw-def.h:174: undefined or invalid # directive
    =====

    line 140 is...

    (USHORT)0x0F00)

    and in comparison with other lines containing USHORT in that
    area, it is possible that it should read

    ((USHORT)0x0F00)


    [this one i believe i have fixed as it hasn't shown up in subsequent compile attempts...]


    here're the lines in section 173/174 with line numbers added..

    169 #ifdef NDEBUG
    170 # define ASSERT(p) ((void)0)
    171 #else
    172 # define ASSERT(p) ((p) ? (void)0 : (void) AuxLog( \
    173 "Assertion failed: %s, file %s, line %d", \
    174 #p, __FILE__, __LINE__ ) )
    175 #endif


    this section is almost identicle to the one in dw-saa.h and the error must be something similar if not the very same...

    =====
    In file included fron sqafix.c:62:
    sqafix.h:261: undefined or invalid # directive
    =====

    here're the lines in that section with line numbers added..

    257 #ifdef NDEBUG
    258 # define ASSERT(p) ((void)0)
    259 #else
    260 # define ASSERT(p) ((p) ? (void)0 : (void) Assert( \
    261 #p, __FILE__, __LINE__ ) )
    262 #endif


    this section is almost identicle to the one in dw-saa.h and dw-def.h... the error must be something similar if not the very same as the other two...

    in all three, i'm wanting to question, at least, the #p on the last line... i have no idea on the "parse error before string constant" errors...

    i believe that once these few problems are handled, i'll be able to conpile sqafix and thus complete a "make build" of a new install of the maximus cvs tree...

    )\/(ark


    * Origin: (1:3634/12)
  • From mark lewis@1:3634/12 to all on Sun Nov 9 20:36:34 2003
    preface: i do not /know/ C but have been able to wheedle my
    way thru some problems in the past and even create a few very
    minor programs... i can only point out what i see and ask
    questions or just wait for a solution...


    in the sqafix sources retrieved from cvs.sourceforge.net, i
    get the following errors...

    i decided to go thru and (re?)combine those lines into one each instead of using the \ continuation indicator... every one of those errors had a \ on the line before and i've been able to get further in the compilation...

    i was also incorrect in my guess that that USHORT error was taken care of by prefixing another (... that one was also moved up a line to eliminate the \ continuation line indicator...

    so, now i'm down to the following error log... i'm going to post the whole thing and see what you make of it...

    ===== maxbuild3.log =====

    cd btree && /usr/bin/gmake; cd ..; cd slib && /usr/bin/gmake; cd ..; cd unix && /usr/bin/gmake; cd ..; cd msgapi && /usr/bin/gmake; cd ..; cd squish && /usr/bin/gmake; cd ..;
    gmake[1]: Entering directory `/opt/maximus/btree'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/btree'
    gmake[1]: Entering directory `/opt/maximus/slib'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/slib'
    gmake[1]: Entering directory `/opt/maximus/unix'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/unix'
    gmake[1]: Entering directory `/opt/maximus/msgapi'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/msgapi'
    gmake[1]: Entering directory `/opt/maximus/squish'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/squish'
    cd squish && /usr/bin/gmake
    gmake[1]: Entering directory `/opt/maximus/squish'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/squish'
    cd msgapi && /usr/bin/gmake; cd ..; cd sqafix && /usr/bin/gmake; cd ..; gmake[1]: Entering directory `/opt/maximus/msgapi'
    gmake[1]: Nothing to be done for `top'.
    gmake[1]: Leaving directory `/opt/maximus/msgapi'
    gmake[1]: Entering directory `/opt/maximus/sqafix'
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -DINSTALL_PREFIX=\"/opt/max\" -c -o sqafix.o sqafix.c
    sqafix.c:139: warning: missing braces around initializer
    sqafix.c:139: warning: (near initialization for `aCmdReqTab[0]')
    sqafix.c:189: warning: missing braces around initializer
    sqafix.c:189: warning: (near initialization for `aRemReqTab[0]')
    sqafix.c: In function `DoCheckKey':
    sqafix.c:225: warning: control reaches end of non-void function
    sqafix.c: In function `DoShowHelp':
    sqafix.c:283: warning: unused variable `tm'
    sqafix.c: In function `DoRunManualMode':
    sqafix.c:864: warning: pointer type mismatch in conditional expression sqafix.c: In function `DoGetRemCmdParam':
    sqafix.c:1019: warning: pointer type mismatch in conditional expression sqafix.c: In function `DoFakeAutoCreate':
    sqafix.c:1523: warning: `pszArea' might be used uninitialized in this function sqafix.c: In function `DoSetDayNumLimit':
    sqafix.c:1689: warning: missing braces around initializer
    sqafix.c:1689: warning: (near initialization for `aflg[0]')
    sqafix.c: In function `DoExecMaint':
    sqafix.c:1747: warning: implicit declaration of function `spawnlp' sqafix.c:1724: warning: unused variable `tmp'
    sqafix.c: In function `DoDumpNodeInfo':
    sqafix.c:1833: warning: missing braces around initializer
    sqafix.c:1833: warning: (near initialization for `afs[0]')
    sqafix.c: In function `DoDumpUplinkInfo':
    sqafix.c:1934: warning: missing braces around initializer
    sqafix.c:1934: warning: (near initialization for `afs[0]')
    sqafix.c: In function `DoDumpAreaInfo':
    sqafix.c:2024: warning: missing braces around initializer
    sqafix.c:2024: warning: (near initialization for `afs[0]')
    sqafix.c: In function `main':
    sqafix.c:2132: warning: passing arg 2 of `DoInitSqaFix' from incompatible pointer type
    sqafix.c:2173: warning: passing arg 2 of `DoNotifyNodeAllLinks' from incompatible pointer type
    sqafix.c:2174: warning: passing arg 2 of `DoAutoCreateNewAreas' from incompatible pointer type
    sqafix.c:2175: warning: passing arg 2 of `DoRunMaintenance' from incompatible pointer type
    sqafix.c:2176: warning: passing arg 2 of `DoSyncCfgFiles' from incompatible pointer type
    sqafix.c:2178: warning: passing arg 2 of `DoDumpNode' from incompatible pointer
    type
    sqafix.c:2179: warning: passing arg 2 of `DoDumpUplink' from incompatible pointer type
    sqafix.c:2180: warning: passing arg 2 of `DoDumpArea' from incompatible pointer
    type
    sqafix.c:2182: warning: passing arg 2 of `DoRunManualMode' from incompatible pointer type
    sqafix.c: At top level:
    sqafix.c:218: warning: `DoCheckKey' defined but not used
    sqafix.c:228: warning: `DoGetKey' defined but not used
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o lst-mngr.o lst-mngr.c
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqaarc.o sqaarc.c
    sqaarc.c: In function `LoadArcSpec':
    sqaarc.c:225: warning: suggest explicit braces to avoid ambiguous `else' /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqacfg.o sqacfg.c
    sqacfg.c:125: warning: missing braces around initializer
    sqacfg.c:125: warning: (near initialization for `atabSqaf[0]')
    sqacfg.c:210: warning: missing braces around initializer
    sqacfg.c:210: warning: (near initialization for `atabSqsh[0]')
    sqacfg.c: In function `DoSqafAreaListSaveFile':
    sqacfg.c:1291: warning: `cch' might be used uninitialized in this function sqacfg.c: In function `DoScanSqafLine':
    sqacfg.c:2548: warning: suggest explicit braces to avoid ambiguous `else' sqacfg.c: In function `DoScanSqshLine':
    sqacfg.c:3025: warning: suggest explicit braces to avoid ambiguous `else' sqacfg.c: In function `DoUpdateEchoArea':
    sqacfg.c:3162: warning: `cchText' might be used uninitialized in this function sqacfg.c: In function `DoWriteNewAreas':
    sqacfg.c:3283: warning: pointer type mismatch in conditional expression sqacfg.c:3283: warning: char format, void arg (arg 7)
    sqacfg.c: In function `ScanCfgFile':
    sqacfg.c:3592: warning: suggest explicit braces to avoid ambiguous `else' sqacfg.c: In function `UpdateCfgFile':
    sqacfg.c:3864: warning: suggest explicit braces to avoid ambiguous `else' /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqamsg.o sqamsg.c
    sqamsg.c: In function `DoFormatMSGID':
    sqamsg.c:126: `timer_t' undeclared (first use in this function)
    sqamsg.c:126: (Each undeclared identifier is reported only once
    sqamsg.c:126: for each function it appears in.)
    sqamsg.c:126: parse error before `t'
    sqamsg.c:156: `t' undeclared (first use in this function)
    sqamsg.c:116: warning: `lSecs' might be used uninitialized in this function sqamsg.c:116: warning: `lHund' might be used uninitialized in this function sqamsg.c: In function `GetMsgKludge':
    sqamsg.c:907: warning: `cchText' might be used uninitialized in this function sqamsg.c: In function `LogMsg':
    sqamsg.c:1046: warning: missing braces around initializer
    sqamsg.c:1046: warning: (near initialization for `aAttr[0]')
    gmake[1]: *** [sqamsg.o] Error 1
    gmake[1]: Leaving directory `/opt/maximus/sqafix'
    cd sqafix && /usr/bin/gmake
    gmake[1]: Entering directory `/opt/maximus/sqafix'
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqamsg.o sqamsg.c
    sqamsg.c: In function `DoFormatMSGID':
    sqamsg.c:126: `timer_t' undeclared (first use in this function)
    sqamsg.c:126: (Each undeclared identifier is reported only once
    sqamsg.c:126: for each function it appears in.)
    sqamsg.c:126: parse error before `t'
    sqamsg.c:156: `t' undeclared (first use in this function)
    sqamsg.c:116: warning: `lSecs' might be used uninitialized in this function sqamsg.c:116: warning: `lHund' might be used uninitialized in this function sqamsg.c: In function `GetMsgKludge':
    sqamsg.c:907: warning: `cchText' might be used uninitialized in this function sqamsg.c: In function `LogMsg':
    sqamsg.c:1046: warning: missing braces around initializer
    sqamsg.c:1046: warning: (near initialization for `aAttr[0]')
    gmake[1]: *** [sqamsg.o] Error 1
    gmake[1]: Leaving directory `/opt/maximus/sqafix'
    make: *** [sqafix] Error 2

    =========================

    so there ya have it... since acquiring the complete kit with sqafix added, i've
    yet to complete a "make build" session ;-( it appears that sqamsg.c now contains whatever errors there are that are stopping this build...

    )\/(ark


    * Origin: (1:3634/12)
  • From Bo Simonsen@2:236/100 to mark lewis on Mon Nov 10 16:01:13 2003
    Hello mark!

    09 Nov 03 19:58, you wrote to all:

    preface: i do not /know/ C but have been able to wheedle my way thru
    some problems in the past and even create a few very minor programs...
    i can only point out what i see and ask questions or just wait for a solution...

    Okay.

    in the sqafix sources retrieved from cvs.sourceforge.net, i get the following errors...

    =====
    In file included from dw-def.h:34,
    from dw-lst.h:35,
    from sqafix.h:63,
    from sqafix.c:62:
    dw-saa.h:297: parse error before string constant
    dw-saa.h:297: stray '\' in program
    dw-saa.h:298: undefined or invalid # directive
    =====

    here're the lines in that section with line numbers added..

    293 #ifdef NDEBUG
    294 # define ASSERT(p) ((void)0)
    295 #else
    296 # define ASSERT(p) ((p) ? (void)0 : (void) fprintf(stderr, \
    297 "Assertion failed: %s, file %s, line %d\n\a",
    \
    298 #p, __FILE__, __LINE__ ) )
    299 #endif

    Hmmm.. I can't understand why my gcc didn't fault on that one!

    Try to do a CVS checkout.

    i'm not sure i see the two afore mentioned problems...

    =====
    In file included from dw-lst.h:35,
    from sqafix.h:63,
    from sqafix.c:62:
    dw-def.h:140: parse error before `USHORT'
    dw-def.h:173: parse error before string constant
    dw-def.h:173: stray '\' in program
    dw-def.h:174: undefined or invalid # directive
    =====

    line 140 is...

    (USHORT)0x0F00)

    and in comparison with other lines containing USHORT in that
    area, it is possible that it should read

    ((USHORT)0x0F00)

    No, the count of ( match the count of ), just the problem about \ in defines.

    [this one i believe i have fixed as it hasn't shown up in subsequent compile attempts...]


    here're the lines in section 173/174 with line numbers added..

    169 #ifdef NDEBUG
    170 # define ASSERT(p) ((void)0)
    171 #else
    172 # define ASSERT(p) ((p) ? (void)0 : (void) AuxLog( \
    The problem -----^
    173 "Assertion failed: %s, file %s, line %d", \
    174 #p, __FILE__, __LINE__ ) )
    175 #endif


    this section is almost identicle to the one in dw-saa.h and the error
    must be something similar if not the very same...

    =====
    In file included fron sqafix.c:62:
    sqafix.h:261: undefined or invalid # directive
    =====

    here're the lines in that section with line numbers added..

    257 #ifdef NDEBUG
    258 # define ASSERT(p) ((void)0)
    259 #else
    260 # define ASSERT(p) ((p) ? (void)0 : (void) Assert( \
    261 #p, __FILE__, __LINE__ ) )
    262 #endif

    The same problem.

    this section is almost identicle to the one in dw-saa.h and
    dw-def.h... the error must be something similar if not the very same
    as the other two...

    in all three, i'm wanting to question, at least, the #p on the last line... i have no idea on the "parse error before string constant" errors...

    i believe that once these few problems are handled, i'll be able to conpile sqafix and thus complete a "make build" of a new install of
    the maximus cvs tree...

    What version of gcc do you use?

    Regards,
    Bo

    --- GoldED+/LNX 1.1.4.7
    * Origin: The Night Express - Roennede, Dk (2:236/100)
  • From Bo Simonsen@2:236/100 to mark lewis on Mon Nov 10 16:09:14 2003
    Hello mark!

    09 Nov 03 20:36, you wrote to all:

    function `DoFormatMSGID':
    sqamsg.c:126: `timer_t' undeclared (first
    use in this function)
    sqamsg.c:126: (Each undeclared identifier is
    reported only once
    sqamsg.c:126: for each function it appears
    in.) sqamsg.c:126: parse error before `t' sqamsg.c:156: `t'
    undeclared

    It's fixed, should be time_t, damn I don't understand why my version is working!!

    Regards,
    Bo

    --- GoldED+/LNX 1.1.4.7
    * Origin: The Night Express - Roennede, Dk (2:236/100)
  • From mark lewis@1:3634/12 to Bo Simonsen on Mon Nov 10 19:16:50 2003
    293 #ifdef NDEBUG
    294 # define ASSERT(p) ((void)0)
    295 #else
    296 # define ASSERT(p) ((p) ? (void)0 : (void) fprintf(stderr, \
    297 "Assertion failed: %s, file %s, line %d\n\a",
    \
    298 #p, __FILE__, __LINE__ ) )
    299 #endif

    Hmmm.. I can't understand why my gcc didn't fault on that one!

    what did you see other than the \'s on 296 and 297? what other error is in there?

    Try to do a CVS checkout.

    that's how i got what i have now... i've about taken to blowing the whole tree and starting from scratch each time i retrieve the stuff from cvs...

    ((USHORT)0x0F00)

    No, the count of ( match the count of ), just the problem
    about \ in defines.

    right, i figured that out later...

    here're the lines in section 173/174 with line numbers added..

    169 #ifdef NDEBUG
    170 # define ASSERT(p) ((void)0)
    171 #else
    172 # define ASSERT(p) ((p) ? (void)0 : (void) AuxLog( \
    The problem -----^

    yup... in all three of those, from what i see...

    173 "Assertion failed: %s, file %s, line %d", \
    174 #p, __FILE__, __LINE__ ) )
    175 #endif

    [trim]

    What version of gcc do you use?

    2.95.3 on mandrake 7.1 (helium)...

    )\/(ark


    * Origin: (1:3634/12)
  • From mark lewis@1:3634/12 to Bo Simonsen on Mon Nov 10 19:18:14 2003
    function `DoFormatMSGID':
    sqamsg.c:126: `timer_t' undeclared (first
    use in this function)
    sqamsg.c:126: (Each undeclared identifier is
    reported only once
    sqamsg.c:126: for each function it appears
    in.) sqamsg.c:126: parse error before `t' sqamsg.c:156: `t'
    undeclared

    It's fixed, should be time_t, damn I don't understand why my
    version is working!!

    ok, i'll try another cvs retrieval and build... should only take 20 or 30 minutes or so... that is, if cvs is open and lets me in ;-)

    )\/(ark


    * Origin: (1:3634/12)
  • From Bo Simonsen@2:236/100 to mark lewis on Tue Nov 11 15:28:12 2003
    Hello mark!

    10 Nov 03 19:16, you wrote to me:

    Hmmm.. I can't understand why my gcc didn't fault on that one!

    what did you see other than the \'s on 296 and 297? what other error
    is in there?

    It did look like you posted.. It should be corrected now, I did commit to the CVS late last night.

    Try to do a CVS checkout.

    that's how i got what i have now... i've about taken to blowing the
    whole tree and starting from scratch each time i retrieve the stuff
    from cvs...

    Okay..

    ((USHORT)0x0F00)

    No, the count of ( match the count of ), just the problem
    about \ in defines.

    right, i figured that out later...

    here're the lines in section 173/174 with line numbers added..

    169 #ifdef NDEBUG
    170 # define ASSERT(p) ((void)0)
    171 #else
    172 # define ASSERT(p) ((p) ? (void)0 : (void) AuxLog( \
    The problem -----^

    yup... in all three of those, from what i see...

    It should be fixed in the CVS repostery.

    173 "Assertion failed: %s, file %s, line
    %d", \ 174 #p, __FILE__, __LINE__ ) ) 175
    #endif

    [trim]

    What version of gcc do you use?

    2.95.3 on mandrake 7.1 (helium)...

    Very wierd, I'm using Debian 3.0 which is using the same compiler.

    Regards,
    Bo

    --- GoldED+/LNX 1.1.4.7
    * Origin: The Night Express - Roennede, Dk (2:236/100)
  • From Bo Simonsen@2:236/100 to mark lewis on Tue Nov 11 15:29:56 2003
    Hello mark!

    10 Nov 03 19:18, you wrote to me:

    It's fixed, should be time_t, damn I don't understand why my
    version is working!!

    ok, i'll try another cvs retrieval and build... should only take 20 or
    30 minutes or so... that is, if cvs is open and lets me in ;-)

    It should be.. I don't know if sourceforge still have CVS problems..

    Regards,
    Bo

    --- GoldED+/LNX 1.1.4.7
    * Origin: The Night Express - Roennede, Dk (2:236/100)
  • From mark lewis@1:3634/12 to Bo Simonsen on Wed Nov 12 00:17:04 2003
    It's fixed, should be time_t, damn I don't understand why my
    version is working!!

    ok, i'll try another cvs retrieval and build... should only take 20 or
    30 minutes or so... that is, if cvs is open and lets me in ;-)

    It should be.. I don't know if sourceforge still have CVS
    problems..

    it got further... sqastr.c is full of \'s too ;-(

    [trim a lot]
    gmake[1]: Entering directory `/opt/maximus/sqafix'
    Building dependencies..
    gmake[1]: [depend.mk] Error 1 (ignored)
    gmake[1]: Leaving directory `/opt/maximus/sqafix'
    gmake[1]: Entering directory `/opt/maximus/sqafix'
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -DINSTALL_PREFIX=\"/opt/max\" -c -o sqafix.o sqafix.c
    sqafix.c:139: warning: missing braces around initializer
    sqafix.c:139: warning: (near initialization for `aCmdReqTab[0]')
    sqafix.c:189: warning: missing braces around initializer
    sqafix.c:189: warning: (near initialization for `aRemReqTab[0]')
    sqafix.c: In function `DoCheckKey':
    sqafix.c:225: warning: control reaches end of non-void function
    sqafix.c: In function `DoShowHelp':
    sqafix.c:283: warning: unused variable `tm'
    sqafix.c: In function `DoRunManualMode':
    sqafix.c:864: warning: pointer type mismatch in conditional expression sqafix.c: In function `DoGetRemCmdParam':
    sqafix.c:1019: warning: pointer type mismatch in conditional expression sqafix.c: In function `DoFakeAutoCreate':
    sqafix.c:1523: warning: `pszArea' might be used uninitialized in this function sqafix.c: In function `DoSetDayNumLimit':
    sqafix.c:1689: warning: missing braces around initializer
    sqafix.c:1689: warning: (near initialization for `aflg[0]')
    sqafix.c: In function `DoExecMaint':
    sqafix.c:1747: warning: implicit declaration of function `spawnlp' sqafix.c:1724: warning: unused variable `tmp'
    sqafix.c: In function `DoDumpNodeInfo':
    sqafix.c:1833: warning: missing braces around initializer
    sqafix.c:1833: warning: (near initialization for `afs[0]')
    sqafix.c: In function `DoDumpUplinkInfo':
    sqafix.c:1934: warning: missing braces around initializer
    sqafix.c:1934: warning: (near initialization for `afs[0]')
    sqafix.c: In function `DoDumpAreaInfo':
    sqafix.c:2024: warning: missing braces around initializer
    sqafix.c:2024: warning: (near initialization for `afs[0]')
    sqafix.c: In function `main':
    sqafix.c:2132: warning: passing arg 2 of `DoInitSqaFix' from incompatible pointer type
    sqafix.c:2173: warning: passing arg 2 of `DoNotifyNodeAllLinks' from incompatible pointer type
    sqafix.c:2174: warning: passing arg 2 of `DoAutoCreateNewAreas' from incompatible pointer type
    sqafix.c:2175: warning: passing arg 2 of `DoRunMaintenance' from incompatible pointer type
    sqafix.c:2176: warning: passing arg 2 of `DoSyncCfgFiles' from incompatible pointer type
    sqafix.c:2178: warning: passing arg 2 of `DoDumpNode' from incompatible pointer
    type
    sqafix.c:2179: warning: passing arg 2 of `DoDumpUplink' from incompatible pointer type
    sqafix.c:2180: warning: passing arg 2 of `DoDumpArea' from incompatible pointer
    type
    sqafix.c:2182: warning: passing arg 2 of `DoRunManualMode' from incompatible pointer type
    sqafix.c: At top level:
    sqafix.c:218: warning: `DoCheckKey' defined but not used
    sqafix.c:228: warning: `DoGetKey' defined but not used
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o lst-mngr.o lst-mngr.c
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqaarc.o sqaarc.c
    sqaarc.c: In function `LoadArcSpec':
    sqaarc.c:225: warning: suggest explicit braces to avoid ambiguous `else' /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqacfg.o sqacfg.c
    sqacfg.c:125: warning: missing braces around initializer
    sqacfg.c:125: warning: (near initialization for `atabSqaf[0]')
    sqacfg.c:210: warning: missing braces around initializer
    sqacfg.c:210: warning: (near initialization for `atabSqsh[0]')
    sqacfg.c: In function `DoSqafAreaListSaveFile':
    sqacfg.c:1291: warning: `cch' might be used uninitialized in this function sqacfg.c: In function `DoScanSqafLine':
    sqacfg.c:2548: warning: suggest explicit braces to avoid ambiguous `else' sqacfg.c: In function `DoScanSqshLine':
    sqacfg.c:3025: warning: suggest explicit braces to avoid ambiguous `else' sqacfg.c: In function `DoUpdateEchoArea':
    sqacfg.c:3162: warning: `cchText' might be used uninitialized in this function sqacfg.c: In function `DoWriteNewAreas':
    sqacfg.c:3283: warning: pointer type mismatch in conditional expression sqacfg.c:3283: warning: char format, void arg (arg 7)
    sqacfg.c: In function `ScanCfgFile':
    sqacfg.c:3592: warning: suggest explicit braces to avoid ambiguous `else' sqacfg.c: In function `UpdateCfgFile':
    sqacfg.c:3864: warning: suggest explicit braces to avoid ambiguous `else' /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqamsg.o sqamsg.c
    sqamsg.c: In function `GetMsgKludge':
    sqamsg.c:907: warning: `cchText' might be used uninitialized in this function sqamsg.c: In function `LogMsg':
    sqamsg.c:1046: warning: missing braces around initializer
    sqamsg.c:1046: warning: (near initialization for `aAttr[0]')
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqastr.o sqastr.c
    sqastr.c:40: stray '\' in program
    sqastr.c:44: parse error before `if'
    sqastr.c:44: stray '\' in program
    sqastr.c:45: stray '\' in program
    sqastr.c:46: warning: type defaults to `int' in declaration of `DoAbort' sqastr.c:46: warning: data definition has no type or storage class
    sqastr.c:46: stray '\' in program
    sqastr.c:47: parse error before `}'
    sqastr.c:47: stray '\' in program
    sqastr.c:54: conflicting types for `DoAbort'
    sqastr.c:46: previous declaration of `DoAbort'
    sqastr.c: In function `x_strlen':
    sqastr.c:67: stray '\' in program
    sqastr.c: In function `x_strcpy':
    sqastr.c:73: stray '\' in program
    sqastr.c:74: stray '\' in program
    sqastr.c: In function `x_strncpy':
    sqastr.c:80: stray '\' in program
    sqastr.c:81: stray '\' in program
    sqastr.c: In function `x_strcat':
    sqastr.c:87: stray '\' in program
    sqastr.c:88: stray '\' in program
    sqastr.c: In function `x_strncat':
    sqastr.c:94: stray '\' in program
    sqastr.c:95: stray '\' in program
    sqastr.c: In function `x_strcmp':
    sqastr.c:101: stray '\' in program
    sqastr.c:102: stray '\' in program
    sqastr.c: In function `x_stricmp':
    sqastr.c:108: stray '\' in program
    sqastr.c:109: stray '\' in program
    sqastr.c: In function `x_strlwr':
    sqastr.c:115: stray '\' in program
    sqastr.c: In function `x_strupr':
    sqastr.c:121: stray '\' in program
    sqastr.c: In function `x_strchr':
    sqastr.c:127: stray '\' in program
    sqastr.c: In function `x_strrchr':
    sqastr.c:133: stray '\' in program
    sqastr.c: In function `x_strstr':
    sqastr.c:139: stray '\' in program
    sqastr.c:140: stray '\' in program
    sqastr.c: In function `x_strtok':
    sqastr.c:146: stray '\' in program
    sqastr.c:147: stray '\' in program
    sqastr.c: In function `x_memchr':
    sqastr.c:157: stray '\' in program
    sqastr.c: In function `x_memset':
    sqastr.c:163: stray '\' in program
    sqastr.c: In function `x_memcmp':
    sqastr.c:169: stray '\' in program
    sqastr.c:170: stray '\' in program
    sqastr.c: In function `x_memicmp':
    sqastr.c:176: stray '\' in program
    sqastr.c:177: stray '\' in program
    sqastr.c: In function `x_memcpy':
    sqastr.c:183: stray '\' in program
    sqastr.c:184: stray '\' in program
    sqastr.c: In function `x_memmove':
    sqastr.c:190: stray '\' in program
    sqastr.c:191: stray '\' in program
    sqastr.c: At top level:
    sqastr.c:40: warning: `achNull' defined but not used
    sqastr.c:54: warning: `DoAbort' defined but not used
    gmake[1]: *** [sqastr.o] Error 1
    gmake[1]: Leaving directory `/opt/maximus/sqafix'
    cd sqafix && /usr/bin/gmake
    gmake[1]: Entering directory `/opt/maximus/sqafix'
    /usr/bin/gcc -fPIC -funsigned-bitfields -Wcast-align -g -Wall -O -DUNIX -DLINUX -I. -I/opt/maximus/unix/include -I/opt/maximus/slib -I/opt/maximus/msgapi -I/opt/maximus/btree -I/opt/maximus/max -I/opt/maximus/prot -I/opt/maximus/mex -DINSTALL_PREFIX=\"/opt/max\" -c -o sqastr.o sqastr.c
    sqastr.c:40: stray '\' in program
    sqastr.c:44: parse error before `if'
    sqastr.c:44: stray '\' in program
    sqastr.c:45: stray '\' in program
    sqastr.c:46: warning: type defaults to `int' in declaration of `DoAbort' sqastr.c:46: warning: data definition has no type or storage class
    sqastr.c:46: stray '\' in program
    sqastr.c:47: parse error before `}'
    sqastr.c:47: stray '\' in program
    sqastr.c:54: conflicting types for `DoAbort'
    sqastr.c:46: previous declaration of `DoAbort'
    sqastr.c: In function `x_strlen':
    sqastr.c:67: stray '\' in program
    sqastr.c: In function `x_strcpy':
    sqastr.c:73: stray '\' in program
    sqastr.c:74: stray '\' in program
    sqastr.c: In function `x_strncpy':
    sqastr.c:80: stray '\' in program
    sqastr.c:81: stray '\' in program
    sqastr.c: In function `x_strcat':
    sqastr.c:87: stray '\' in program
    sqastr.c:88: stray '\' in program
    sqastr.c: In function `x_strncat':
    sqastr.c:94: stray '\' in program
    sqastr.c:95: stray '\' in program
    sqastr.c: In function `x_strcmp':
    sqastr.c:101: stray '\' in program
    sqastr.c:102: stray '\' in program
    sqastr.c: In function `x_stricmp':
    sqastr.c:108: stray '\' in program
    sqastr.c:109: stray '\' in program
    sqastr.c: In function `x_strlwr':
    sqastr.c:115: stray '\' in program
    sqastr.c: In function `x_strupr':
    sqastr.c:121: stray '\' in program
    sqastr.c: In function `x_strchr':
    sqastr.c:127: stray '\' in program
    sqastr.c: In function `x_strrchr':
    sqastr.c:133: stray '\' in program
    sqastr.c: In function `x_strstr':
    sqastr.c:139: stray '\' in program
    sqastr.c:140: stray '\' in program
    sqastr.c: In function `x_strtok':
    sqastr.c:146: stray '\' in program
    sqastr.c:147: stray '\' in program
    sqastr.c: In function `x_memchr':
    sqastr.c:157: stray '\' in program
    sqastr.c: In function `x_memset':
    sqastr.c:163: stray '\' in program
    sqastr.c: In function `x_memcmp':
    sqastr.c:169: stray '\' in program
    sqastr.c:170: stray '\' in program
    sqastr.c: In function `x_memicmp':
    sqastr.c:176: stray '\' in program
    sqastr.c:177: stray '\' in program
    sqastr.c: In function `x_memcpy':
    sqastr.c:183: stray '\' in program
    sqastr.c:184: stray '\' in program
    sqastr.c: In function `x_memmove':
    sqastr.c:190: stray '\' in program
    sqastr.c:191: stray '\' in program
    sqastr.c: At top level:
    sqastr.c:40: warning: `achNull' defined but not used
    sqastr.c:54: warning: `DoAbort' defined but not used
    gmake[1]: *** [sqastr.o] Error 1
    gmake[1]: Leaving directory `/opt/maximus/sqafix'
    make: *** [sqafix] Error 2

    )\/(ark


    * Origin: (1:3634/12)
  • From Bo Simonsen@2:236/100 to mark lewis on Wed Nov 12 22:27:26 2003
    Hello mark!

    12 Nov 03 00:17, you wrote to me:

    It's fixed, should be time_t, damn I don't understand why my
    version is working!!

    ok, i'll try another cvs retrieval and build... should only take
    20 or 30 minutes or so... that is, if cvs is open and lets me in
    ;-)

    It should be.. I don't know if sourceforge still have CVS
    problems..

    it got further... sqastr.c is full of \'s too ;-(

    I _really_ don't understand it.. You're scure of there ain't Carrige Return in the source file?

    Regards,
    Bo

    --- GoldED+/LNX 1.1.4.7
    * Origin: The Night Express - Roennede, Dk (2:236/100)
  • From mark lewis@1:3634/12 to Bo Simonsen on Fri Nov 14 01:59:28 2003
    it got further... sqastr.c is full of \'s too ;-(

    I _really_ don't understand it.. You're scure of there ain't
    Carrige Return in the source file?

    i haven't looked... the files are straight off sourceforge... the linux box goes and grabs them and haves at them... i don't pull anything *nix oriented on
    anything other than a *nix box unless i'm going to try to compile it with EMX on OS2 and see if it works...

    )\/(ark


    * Origin: (1:3634/12)
  • From Bo Simonsen@2:236/100 to mark lewis on Fri Nov 14 15:26:29 2003
    Hello mark!

    Nov 14 01:59 03, mark lewis wrote to Bo Simonsen:

    it got further... sqastr.c is full of \'s too ;-(

    I _really_ don't understand it.. You're scure of there ain't
    Carrige Return in the source file?

    i haven't looked... the files are straight off sourceforge... the
    linux box goes and grabs them and haves at them... i don't pull
    anything *nix oriented on anything other than a *nix box unless i'm
    going to try to compile it with EMX on OS2 and see if it works...

    Very good, I would presuiate if you gave me a compile log too, because I doubt that we/I did remember #ifdef UNIX every place.

    Regards,
    Bo

    --- Msged/LNX 6.1.2 (Linux/2.4.18-bf2.4 (i586))
    * Origin: The Night Express, Roennede Dk (2:236/100)
  • From mark lewis@1:3634/12 to Bo Simonsen on Fri Nov 14 19:44:46 2003
    it got further... sqastr.c is full of \'s too ;-(

    I _really_ don't understand it.. You're scure of there ain't
    Carrige Return in the source file?

    i haven't looked... the files are straight off sourceforge... the
    linux box goes and grabs them and haves at them... i don't pull
    anything *nix oriented on anything other than a *nix box unless i'm
    going to try to compile it with EMX on OS2 and see if it works...

    Very good, I would presuiate if you gave me a compile log too,
    because I doubt that we/I did remember #ifdef UNIX every
    place.

    i'm starting it all again, right now at the timestamp on this message... just deleted the maximus directory and unzippes the max-3.03-etc.tar.gz file and now
    my script is pulling it all from cvs again...

    )\/(ark


    * Origin: (1:3634/12)
  • From Bo Simonsen@2:236/100 to mark lewis on Sun Nov 16 00:19:05 2003
    Hello mark!

    Nov 14 19:44 03, mark lewis wrote to Bo Simonsen:

    i haven't looked... the files are straight off sourceforge... the
    linux box goes and grabs them and haves at them... i don't pull
    anything *nix oriented on anything other than a *nix box unless i'm
    going to try to compile it with EMX on OS2 and see if it works...

    Very good, I would presuiate if you gave me a compile log too,
    because I doubt that we/I did remember #ifdef UNIX every
    place.

    i'm starting it all again, right now at the timestamp on this
    message... just deleted the maximus directory and unzippes the max-3.03-etc.tar.gz file and now my script is pulling it all from cvs again...

    Okay. A checkout should do it :-)

    Regards,
    Bo

    --- Msged/LNX 6.1.2 (Linux/2.4.18-bf2.4 (i586))
    * Origin: The Night Express, Roennede Dk (2:236/100)
  • From mark lewis@1:3634/12 to Bo Simonsen on Sun Nov 16 12:46:18 2003
    i'm starting it all again, right now at the timestamp on this
    message... just deleted the maximus directory and unzippes the
    max-3.03-etc.tar.gz file and now my script is pulling it all from cvs
    again...

    Okay. A checkout should do it :-)

    had to do a bit of surgery on sqastr.c and sqaexe.c...

    tr "\015" "\040" < sqastr.c > sqastr.c2
    mv sqastr.c sqastr.c1
    mv sqastr.c2 sqastr.c
    tr "\015" "\040" < sqaexe.c > sqaexe.c2
    mv sqaexe.c sqaexe.c1
    mv sqaexe.c2 sqaexe.c

    then sqastr.c required additional editing to recombine the lines continued by \
    on the end of them...

    after doing that, i'm am apparently getting a complete compile process as my maxbuild.log file is now ending with..

    Build Complete; edit your control files and 'make install'


    i can't tell you what lines contain the ^M in those two source files as i was unable to get grep to look for that character... and i have no idea about the \
    continuation lines problem... is there some setting for gcc or something that i
    may be able to look at and adjust??


    )\/(ark


    * Origin: (1:3634/12)
  • From Bo Simonsen@2:236/100 to mark lewis on Tue Nov 18 16:30:36 2003
    Hello mark!

    Nov 16 12:46 03, mark lewis wrote to Bo Simonsen:

    i'm starting it all again, right now at the timestamp on this
    message... just deleted the maximus directory and unzippes the
    max-3.03-etc.tar.gz file and now my script is pulling it all from
    cvs again...

    Okay. A checkout should do it :-)

    had to do a bit of surgery on sqastr.c and sqaexe.c...

    tr "\015" "\040" < sqastr.c > sqastr.c2
    mv sqastr.c sqastr.c1
    mv sqastr.c2 sqastr.c
    tr "\015" "\040" < sqaexe.c > sqaexe.c2
    mv sqaexe.c sqaexe.c1
    mv sqaexe.c2 sqaexe.c

    then sqastr.c required additional editing to recombine the lines continued by \ on the end of them...

    Ahh okay.

    after doing that, i'm am apparently getting a complete compile
    process as my maxbuild.log file is now ending with..

    Build Complete; edit your control files and 'make install'

    Okay, that's good, you did just remove the \ ?

    i can't tell you what lines contain the ^M in those two source files
    as i was unable to get grep to look for that character... and i have
    no idea about the \ continuation lines problem... is there some
    setting for gcc or something that i may be able to look at and
    adjust??

    I don't have the DOS to Unix program at my hand.. But a tr -d '\r' < infile > outfile might do it.

    Regards,
    Bo

    --- Msged/LNX 6.1.2 (Linux/2.4.18-586tsc (i586))
    * Origin: The Night Express, Roennede Dk (2:236/100)