On Saturday, January 18, 2003, at 06:33 AM, Ben Hines wrote:

On Thursday, January 16, 2003, at 10:00  PM, Jeremy Higgs wrote:

/usr/include/netinet/tcpip.h:66: field `ti_i' has incomplete type
mibII/tcp.c:278: warning: `struct tcpstat' declared inside parameter list

Just add
#include <netinet/tcp_var.h>
before the #include <netinet/tcpip.h>
Whoops:

gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -no-cpp-precomp -I/sw/include -g -O2 -Ddarwin6 -c mibII/tcp.c -fno-common -DPIC -o mibII/.libs/tcp.lo
mibII/tcp.c:104:29: netinet/tcp_var.h: No such file or directory
In file included from mibII/tcp.c:105:
/usr/include/netinet/tcpip.h:66: field `ti_i' has incomplete type
mibII/tcp.c:279: warning: `struct tcpstat' declared inside parameter list
mibII/tcp.c:279: warning: its scope is only this definition or declaration, which is probably not what you want
mibII/tcp.c: In function `var_tcp':
mibII/tcp.c:288: storage size of `tcpstat' isn't known
mibII/tcp.c:288: storage size of `tcpstat' isn't known
mibII/tcp.c: At top level:
mibII/tcp.c:465: warning: `struct tcpstat' declared inside parameter list
mibII/tcp.c:466: conflicting types for `read_tcp_stat'
mibII/tcp.c:279: previous declaration of `read_tcp_stat'
mibII/tcp.c: In function `read_tcp_stat':
mibII/tcp.c:587: dereferencing pointer to incomplete type
make[2]: *** [mibII/tcp.lo] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
### execution of make failed, exit code 2
Failed: compiling net-snmp-5.0.7-1 failed

So obviously tcp_var.h isn't included in 10.2.3... Is it in the JMH package, or a newer version of 10.2.x?



So obviously there's a problem with the tcpip.h header provided by Apple... Can anyone offer any solutions? I'm not quite sure how to tackle this...
No, some headers just have to have other headers included before them (lame, i agree)

-Ben



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to