*** setup configure Configuring NetSNMP-0.1.0... Dependency base -any: using base-4.1.0.0 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/NetSNMP-0.1.0/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/NetSNMP-0.1.0 Documentation installed in: /usr/local/tmp/archive/install/share/doc/NetSNMP-0.1.0 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library NetSNMP-0.1.0... Creating dist/build/Network/Protocol (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lnetsnmp --cflag=-I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.2/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.2/base-4.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2/integer-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Network/Protocol/NetSNMP.hs src/Network/Protocol/NetSNMP.hsc NetSNMP.hsc:61:38: error: net-snmp/net-snmp-config.h: No such file or directory NetSNMP.hsc:62:40: error: net-snmp/net-snmp-includes.h: No such file or directory NetSNMP.hsc: In function 'main': NetSNMP.hsc:85: error: invalid application of 'sizeof' to incomplete type 'struct snmp_session' NetSNMP.hsc:90: error: invalid application of 'sizeof' to incomplete type 'struct snmp_pdu' NetSNMP.hsc:165: error: 'SNMP_VERSION_1' undeclared (first use in this function) NetSNMP.hsc:165: error: (Each undeclared identifier is reported only once NetSNMP.hsc:165: error: for each function it appears in.) NetSNMP.hsc:169: error: 'SNMP_VERSION_2c' undeclared (first use in this function) NetSNMP.hsc:174: error: 'SNMP_VERSION_3' undeclared (first use in this function) NetSNMP.hsc:178: error: 'ASN_BOOLEAN' undeclared (first use in this function) NetSNMP.hsc:181: error: 'ASN_INTEGER' undeclared (first use in this function) NetSNMP.hsc:184: error: 'ASN_BIT_STR' undeclared (first use in this function) NetSNMP.hsc:187: error: 'ASN_OCTET_STR' undeclared (first use in this function) NetSNMP.hsc:190: error: 'ASN_NULL' undeclared (first use in this function) NetSNMP.hsc:193: error: 'ASN_OBJECT_ID' undeclared (first use in this function) NetSNMP.hsc:196: error: 'ASN_SEQUENCE' undeclared (first use in this function) NetSNMP.hsc:199: error: 'ASN_SET' undeclared (first use in this function) NetSNMP.hsc:202: error: 'ASN_UNIVERSAL' undeclared (first use in this function) NetSNMP.hsc:205: error: 'ASN_APPLICATION' undeclared (first use in this function) NetSNMP.hsc:208: error: 'ASN_CONTEXT' undeclared (first use in this function) NetSNMP.hsc:211: error: 'ASN_PRIVATE' undeclared (first use in this function) NetSNMP.hsc:214: error: 'ASN_PRIMITIVE' undeclared (first use in this function) NetSNMP.hsc:217: error: 'ASN_CONSTRUCTOR' undeclared (first use in this function) NetSNMP.hsc:220: error: 'ASN_LONG_LEN' undeclared (first use in this function) NetSNMP.hsc:223: error: 'ASN_EXTENSION_ID' undeclared (first use in this function) NetSNMP.hsc:226: error: 'ASN_BIT8' undeclared (first use in this function) NetSNMP.hsc:229: error: 'ASN_IPADDRESS' undeclared (first use in this function) NetSNMP.hsc:232: error: 'ASN_COUNTER' undeclared (first use in this function) NetSNMP.hsc:235: error: 'ASN_GAUGE' undeclared (first use in this function) NetSNMP.hsc:238: error: 'ASN_UNSIGNED' undeclared (first use in this function) NetSNMP.hsc:241: error: 'ASN_TIMETICKS' undeclared (first use in this function) NetSNMP.hsc:244: error: 'ASN_OPAQUE' undeclared (first use in this function) NetSNMP.hsc:247: error: 'ASN_NSAP' undeclared (first use in this function) NetSNMP.hsc:250: error: 'ASN_COUNTER64' undeclared (first use in this function) NetSNMP.hsc:253: error: 'ASN_UINTEGER' undeclared (first use in this function) NetSNMP.hsc:256: error: 'ASN_FLOAT' undeclared (first use in this function) NetSNMP.hsc:259: error: 'ASN_DOUBLE' undeclared (first use in this function) NetSNMP.hsc:262: error: 'ASN_INTEGER64' undeclared (first use in this function) NetSNMP.hsc:265: error: 'ASN_UNSIGNED64' undeclared (first use in this function) NetSNMP.hsc:222: error: 'SNMP_MSG_GET' undeclared (first use in this function) NetSNMP.hsc:225: error: 'SNMP_MSG_GETNEXT' undeclared (first use in this function) NetSNMP.hsc:228: error: 'SNMP_MSG_RESPONSE' undeclared (first use in this function) NetSNMP.hsc:231: error: 'SNMP_MSG_SET' undeclared (first use in this function) NetSNMP.hsc:234: error: 'SNMP_MSG_TRAP' undeclared (first use in this function) NetSNMP.hsc:237: error: 'SNMP_MSG_GETBULK' undeclared (first use in this function) NetSNMP.hsc:240: error: 'SNMP_MSG_INFORM' undeclared (first use in this function) NetSNMP.hsc:243: error: 'SNMP_MSG_TRAP2' undeclared (first use in this function) NetSNMP.hsc:246: error: 'SNMP_MSG_REPORT' undeclared (first use in this function) NetSNMP.hsc:238: error: 'STAT_SUCCESS' undeclared (first use in this function) NetSNMP.hsc:241: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) NetSNMP.hsc:243: error: 'MAX_OID_LEN' undeclared (first use in this function) NetSNMP.hsc:462: error: 'oid' undeclared (first use in this function) NetSNMP.hsc:557: error: invalid use of undefined type 'struct snmp_pdu' NetSNMP.hsc:560: error: invalid use of undefined type 'struct snmp_pdu' NetSNMP.hsc:563: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:566: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:569: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:572: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:575: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:578: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:581: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:584: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:587: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:590: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:593: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:596: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:599: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:602: error: invalid use of undefined type 'struct snmp_pdu' NetSNMP.hsc:605: error: invalid use of undefined type 'struct snmp_pdu' compiling dist/build/Network/Protocol/NetSNMP_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=610 -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR -I/usr/local/lib/ghc-6.10.2/hsc2hs-0.67/../include/ dist/build/Network/Protocol/NetSNMP_hsc_make.c -o dist/build/Network/Protocol/NetSNMP_hsc_make.o *** Trying again with preferred-versions *** setup configure Configuring NetSNMP-0.1.0... Dependency base -any && <4: using base-3.0.3.1 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/NetSNMP-0.1.0/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/NetSNMP-0.1.0 Documentation installed in: /usr/local/tmp/archive/install/share/doc/NetSNMP-0.1.0 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library NetSNMP-0.1.0... Creating dist/build/Network/Protocol (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lnetsnmp --cflag=-I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.2/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.2/base-3.0.3.1 --lflag=-L/usr/local/lib/ghc-6.10.2/syb-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/base-4.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2/integer-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Network/Protocol/NetSNMP.hs src/Network/Protocol/NetSNMP.hsc NetSNMP.hsc:61:38: error: net-snmp/net-snmp-config.h: No such file or directory NetSNMP.hsc:62:40: error: net-snmp/net-snmp-includes.h: No such file or directory NetSNMP.hsc: In function 'main': NetSNMP.hsc:85: error: invalid application of 'sizeof' to incomplete type 'struct snmp_session' NetSNMP.hsc:90: error: invalid application of 'sizeof' to incomplete type 'struct snmp_pdu' NetSNMP.hsc:165: error: 'SNMP_VERSION_1' undeclared (first use in this function) NetSNMP.hsc:165: error: (Each undeclared identifier is reported only once NetSNMP.hsc:165: error: for each function it appears in.) NetSNMP.hsc:169: error: 'SNMP_VERSION_2c' undeclared (first use in this function) NetSNMP.hsc:174: error: 'SNMP_VERSION_3' undeclared (first use in this function) NetSNMP.hsc:178: error: 'ASN_BOOLEAN' undeclared (first use in this function) NetSNMP.hsc:181: error: 'ASN_INTEGER' undeclared (first use in this function) NetSNMP.hsc:184: error: 'ASN_BIT_STR' undeclared (first use in this function) NetSNMP.hsc:187: error: 'ASN_OCTET_STR' undeclared (first use in this function) NetSNMP.hsc:190: error: 'ASN_NULL' undeclared (first use in this function) NetSNMP.hsc:193: error: 'ASN_OBJECT_ID' undeclared (first use in this function) NetSNMP.hsc:196: error: 'ASN_SEQUENCE' undeclared (first use in this function) NetSNMP.hsc:199: error: 'ASN_SET' undeclared (first use in this function) NetSNMP.hsc:202: error: 'ASN_UNIVERSAL' undeclared (first use in this function) NetSNMP.hsc:205: error: 'ASN_APPLICATION' undeclared (first use in this function) NetSNMP.hsc:208: error: 'ASN_CONTEXT' undeclared (first use in this function) NetSNMP.hsc:211: error: 'ASN_PRIVATE' undeclared (first use in this function) NetSNMP.hsc:214: error: 'ASN_PRIMITIVE' undeclared (first use in this function) NetSNMP.hsc:217: error: 'ASN_CONSTRUCTOR' undeclared (first use in this function) NetSNMP.hsc:220: error: 'ASN_LONG_LEN' undeclared (first use in this function) NetSNMP.hsc:223: error: 'ASN_EXTENSION_ID' undeclared (first use in this function) NetSNMP.hsc:226: error: 'ASN_BIT8' undeclared (first use in this function) NetSNMP.hsc:229: error: 'ASN_IPADDRESS' undeclared (first use in this function) NetSNMP.hsc:232: error: 'ASN_COUNTER' undeclared (first use in this function) NetSNMP.hsc:235: error: 'ASN_GAUGE' undeclared (first use in this function) NetSNMP.hsc:238: error: 'ASN_UNSIGNED' undeclared (first use in this function) NetSNMP.hsc:241: error: 'ASN_TIMETICKS' undeclared (first use in this function) NetSNMP.hsc:244: error: 'ASN_OPAQUE' undeclared (first use in this function) NetSNMP.hsc:247: error: 'ASN_NSAP' undeclared (first use in this function) NetSNMP.hsc:250: error: 'ASN_COUNTER64' undeclared (first use in this function) NetSNMP.hsc:253: error: 'ASN_UINTEGER' undeclared (first use in this function) NetSNMP.hsc:256: error: 'ASN_FLOAT' undeclared (first use in this function) NetSNMP.hsc:259: error: 'ASN_DOUBLE' undeclared (first use in this function) NetSNMP.hsc:262: error: 'ASN_INTEGER64' undeclared (first use in this function) NetSNMP.hsc:265: error: 'ASN_UNSIGNED64' undeclared (first use in this function) NetSNMP.hsc:222: error: 'SNMP_MSG_GET' undeclared (first use in this function) NetSNMP.hsc:225: error: 'SNMP_MSG_GETNEXT' undeclared (first use in this function) NetSNMP.hsc:228: error: 'SNMP_MSG_RESPONSE' undeclared (first use in this function) NetSNMP.hsc:231: error: 'SNMP_MSG_SET' undeclared (first use in this function) NetSNMP.hsc:234: error: 'SNMP_MSG_TRAP' undeclared (first use in this function) NetSNMP.hsc:237: error: 'SNMP_MSG_GETBULK' undeclared (first use in this function) NetSNMP.hsc:240: error: 'SNMP_MSG_INFORM' undeclared (first use in this function) NetSNMP.hsc:243: error: 'SNMP_MSG_TRAP2' undeclared (first use in this function) NetSNMP.hsc:246: error: 'SNMP_MSG_REPORT' undeclared (first use in this function) NetSNMP.hsc:238: error: 'STAT_SUCCESS' undeclared (first use in this function) NetSNMP.hsc:241: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) NetSNMP.hsc:243: error: 'MAX_OID_LEN' undeclared (first use in this function) NetSNMP.hsc:462: error: 'oid' undeclared (first use in this function) NetSNMP.hsc:557: error: invalid use of undefined type 'struct snmp_pdu' NetSNMP.hsc:560: error: invalid use of undefined type 'struct snmp_pdu' NetSNMP.hsc:563: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:566: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:569: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:572: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:575: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:578: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:581: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:584: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:587: error: invalid use of undefined type 'struct variable_list' NetSNMP.hsc:590: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:593: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:596: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:599: error: invalid use of undefined type 'struct snmp_session' NetSNMP.hsc:602: error: invalid use of undefined type 'struct snmp_pdu' NetSNMP.hsc:605: error: invalid use of undefined type 'struct snmp_pdu' compiling dist/build/Network/Protocol/NetSNMP_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=610 -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR -I/usr/local/lib/ghc-6.10.2/hsc2hs-0.67/../include/ dist/build/Network/Protocol/NetSNMP_hsc_make.c -o dist/build/Network/Protocol/NetSNMP_hsc_make.o