=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/libnet10", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for libnet10-1.0.2anb3 --- version.h --- --- src/libnet_resolve.o --- /var/tmp/work/devel/libnet10/work/.cwrapper/bin/libtool --mode=compile clang -pipe -Os -DHAVE_CONFIG_H -c src/libnet_resolve.c --- version.h --- sed -e 's/.*/#define VERSION "&"/' ./VERSION > version.h --- src/libnet_socket.o --- /var/tmp/work/devel/libnet10/work/.cwrapper/bin/libtool --mode=compile clang -pipe -Os -DHAVE_CONFIG_H -c src/libnet_socket.c --- src/libnet_resolve.o --- libtool: compile: clang -pipe -Os -DHAVE_CONFIG_H -c src/libnet_resolve.c -fno-common -DPIC -o .libs/libnet_resolve.o --- src/libnet_socket.o --- libtool: compile: clang -pipe -Os -DHAVE_CONFIG_H -c src/libnet_socket.c -fno-common -DPIC -o .libs/libnet_socket.o In file included from src/libnet_socket.c:36: In file included from src/../include/libnet.h:77: --- src/libnet_resolve.o --- In file included from src/libnet_resolve.c:36: In file included from src/../include/libnet.h:77: --- src/libnet_socket.o --- src/../include/./libnet/libnet-headers.h:392:8: error: redefinition of 'ether_addr' --- src/libnet_resolve.o --- src/../include/./libnet/libnet-headers.h:392:8: error: redefinition of 'ether_addr' --- src/libnet_socket.o --- 392 | struct ether_addr | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/net/ethernet.h:94:17: note: previous definition is here --- src/libnet_resolve.o --- 392 | struct ether_addr | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/net/ethernet.h:94:17: note: previous definition is here --- src/libnet_socket.o --- 94 | typedef struct ether_addr { | ^ --- src/libnet_resolve.o --- 94 | 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] 66 | sprintf(((which % 2) ? hostname : hostname2), "%d.%d.%d.%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:28: note: expanded from macro 'sprintf' --- src/libnet_socket.o --- 1 error generated. --- src/libnet_resolve.o --- 50 | __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] 71 | strncpy(((which % 2) ? hostname : hostname2), host_ent->h_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' 128 | __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] 94 | sprintf(hostname, "%d.%d.%d.%d", | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:28: note: expanded from macro 'sprintf' 50 | __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] 100 | strncpy(hostname, host_ent->h_name, sizeof(hostname)); | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' 128 | __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] 100 | strncpy(hostname, host_ent->h_name, sizeof(hostname)); | ~~~~~~~~ ^~~~~~~~ src/libnet_resolve.c:100:52: note: did you mean to provide an explicit length? 100 | 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] 116 | if ((addr.s_addr = inet_addr(host_name)) == -1) | ^~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/arpa/inet.h:78:34: note: passing argument to parameter here 78 | 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] 118 | if (!(host_ent = gethostbyname(host_name))) | ^~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/netdb.h:275:43: note: passing argument to parameter here 275 | struct hostent *gethostbyname(const char *); | ^ 7 warnings and 1 error generated. --- src/libnet_socket.o --- *** [src/libnet_socket.o] Error code 1 bmake: stopped making "all" in /var/tmp/work/devel/libnet10/work/Libnet-1.0.2a --- src/libnet_resolve.o --- *** [src/libnet_resolve.o] Error code 1 bmake: stopped making "all" in /var/tmp/work/devel/libnet10/work/Libnet-1.0.2a bmake: 2 errors bmake: stopped making "all" in /var/tmp/work/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