And sparc64, and probably every other 64-bit platform. Nasty case of int cast to pointer. Broken since at least 4.9, probably since ALSR?
The following works on amd64 and sparc64. I wasn't sure if I should add the REVISION as 0 or 1, so I made a guess. Thanks, Kent Index: Makefile =================================================================== RCS file: /cvs/ports/net/nbtscan/Makefile,v retrieving revision 1.11 diff -u -p -r1.11 Makefile --- Makefile 11 Mar 2013 11:35:49 -0000 1.11 +++ Makefile 12 Mar 2014 19:37:56 -0000 @@ -3,6 +3,7 @@ COMMENT= NetBIOS name network scanner DISTNAME= nbtscan-1.5.1 +REVISION= 1 CATEGORIES= net MASTER_SITES= http://www.inetcat.net/software/ Index: patches/patch-statusq_h =================================================================== RCS file: patches/patch-statusq_h diff -N patches/patch-statusq_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-statusq_h 12 Mar 2014 19:37:56 -0000 @@ -0,0 +1,11 @@ +$OpenBSD$ +--- statusq.h.orig Thu May 23 04:31:35 2002 ++++ statusq.h Wed Mar 12 11:58:56 2014 +@@ -103,4 +103,7 @@ + char* service_name; + } nb_service_t ; + ++struct nb_host_info* parse_response(char*, int); ++char* getnbservicename(my_uint8_t, int, char*); ++ + #endif /* STATUSQ_H */