From: James K. <ja...@me...> - 2001-03-11 10:27:03
|
Hi David, ptal-hpjd.c seems to have an SNMP dependency. Is it possible to compile without SNMP support? Thanks, -James $ make ptal make[1]: Entering directory `/net/sourceforge/hpoj/ptal' cc -O -Wall -g -I/net/sourceforge/hpoj/include -I/usr/lib/qt-2.2.1/include -L/net/sourceforge/hpoj/ptal -L/usr/lib/qt-2.2.1/lib -fPIC -c -o ptal.o-shared ptal.c ptal.c: In function `ptalPmlRequestSetTrap': ptal.c:1293: warning: control reaches end of non-void function cc -O -Wall -g -I/net/sourceforge/hpoj/include -I/usr/lib/qt-2.2.1/include -L/net/sourceforge/hpoj/ptal -L/usr/lib/qt-2.2.1/lib -fPIC -c -o ptal-hpjd.o-shared ptal-hpjd.c ptal-hpjd.c: In function `ptalHpjdDeviceGetDeviceIDString': ptal-hpjd.c:271: warning: unused variable `dev' ptal-hpjd.c: At top level: ptal-hpjd.c:547: parse error before `ptalHpjdSnmpOidPml' ptal-hpjd.c:547: warning: type defaults to `int' in declaration of `ptalHpjdSnmpOidPml' ptal-hpjd.c:547: warning: data definition has no type or storage class ptal-hpjd.c:548: parse error before `ptalHpjdSnmpOidDeviceID' ptal-hpjd.c:548: warning: type defaults to `int' in declaration of `ptalHpjdSnmpOidDeviceID' ptal-hpjd.c:548: warning: data definition has no type or storage class ptal-hpjd.c:549: parse error before `ptalHpjdSnmpOidNumPorts' ptal-hpjd.c:549: warning: type defaults to `int' in declaration of `ptalHpjdSnmpOidNumPorts' ptal-hpjd.c:549: warning: data definition has no type or storage class ptal-hpjd.c:551: parse error before `oid' ptal-hpjd.c: In function `ptalHpjdPmlToSnmpOid': ptal-hpjd.c:552: `obj' undeclared (first use in this function) ptal-hpjd.c:552: (Each undeclared identifier is reported only once ptal-hpjd.c:552: for each function it appears in.) ptal-hpjd.c:553: `oid' undeclared (first use in this function) ptal-hpjd.c:556: `snmpOid' undeclared (first use in this function) ptal-hpjd.c:560: `MAX_OID_LEN' undeclared (first use in this function) ptal-hpjd.c: At top level: ptal-hpjd.c:567: parse error before `oid' ptal-hpjd.c: In function `ptalHpjdPmlFromSnmpOid': ptal-hpjd.c:569: `oid' undeclared (first use in this function) ptal-hpjd.c:571: `snmpOidLen' undeclared (first use in this function) ptal-hpjd.c:572: `snmpOid' undeclared (first use in this function) ptal-hpjd.c:582: `obj' undeclared (first use in this function) ptal-hpjd.c: In function `ptalHpjdPmlGet': ptal-hpjd.c:611: `SNMP_MSG_GETNEXT' undeclared (first use in this function) ptal-hpjd.c:611: `SNMP_MSG_GET' undeclared (first use in this function) ptal-hpjd.c:614: `oid' undeclared (first use in this function) ptal-hpjd.c:614: parse error before `name' ptal-hpjd.c:621: warning: implicit declaration of function `snmp_pdu_create' ptal-hpjd.c:621: warning: assignment makes pointer from integer without a cast ptal-hpjd.c:625: `name' undeclared (first use in this function) ptal-hpjd.c:631: warning: implicit declaration of function `snmp_add_null_var' ptal-hpjd.c:633: warning: implicit declaration of function `snmp_synch_response'ptal-hpjd.c:633: structure has no member named `snmpSession' ptal-hpjd.c:634: `STAT_SUCCESS' undeclared (first use in this function) ptal-hpjd.c:635: warning: implicit declaration of function `snmp_error' ptal-hpjd.c:635: structure has no member named `snmpSession' ptal-hpjd.c:644: dereferencing pointer to incomplete type ptal-hpjd.c:644: `SNMP_ERR_NOERROR' undeclared (first use in this function) ptal-hpjd.c:648: dereferencing pointer to incomplete type ptal-hpjd.c:648: warning: implicit declaration of function `snmp_errstring' ptal-hpjd.c:648: dereferencing pointer to incomplete type ptal-hpjd.c:652: dereferencing pointer to incomplete type ptal-hpjd.c:656: dereferencing pointer to incomplete type ptal-hpjd.c:656: dereferencing pointer to incomplete type ptal-hpjd.c:659: dereferencing pointer to incomplete type ptal-hpjd.c:668: `ASN_INTEGER' undeclared (first use in this function) ptal-hpjd.c:673: dereferencing pointer to incomplete type ptal-hpjd.c:674: break statement not within loop or switch ptal-hpjd.c:676: `ASN_OCTET_STR' undeclared (first use in this function) ptal-hpjd.c:678: dereferencing pointer to incomplete type ptal-hpjd.c:680: dereferencing pointer to incomplete type ptal-hpjd.c:685: break statement not within loop or switch ptal-hpjd.c:687: `ASN_NULL' undeclared (first use in this function) ptal-hpjd.c:690: break statement not within loop or switch ptal-hpjd.c:705: default label not within a switch statement ptal-hpjd.c:708: dereferencing pointer to incomplete type ptal-hpjd.c:716: warning: implicit declaration of function `snmp_free_pdu' ptal-hpjd.c: In function `ptalHpjdPmlSet': ptal-hpjd.c:729: `oid' undeclared (first use in this function) ptal-hpjd.c:729: parse error before `name' ptal-hpjd.c:736: `SNMP_MSG_SET' undeclared (first use in this function) ptal-hpjd.c:736: warning: assignment makes pointer from integer without a cast ptal-hpjd.c:740: `name' undeclared (first use in this function) ptal-hpjd.c:743: `ASN_INTEGER' undeclared (first use in this function) ptal-hpjd.c:748: `ASN_OCTET_STR' undeclared (first use in this function) ptal-hpjd.c:751: warning: implicit declaration of function `snmp_pdu_add_variable' ptal-hpjd.c:753: structure has no member named `snmpSession' ptal-hpjd.c:754: `STAT_SUCCESS' undeclared (first use in this function) ptal-hpjd.c:755: structure has no member named `snmpSession' ptal-hpjd.c:762: dereferencing pointer to incomplete type ptal-hpjd.c:762: `SNMP_ERR_NOERROR' undeclared (first use in this function) ptal-hpjd.c:765: dereferencing pointer to incomplete type ptal-hpjd.c:765: dereferencing pointer to incomplete type make[1]: *** [ptal-hpjd.o-shared] Error 1 make[1]: Leaving directory `/net/sourceforge/hpoj/ptal' make: *** [all] Error 2 |