Ethereal-users: [Ethereal-users] Re: Ethereal 0.9.9 won't compile on RedHat 8.0

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Walt Haas (www.xmission.com/~haas)" <haas@xxxxxxxxxxxx>
Date: Sun, 02 Mar 2003 19:26:30 -0700
Well, with packet-snmp whacked out of the Makefile, it compiled all
right but link failed because the symbol format-oid, required by a
bunch of modules, was not found.

Here is the compile error message from packet-snmp on RH 8.0:
-------
packet-snmp.c:154:1: warning: "SNMP_MSG_GET" redefined
In file included from /usr/include/net-snmp/definitions.h:25,
                 from /usr/include/net-snmp/types.h:52,
                 from /usr/include/net-snmp/mib_api.h:8,
                 from packet-snmp.c:60:
/usr/include/net-snmp/library/snmp.h:114:1: warning: this is the location of the previous definition
packet-snmp.c:155:1: warning: "SNMP_MSG_GETNEXT" redefined
/usr/include/net-snmp/library/snmp.h:115:1: warning: this is the location of the previous definition
packet-snmp.c:156:1: warning: "SNMP_MSG_RESPONSE" redefined
/usr/include/net-snmp/library/snmp.h:116:1: warning: this is the location of the previous definition
packet-snmp.c:157:1: warning: "SNMP_MSG_SET" redefined
/usr/include/net-snmp/library/snmp.h:117:1: warning: this is the location of the previous definition
packet-snmp.c:158:1: warning: "SNMP_MSG_TRAP" redefined
/usr/include/net-snmp/library/snmp.h:122:1: warning: this is the location of the previous definition
packet-snmp.c:160:1: warning: "SNMP_MSG_GETBULK" redefined
/usr/include/net-snmp/library/snmp.h:127:1: warning: this is the location of the previous definition
packet-snmp.c:161:1: warning: "SNMP_MSG_INFORM" redefined
/usr/include/net-snmp/library/snmp.h:128:1: warning: this is the location of the previous definition
packet-snmp.c:162:1: warning: "SNMP_MSG_TRAP2" redefined
/usr/include/net-snmp/library/snmp.h:129:1: warning: this is the location of the previous definition
packet-snmp.c:163:1: warning: "SNMP_MSG_REPORT" redefined
/usr/include/net-snmp/library/snmp.h:134:1: warning: this is the location of the previous definition
packet-snmp.c:240:1: warning: "SNMP_ERR_NOERROR" redefined
/usr/include/net-snmp/library/snmp.h:169:1: warning: this is the location of the previous definition
packet-snmp.c:241:1: warning: "SNMP_ERR_TOOBIG" redefined
/usr/include/net-snmp/library/snmp.h:170:1: warning: this is the location of the previous definition
packet-snmp.c:242:1: warning: "SNMP_ERR_NOSUCHNAME" redefined
/usr/include/net-snmp/library/snmp.h:171:1: warning: this is the location of the previous definition
packet-snmp.c:243:1: warning: "SNMP_ERR_BADVALUE" redefined
/usr/include/net-snmp/library/snmp.h:172:1: warning: this is the location of the previous definition
packet-snmp.c:244:1: warning: "SNMP_ERR_READONLY" redefined
/usr/include/net-snmp/library/snmp.h:173:1: warning: this is the location of the previous definition
packet-snmp.c:247:1: warning: "SNMP_ERR_NOACCESS" redefined
/usr/include/net-snmp/library/snmp.h:179:1: warning: this is the location of the previous definition
packet-snmp.c:248:1: warning: "SNMP_ERR_WRONGTYPE" redefined
/usr/include/net-snmp/library/snmp.h:180:1: warning: this is the location of the previous definition
packet-snmp.c:249:1: warning: "SNMP_ERR_WRONGLENGTH" redefined
/usr/include/net-snmp/library/snmp.h:181:1: warning: this is the location of the previous definition
packet-snmp.c:250:1: warning: "SNMP_ERR_WRONGENCODING" redefined
/usr/include/net-snmp/library/snmp.h:182:1: warning: this is the location of the previous definition
packet-snmp.c:251:1: warning: "SNMP_ERR_WRONGVALUE" redefined
/usr/include/net-snmp/library/snmp.h:183:1: warning: this is the location of the previous definition
packet-snmp.c:252:1: warning: "SNMP_ERR_NOCREATION" redefined
/usr/include/net-snmp/library/snmp.h:184:1: warning: this is the location of the previous definition
packet-snmp.c:253:1: warning: "SNMP_ERR_INCONSISTENTVALUE" redefined
/usr/include/net-snmp/library/snmp.h:185:1: warning: this is the location of the previous definition
packet-snmp.c:254:1: warning: "SNMP_ERR_RESOURCEUNAVAILABLE" redefined
/usr/include/net-snmp/library/snmp.h:186:1: warning: this is the location of the previous definition
packet-snmp.c:255:1: warning: "SNMP_ERR_COMMITFAILED" redefined
/usr/include/net-snmp/library/snmp.h:187:1: warning: this is the location of the previous definition
packet-snmp.c:256:1: warning: "SNMP_ERR_UNDOFAILED" redefined
/usr/include/net-snmp/library/snmp.h:188:1: warning: this is the location of the previous definition
packet-snmp.c:257:1: warning: "SNMP_ERR_AUTHORIZATIONERROR" redefined
/usr/include/net-snmp/library/snmp.h:189:1: warning: this is the location of the previous definition
packet-snmp.c:258:1: warning: "SNMP_ERR_NOTWRITABLE" redefined
/usr/include/net-snmp/library/snmp.h:190:1: warning: this is the location of the previous definition
packet-snmp.c:259:1: warning: "SNMP_ERR_INCONSISTENTNAME" redefined
/usr/include/net-snmp/library/snmp.h:195:1: warning: this is the location of the previous definition
packet-snmp.c:286:1: warning: "SNMP_TRAP_COLDSTART" redefined
/usr/include/net-snmp/library/snmp.h:203:1: warning: this is the location of the previous definition
packet-snmp.c:287:1: warning: "SNMP_TRAP_WARMSTART" redefined
/usr/include/net-snmp/library/snmp.h:204:1: warning: this is the location of the previous definition
packet-snmp.c:288:1: warning: "SNMP_TRAP_LINKDOWN" redefined
/usr/include/net-snmp/library/snmp.h:205:1: warning: this is the location of the previous definition
packet-snmp.c:289:1: warning: "SNMP_TRAP_LINKUP" redefined
/usr/include/net-snmp/library/snmp.h:206:1: warning: this is the location of the previous definition
packet-snmp.c:290:1: warning: "SNMP_TRAP_AUTHFAIL" redefined
/usr/include/net-snmp/library/snmp.h:207:1: warning: this is the location of the previous definition
packet-snmp.c:291:1: warning: "SNMP_TRAP_EGPNEIGHBORLOSS" redefined
/usr/include/net-snmp/library/snmp.h:208:1: warning: this is the location of the previous definition
packet-snmp.c:292:1: warning: "SNMP_TRAP_ENTERPRISESPECIFIC" redefined
/usr/include/net-snmp/library/snmp.h:209:1: warning: this is the location of the previous definition
packet-snmp.c:354:1: warning: "SNMP_NOSUCHOBJECT" redefined
/usr/include/net-snmp/library/snmp.h:158:1: warning: this is the location of the previous definition
packet-snmp.c:355:1: warning: "SNMP_NOSUCHINSTANCE" redefined
/usr/include/net-snmp/library/snmp.h:159:1: warning: this is the location of the previous definition
packet-snmp.c:356:1: warning: "SNMP_ENDOFMIBVIEW" redefined
/usr/include/net-snmp/library/snmp.h:160:1: warning: this is the location of the previous definition
packet-snmp.c: In function `proto_register_snmp':
packet-snmp.c:2063: warning: implicit declaration of function `netsnmp_ds_set_boolean'
packet-snmp.c:2063: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
packet-snmp.c:2063: (Each undeclared identifier is reported only once
packet-snmp.c:2063: for each function it appears in.)
packet-snmp.c:2064: `NETSNMP_DS_LIB_NO_TOKEN_WARNINGS' undeclared (first use in
this function)
packet-snmp.c:2065: warning: implicit declaration of function `netsnmp_ds_set_int'
packet-snmp.c:2066: `NETSNMP_DS_LIB_PRINT_SUFFIX_ONLY' undeclared (first use in
this function)
make[2]: *** [packet-snmp.o] Error 1

-------
"Linux is a cancer"  -- Steve Ballmer

"First they ignore you. Then they laugh at you. 
 Then they fight you. Then you win." -- Gandhi