===> Building for libnet10-1.0.2anb3 sed -e 's/.*/#define VERSION "&"/' ./VERSION > version.h /Users/pbulk/build/devel/libnet10/work/.cwrapper/bin/libtool --mode=compile clang -pipe -Os -DHAVE_CONFIG_H -c src/libnet_resolve.c libtool: compile: clang -pipe -Os -DHAVE_CONFIG_H -c src/libnet_resolve.c -fno-common -DPIC -o .libs/libnet_resolve.o In file included from src/libnet_resolve.c:36: In file included from src/../include/libnet.h:77: src/../include/./libnet/libnet-headers.h:392:8: error: redefinition of 'ether_addr' struct ether_addr ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/net/ethernet.h:94:17: note: previous definition is here typedef struct ether_addr { ^ src/libnet_resolve.c:66:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(((which % 2) ? hostname : hostname2), "%d.%d.%d.%d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ src/libnet_resolve.c:71:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(((which % 2) ? hostname : hostname2), host_ent->h_name, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ src/libnet_resolve.c:94:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(hostname, "%d.%d.%d.%d", ^~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ src/libnet_resolve.c:100:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(hostname, host_ent->h_name, sizeof(hostname)); ^~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ src/libnet_resolve.c:100:52: warning: 'strncpy' call operates on objects of type 'u_char' (aka 'unsigned char') while the size is based on a different type 'u_char *' (aka 'unsigned char *') [-Wsizeof-pointer-memaccess] strncpy(hostname, host_ent->h_name, sizeof(hostname)); ~~~~~~~~ ^~~~~~~~ src/libnet_resolve.c:100:52: note: did you mean to provide an explicit length? strncpy(hostname, host_ent->h_name, sizeof(hostname)); ^~~~~~~~ src/libnet_resolve.c:116:38: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((addr.s_addr = inet_addr(host_name)) == -1) ^~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/arpa/inet.h:75:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ src/libnet_resolve.c:118:44: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!(host_ent = gethostbyname(host_name))) ^~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/netdb.h:275:43: note: passing argument to parameter here struct hostent *gethostbyname(const char *); ^ 7 warnings and 1 error generated. *** [src/libnet_resolve.o] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/devel/libnet10/work/Libnet-1.0.2a bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/devel/libnet10/work/Libnet-1.0.2a *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/libnet10 *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/libnet10