Package: moreutils Version: 0.39 The other parts of moreutils build fine on Mac OS X 10.6.2 Snow Leopard with Xcode 3.2.1, but ifdata does not:
/usr/bin/gcc-4.2 -O2 ifdata.c -o ifdata ifdata.c: In function 'print_quad': ifdata.c:85: error: 'struct in6_addr' has no member named 's6_addr16' ifdata.c: At top level: ifdata.c:104: warning: 'struct ifreq' declared inside parameter list ifdata.c:104: warning: its scope is only this definition or declaration, which is probably not what you want ifdata.c: In function 'do_socket_ioctl': ifdata.c:109: error: dereferencing pointer to incomplete type ifdata.c:109: error: dereferencing pointer to incomplete type ifdata.c:109: error: 'IFNAMSIZ' undeclared (first use in this function) ifdata.c:109: error: (Each undeclared identifier is reported only once ifdata.c:109: error: for each function it appears in.) ifdata.c:109: error: dereferencing pointer to incomplete type ifdata.c:109: error: dereferencing pointer to incomplete type ifdata.c:110: error: dereferencing pointer to incomplete type ifdata.c: In function 'if_exists': ifdata.c:127: error: storage size of 'r' isn't known ifdata.c:128: error: invalid application of 'sizeof' to incomplete type 'struct ifreq' ifdata.c: At top level: ifdata.c:183: warning: 'struct ifreq' declared inside parameter list ifdata.c: In function 'if_addr_value': ifdata.c:186: warning: passing argument 3 of 'do_socket_ioctl' from incompatible pointer type ifdata.c:188: error: dereferencing pointer to incomplete type ifdata.c:191: error: dereferencing pointer to incomplete type ifdata.c: At top level: ifdata.c:194: warning: 'struct ifreq' declared inside parameter list ifdata.c: In function 'if_addr': ifdata.c:195: error: invalid application of 'sizeof' to incomplete type 'struct ifreq' ifdata.c:195: warning: passing argument 2 of 'if_addr_value' from incompatible pointer type ifdata.c: At top level: ifdata.c:198: warning: 'struct ifreq' declared inside parameter list ifdata.c: In function 'if_mask': ifdata.c:199: error: invalid application of 'sizeof' to incomplete type 'struct ifreq' ifdata.c:199: warning: passing argument 2 of 'if_addr_value' from incompatible pointer type ifdata.c: At top level: ifdata.c:202: warning: 'struct ifreq' declared inside parameter list ifdata.c: In function 'if_bcast': ifdata.c:203: error: invalid application of 'sizeof' to incomplete type 'struct ifreq' ifdata.c:203: warning: passing argument 2 of 'if_addr_value' from incompatible pointer type ifdata.c: In function 'if_network': ifdata.c:208: error: storage size of 'req' isn't known ifdata.c: In function 'if_mtu': ifdata.c:224: error: storage size of 'req' isn't known ifdata.c:226: error: invalid application of 'sizeof' to incomplete type 'struct ifreq' ifdata.c: In function 'please_do': ifdata.c:363: error: storage size of 'req' isn't known make: *** [ifdata] Error 1 I can work around "error: 'struct in6_addr' has no member named 's6_addr16'" by adding "-Ds6_addr16=__u6_addr.__u6_addr16" to the CFLAGS, as I learned here: http://wald.intevation.org/tracker/index.php?func=detail&aid=1233&group_id=29&atid=220 However, I don't know what to do about the rest. If ifdata can be made to compile and run on Mac OS X, that would be great. If not, it would be nice if the Makefile wouldn't attempt to make ifdata on Mac OS X. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

