Hej this fixes the build problem with libX11 on NetBSD 9.x with X11_TYPE=modular too. In file included from CvCols.c:42: CvCols.c: In function 'XcmsConvertColors': ../../src/reallocarray.h:41:38: error: implicit declaration of function 'reallocarray'; did you mean 'Xreallocarray'? [-Werror=implicit-function-declaration] 41 | # define Xreallocarray(ptr, n, size) reallocarray((ptr), (n), (size)) | ^~~~~~~~~~~~ ../../src/reallocarray.h:44:32: note: in expansion of macro 'Xreallocarray' 44 | #define Xmallocarray(n, size) Xreallocarray(NULL, (n), (size)) | ^~~~~~~~~~~~~ CvCols.c:800:16: note: in expansion of macro 'Xmallocarray' 800 | pColors_tmp = Xmallocarray(nColors, sizeof(XcmsColor)); | ^~~~~~~~~~~~ ../../src/reallocarray.h:41:38: warning: nested extern declaration of 'reallocarray' [-Wnested-externs] 41 | # define Xreallocarray(ptr, n, size) reallocarray((ptr), (n), (size)) | ^~~~~~~~~~~~ ../../src/reallocarray.h:44:32: note: in expansion of macro 'Xreallocarray' 44 | #define Xmallocarray(n, size) Xreallocarray(NULL, (n), (size)) | ^~~~~~~~~~~~~ CvCols.c:800:16: note: in expansion of macro 'Xmallocarray' 800 | pColors_tmp = Xmallocarray(nColors, sizeof(XcmsColor)); | ^~~~~~~~~~~~ CvCols.c:800:14: warning: assignment to 'XcmsColor *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 800 | pColors_tmp = Xmallocarray(nColors, sizeof(XcmsColor)); | ^ cc1: some warnings being treated as errors gmake[3]: *** [Makefile:625: CvCols.lo] Error 1 gmake[3]: Leaving directory '/usr/pbulk/x11/libX11/work/libX11-1.8.4/src/xcms'
# cvs diff Makefile Index: Makefile =================================================================== RCS file: /cvsroot/pkgsrc/x11/libX11/Makefile,v retrieving revision 1.70 diff -r1.70 Makefile 24a25 > CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE Could someone please update pkgsrc to fix this? Cheers Oskar |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature