From: SourceForge.net <no...@so...> - 2004-07-19 16:07:59
|
Bugs item #992735, was opened at 2004-07-16 23:43 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=992735&group_id=12694 Category: library Group: macOS Status: Open Resolution: None Priority: 5 Submitted By: blakers (blakers) Assigned to: Nobody/Anonymous (nobody) Summary: OSX 10.3.4 make fails w/ struct typedef error Initial Comment: "OSX 10.3.4 make fails w/ struct typedef error" MacOSX 10.3.4 & net-snmp CVS-HEAD (07/16/04 22:20:37) minor edits: ========================================== (EDITOR) agent/mibgroup/mibII/tcpTable.c @ 698 --- #if defined(freebsd4) +++ #if defined(freebsd4) || defined(freebsd5) || defined(darwin7) #define NS_ELEM struct xtcpcb #else /* this is the original value */ #define NS_ELEM struct xinpcb #endif ========================================== ========================================== (EDITOR) include/net-snmp/agent/snmp_vars.h @ 75 struct nlist; +++ #include <stdint.h> extern long long_return; extern uint32_t ipaddr_return; extern u_char return_buf[]; ========================================== configure completes successfully ... ./configure --prefix=/usr/local --enable-shared --with-libwrap --with-defaults --disable-ipv6 --with-default-snmp-version=3 --with-persistent-directory=/var/db/ucd-snmp --with-openssl=/usr/local/ssl --with-logfile="/var/log/snmpd.log" --with-transports="UDP TCP Unix TCPIPv6 UDPIPv6 Callback" --with-mib-modules="host disman/event-mib mibII/mta_sendmail" --with-perl-modules --enable-embedded-perl --------------------------------------------------------- Net-SNMP configuration summary: --------------------------------------------------------- SNMP Versions Supported: 1 2c 3 Net-SNMP Version: 5.2.dev Building for: darwin7 Network transport support: UDP TCP Unix TCPIPv6 UDPIPv6 Callback SNMPv3 Security Modules: usm Agent MIB code: mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities host disman/event-mib mibII/mta_sendmail SNMP Perl modules: building -- embeddable Embedded perl support: enabled Authentication support: MD5 SHA1 Encryption support: DES AES --------------------------------------------------------- make i see a # of warnings abt ssl during make; dunno if a problem ... In file included from /usr/local/ssl/include/openssl/ui_compat.h: 63, from /usr/local/ssl/include/openssl/des_old.h: 439, from /usr/local/ssl/include/openssl/des.h:101, from /usr/local/ssl/include/openssl/evp.h:93, from /usr/local/ssl/include/openssl/hmac.h: 65, from scapi.c:70: /usr/local/ssl/include/openssl/ui.h:220: warning: function declaration isn't a prototype In file included from /usr/local/ssl/include/openssl/rsa.h:62, from /usr/local/ssl/include/openssl/evp.h:137, from /usr/local/ssl/include/openssl/hmac.h: 65, from scapi.c:70: /usr/local/ssl/include/openssl/asn1.h:478: warning: function declaration isn't a prototype /usr/local/ssl/include/openssl/asn1.h:479: warning: function declaration isn't a prototype <repeat ~ 20 times ...> make eventually fails at: rm -f mibII/.libs/at.lo gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../ snmplib -I/usr/local/ssl/include -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/ Library/Perl/5.8.4/darwin-thread-multi-2level/CORE -g -O2 -Ddarwin7 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno- char-subscripts -c mibII/at.c -fno-common -DPIC -o mibII/.libs/at.lo In file included from ../../include/net-snmp/data_access/net- snmp-data-access-includes.h:8, from ../../include/net-snmp/agent/net-snmp- agent-includes.h:21, from mibII/at.c:103: ../../include/net-snmp/data_access/interface.h:105: warning: no semicolon at end of struct or union ../../include/net-snmp/data_access/interface.h:105: error: parse error before '.' token ../../include/net-snmp/data_access/interface.h:110: error: parse error before '.' token ../../include/net-snmp/data_access/interface.h:112: error: parse error before '.' token ../../include/net-snmp/data_access/interface.h:135: error: parse error before '}' token ../../include/net-snmp/data_access/interface.h:135: warning: type defaults to `int' in declaration of `netsnmp_interface_entry' ../../include/net-snmp/data_access/interface.h:135: warning: data definition has no type or storage class ../../include/net-snmp/data_access/interface.h:179: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:180: warning: type defaults to `int' in declaration of `netsnmp_access_interface_entry_create' ../../include/net-snmp/data_access/interface.h:180: warning: data definition has no type or storage class ../../include/net-snmp/data_access/interface.h:182: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:182: warning: function declaration isn't a prototype ../../include/net-snmp/data_access/interface.h:187: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:189: warning: type defaults to `int' in declaration of `netsnmp_access_interface_entry_get_by_name' ../../include/net-snmp/data_access/interface.h:189: warning: data definition has no type or storage class ../../include/net-snmp/data_access/interface.h:190: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:192: warning: type defaults to `int' in declaration of `netsnmp_access_interface_entry_get_by_index' ../../include/net-snmp/data_access/interface.h:192: warning: data definition has no type or storage class ../../include/net-snmp/data_access/interface.h:202: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:203: warning: function declaration isn't a prototype ../../include/net-snmp/data_access/interface.h:205: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:205: warning: function declaration isn't a prototype ../../include/net-snmp/data_access/interface.h:206: error: parse error before '*' token ../../include/net-snmp/data_access/interface.h:206: warning: function declaration isn't a prototype mibII/at.c:482: warning: `arptab_size' defined but not used mibII/at.c:482: warning: `arptab_current' defined but not used make[2]: *** [mibII/at.lo] Error 1 make[1]: *** [subdirs] Error 1 make: *** [subdirs] Error 1 richard p.s. same problem occurs with configure w/ '--with-out-mib-modules="mibII/tcpTable mibII/udpTable"' ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-07-19 09:07 Message: Logged In: NO diffs to 5.1.2.pre3 for OS X 10.3.4 compile (possibly whitespace errors due to cut and paste): --- agent/mibgroup/mibII/tcpTable.c.orig Tue Jul 13 13:10:11 2004 +++ agent/mibgroup/mibII/tcpTable.c Tue Jul 13 13:10: 12 2004 @@ -695,7 +695,7 @@ #if (defined(CAN_USE_SYSCTL) && defined(TCPCTL_PCBLIST)) -#if defined(freebsd4) +#if (defined(freebsd4) || defined(darwin)) #define NS_ELEM struct xtcpcb #else #define NS_ELEM struct xinpcb --- agent/mibgroup/mibII/udpTable.c Tue Jun 8 13:50: 31 2004 +++ agent/mibgroup/mibII/udpTable.c Tue Jul 13 13:26: 18 2004 @@ -66,7 +66,7 @@ #define INP_NEXT_SYMBOL inp_next #endif -#ifdef freebsd4 +#if (defined(freebsd4) || defined(darwin)) typedef struct netsnmp_inpcb_s netsnmp_inpcb; struct netsnmp_inpcb_s { struct inpcb pcb; @@ -623,7 +623,7 @@ nnew = SNMP_MALLOC_TYPEDEF(UDPTABLE_ENTRY_TYPE); if (!nnew) break; -#ifdef freebsd4 +#if (defined(freebsd4) || defined(darwin)) memcpy(nnew, &((struct xinpcb *) xig)->xi_inp, sizeof(struct inpcb)); nnew->inp_next = udp_head; #else ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=992735&group_id=12694 |