rlaager / docsis

This program encodes a DOCSIS binary configuration file from a human-readable text configuration file.
http://docsis.sourceforge.net
GNU General Public License v2.0
115 stars 70 forks source link

Unable to compile docsis on Ubuntu 10.04 LTS. #1

Closed akulbe closed 12 years ago

akulbe commented 14 years ago

I've installed several dependencies to get docsis to compile, including automake, libglib2.0-dev, snmp... and I still get errors during the "make" stage.

They are as follows:

root@sandbox docsis # make make all-recursive make[1]: Entering directory /root/docsis' Making all in src make[2]: Entering directory/root/docsis/src' gcc -DHAVE_CONFIG_H -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Werror=format-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -MT docsis.o -MD -MP -MF .deps/docsis.Tpo -c -o docsis.o docsis.c docsis.c:34:38: error: net-snmp/net-snmp-config.h: No such file or directory docsis.c:35:33: error: net-snmp/config_api.h: No such file or directory docsis.c:36:33: error: net-snmp/output_api.h: No such file or directory docsis.c:37:30: error: net-snmp/mib_api.h: No such file or directory docsis.c: In function ‘main’: docsis.c:290: error: implicit declaration of function ‘shutdown_mib’ docsis.c: In function ‘setup_mib_flags’: docsis.c:404: error: implicit declaration of function ‘init_mib’ docsis.c:406: error: implicit declaration of function ‘netsnmp_ds_get_boolean’ docsis.c:406: error: ‘NETSNMP_DS_LIBRARY_ID’ undeclared (first use in this function) docsis.c:406: error: (Each undeclared identifier is reported only once docsis.c:406: error: for each function it appears in.) docsis.c:406: error: ‘NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS’ undeclared (first use in this function) docsis.c:408: error: implicit declaration of function ‘netsnmp_ds_toggle_boolean’ docsis.c:412: error: ‘NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM’ undeclared (first use in this function) docsis.c:418: error: ‘NETSNMP_DS_LIB_PRINT_FULL_OID’ undeclared (first use in this function) docsis.c:424: error: ‘NETSNMP_DS_LIB_DONT_PRINT_UNITS’ undeclared (first use in this function) docsis.c:430: error: ‘NETSNMP_DS_LIB_RANDOM_ACCESS’ undeclared (first use in this function) docsis.c:436: error: ‘NETSNMP_DS_LIB_NUMERIC_TIMETICKS’ undeclared (first use in this function) make[2]: * [docsis.o] Error 1 make[2]: Leaving directory `/root/docsis/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/root/docsis' make: *\ [all] Error 2

Is there something that I'm missing? Another dependency, perhaps?

rlaager commented 12 years ago

Install libnetsnmp-dev.