WARNING: [license.mk] Every package should define a LICENSE. ===> Building for nam-1.15nb9 rm -f tkcompat.o; clang -o tkcompat.o -c -pipe -Os -I/opt/pkg/include -fpermissive -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_14 -DHAVE_OTCL_H -DHAVE_LIBTK8_6 -DHAVE_TK_H -DHAVE_LIBTCL8_6 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_LIBZ1_2_3 -DHAVE_ZLIB_H -I. -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/tcl/generic -I/opt/pkg/include -I/opt/pkg/include tkcompat.c rm -f tkUnixInit.o; clang -o tkUnixInit.o -c -pipe -Os -I/opt/pkg/include -fpermissive -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_14 -DHAVE_OTCL_H -DHAVE_LIBTK8_6 -DHAVE_TK_H -DHAVE_LIBTCL8_6 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_LIBZ1_2_3 -DHAVE_ZLIB_H -I. -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/tcl/generic -I/opt/pkg/include -I/opt/pkg/include tkUnixInit.c rm -f xwd.o; clang -o xwd.o -c -pipe -Os -I/opt/pkg/include -fpermissive -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_14 -DHAVE_OTCL_H -DHAVE_LIBTK8_6 -DHAVE_TK_H -DHAVE_LIBTCL8_6 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_LIBZ1_2_3 -DHAVE_ZLIB_H -I. -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/tcl/generic -I/opt/pkg/include -I/opt/pkg/include xwd.c xwd.c:143:16: warning: cast to 'Tk_FakeWin *' (aka 'struct Tk_FakeWin *') from smaller integer type 'int' [-Wint-to-pointer-cast] Visual *vis = Tk_Visual(tk); ^~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tk.h:725:28: note: expanded from macro 'Tk_Visual' #define Tk_Visual(tkwin) (((Tk_FakeWin *) (tkwin))->visual) ^~~~~~~~~~~~~~~~~~~~~~ xwd.c:181:15: warning: cast to 'Tk_FakeWin *' (aka 'struct Tk_FakeWin *') from smaller integer type 'int' [-Wint-to-pointer-cast] XQueryColors(Tk_Display(tk), cmap, *colors, ncolors); ^~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tk.h:720:29: note: expanded from macro 'Tk_Display' #define Tk_Display(tkwin) (((Tk_FakeWin *) (tkwin))->display) ^~~~~~~~~~~~~~~~~~~~~~ xwd.c:204:23: warning: incompatible pointer to integer conversion passing 'Tk_Window' (aka 'struct Tk_Window_ *') to parameter of type 'int' [-Wint-conversion] ncolors = ReadColors(tk,cmap,colors) ; ^~ 3 warnings generated. rm -f netview.o; clang++ -o netview.o -c -pipe -Os -I/opt/pkg/include -fpermissive -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_14 -DHAVE_OTCL_H -DHAVE_LIBTK8_6 -DHAVE_TK_H -DHAVE_LIBTCL8_6 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_LIBZ1_2_3 -DHAVE_ZLIB_H -I. -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/tcl/generic -I/opt/pkg/include -I/opt/pkg/include netview.cc In file included from netview.cc:51: ./node.h:280:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "box";} ^ ./node.h:291:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "circle";} ^ ./node.h:302:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "hexagon";} ^ ./node.h:318:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "virtual";} ^ 4 warnings generated. rm -f netmodel.o; clang++ -o netmodel.o -c -pipe -Os -I/opt/pkg/include -fpermissive -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_14 -DHAVE_OTCL_H -DHAVE_LIBTK8_6 -DHAVE_TK_H -DHAVE_LIBTCL8_6 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_LIBZ1_2_3 -DHAVE_ZLIB_H -I. -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include/tcl/generic -I/opt/pkg/include -I/opt/pkg/include netmodel.cc In file included from netmodel.cc:52: ./tag.h:75:39: warning: cast to 'const char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] return (Tcl_FindHashEntry(mbrHash_, (const char *)id) != NULL); ^~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2570:53: note: expanded from macro 'Tcl_FindHashEntry' (*((tablePtr)->findProc))(tablePtr, (const char *)(key)) ^~~ In file included from netmodel.cc:57: In file included from ./lan.h:45: ./node.h:280:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "box";} ^ ./node.h:291:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "circle";} ^ ./node.h:302:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "hexagon";} ^ ./node.h:318:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *style() {return "virtual";} ^ netmodel.cc:297:34: warning: cast to 'const char *' from smaller integer type 'int' [-Wint-to-pointer-cast] Tcl_CreateHashEntry(addrHash_, (const char *)addr, &newEntry); ^~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2573:55: note: expanded from macro 'Tcl_CreateHashEntry' (*((tablePtr)->createProc))(tablePtr, (const char *)(key), newPtr) ^~~ netmodel.cc:301:24: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Tcl_SetHashValue(he, (ClientData)id); ^~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2556:64: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (void *)(value)) ^~~~~ netmodel.cc:301:3: error: assigning to 'ClientData' (aka 'int *') from incompatible type 'void *' Tcl_SetHashValue(he, (ClientData)id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2556:55: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (void *)(value)) ^~~~~~~~~~~~~~~ netmodel.cc:308:51: warning: cast to 'const char *' from smaller integer type 'int' [-Wint-to-pointer-cast] Tcl_HashEntry *he = Tcl_FindHashEntry(addrHash_, (const char *)addr); ^~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2570:53: note: expanded from macro 'Tcl_FindHashEntry' (*((tablePtr)->findProc))(tablePtr, (const char *)(key)) ^~~ netmodel.cc:965:7: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete mbr; ^ [] netmodel.cc:943:18: note: allocated with 'new[]' here int *mbr = new int[grp->size()]; ^ netmodel.cc:1117:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] ehn->edge->set_down("red"); ^ netmodel.cc:1118:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] ehnrev->edge->set_down("red"); ^ netmodel.cc:1142:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] ehn->edge->set_down("red"); ^ netmodel.cc:1143:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] ehnrev->edge->set_down("red"); ^ netmodel.cc:1180:29: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] n->set_down("gray"); ^ netmodel.cc:1196:29: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] n->set_down("gray"); ^ netmodel.cc:1659:42: warning: cast to 'const char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] (const char *)grp->addr(), ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2573:55: note: expanded from macro 'Tcl_CreateHashEntry' (*((tablePtr)->createProc))(tablePtr, (const char *)(key), newPtr) ^~~ netmodel.cc:1664:3: error: assigning to 'ClientData' (aka 'int *') from incompatible type 'void *' Tcl_SetHashValue(he, (ClientData)grp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2556:55: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (void *)(value)) ^~~~~~~~~~~~~~~ netmodel.cc:1672:50: warning: cast to 'const char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] Tcl_HashEntry *he = Tcl_FindHashEntry(grpHash_, (const char *)addr); ^~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2570:53: note: expanded from macro 'Tcl_FindHashEntry' (*((tablePtr)->findProc))(tablePtr, (const char *)(key)) ^~~ netmodel.cc:1919:7: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete line; ^ [] netmodel.cc:1915:21: note: allocated with 'new[]' here char * line = new char[strlen(argv[2])]; ^ netmodel.cc:2706:5: error: assigning to 'ClientData' (aka 'int *') from incompatible type 'void *' Tcl_SetHashValue(he, (ClientData)tag); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2556:55: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (void *)(value)) ^~~~~~~~~~~~~~~ netmodel.cc:2745:24: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Tcl_SetHashValue(he, (ClientData)id); ^~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2556:64: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (void *)(value)) ^~~~~ netmodel.cc:2745:3: error: assigning to 'ClientData' (aka 'int *') from incompatible type 'void *' Tcl_SetHashValue(he, (ClientData)id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/net/nam/work/.buildlink/include/tcl.h:2556:55: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (void *)(value)) ^~~~~~~~~~~~~~~ 19 warnings and 4 errors generated. *** [netmodel.o] Error code 1 bmake: stopped making "nam" in /Users/pbulk/build/net/nam/work/nam-1.15 bmake: 1 error bmake: stopped making "nam" in /Users/pbulk/build/net/nam/work/nam-1.15 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/nam *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/nam