Subj : sqafix compilation errors To : all From : mark lewis Date : Sun Nov 09 2003 08:36 pm ml> preface: i do not /know/ C but have been able to wheedle my ml> way thru some problems in the past and even create a few very ml> minor programs... i can only point out what i see and ask ml> questions or just wait for a solution... ml> in the sqafix sources retrieved from cvs.sourceforge.net, i ml> 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) .