On Sun, Mar 17, 2019 at 06:39:11PM +0000, Chavdar Ivanov wrote: > BTW I finally finished a full modular-xorg build. Starting some > tests now.
Perhaps I can follow in your footsteps. I started all over again Sunday morning: new install of -current, new cvs of pkgsrc, etc. I did quite well: $ pkg_info |grep ^modular modular-xorg-server-1.20.4 Modular X11 server from modular X.org modular-xorg-drivers-1.19.0nb4 Modular Xorg driver meta-package modular-xorg-libs-1.5nb1 Modular Xorg library meta-package modular-xorg-xephyr-1.20.4 Xephyr server based on kdrive from modular X.org However, a fly did find the ointment when it was lbxproxy's turn: "cc1: some warnings being treated as errors" I used to know what CFLAG will turn that off, but it's been a long time. Thanks if you can help get me over this hump. I'll stick the output in here: -- These are not the droids you are looking for.
Script started on Mon Mar 18 03:47:57 2019 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Installing dependencies for modular-xorg-1.12.4nb1 => Build dependency cwrappers>=20150314: found cwrappers-20180325 => Full dependency modular-xorg-server>=1.12.4: found modular-xorg-server-1.20.4 => Full dependency modular-xorg-drivers>=1.12: found modular-xorg-drivers-1.19.0nb4 => Full dependency modular-xorg-libs>=1.0: found modular-xorg-libs-1.5nb1 => Full dependency modular-xorg-apps>=1.5: NOT found => Verifying reinstall for ../../meta-pkgs/modular-xorg-apps ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Installing dependencies for modular-xorg-apps-1.14.1.8 => Build dependency cwrappers>=20150314: found cwrappers-20180325 => Full dependency xbiff-[0-9]*: found xbiff-1.0.3 => Full dependency twm-[0-9]*: found twm-1.0.10 => Full dependency appres-[0-9]*: found appres-1.0.5 => Full dependency bdftopcf-[0-9]*: found bdftopcf-1.1nb1 => Full dependency beforelight-[0-9]*: found beforelight-1.0.5 => Full dependency bitmap-[0-9]*: found bitmap-1.0.9 => Full dependency editres-[0-9]*: found editres-1.0.7 => Full dependency font-util-[0-9]*: found font-util-1.3.1 => Full dependency iceauth-[0-9]*: found iceauth-1.0.8nb1 => Full dependency ico-[0-9]*: found ico-1.0.5 => Full dependency listres-[0-9]*: found listres-1.0.4 => Full dependency luit-[0-9]*: found luit-2.0.20190106 => Full dependency mkcomposecache-[0-9]*: found mkcomposecache-1.2.1 => Full dependency modular-xorg-xephyr-[0-9]*: found modular-xorg-xephyr-1.20.4 => Full dependency oclock-[0-9]*: found oclock-1.0.4 => Full dependency lbxproxy-[0-9]*: NOT found => Verifying reinstall for ../../x11/lbxproxy => Bootstrap dependency digest>=20010302: found digest-20190127 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. => Checksum SHA1 OK for lbxproxy-1.0.3.tar.bz2 => Checksum RMD160 OK for lbxproxy-1.0.3.tar.bz2 => Checksum SHA512 OK for lbxproxy-1.0.3.tar.bz2 ===> Installing dependencies for lbxproxy-1.0.3nb2 => Tool dependency pkgconf-[0-9]*: found pkgconf-1.6.0 => Build dependency xorgproto>=2016.1: found xorgproto-2018.4 => Build dependency xcb-proto>=1.4: found xcb-proto-1.13 => Build dependency xtrans>=1.0.3: found xtrans-1.4.0 => Build dependency xorg-util-macros>=1.17: found xorg-util-macros-1.19.2 => Build dependency cwrappers>=20150314: found cwrappers-20180325 => Full dependency libICE>=0.99.1: found libICE-1.0.9nb1 => Full dependency libX11>=1.1: found libX11-1.6.7 => Full dependency liblbxutil>=1.1.0nb1: found liblbxutil-1.1.0nb2 => Full dependency libXext>=0.99.0: found libXext-1.3.4 ===> Overriding tools for lbxproxy-1.0.3nb2 ===> Extracting for lbxproxy-1.0.3nb2 ===> Patching for lbxproxy-1.0.3nb2 ===> Creating toolchain wrappers for lbxproxy-1.0.3nb2 ===> Configuring for lbxproxy-1.0.3nb2 => Modifying GNU configure scripts to avoid --recheck => Replacing config-guess with pkgsrc versions => Replacing config-sub with pkgsrc versions => Replacing install-sh with pkgsrc version checking build system type... x86_64--netbsd checking host system type... x86_64--netbsd checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... /usr/bin/awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for x86_64--netbsd-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether __clang__ is declared... no checking whether __INTEL_COMPILER is declared... no checking whether __SUNPRO_C is declared... no checking pkg-config is at least version 0.9.0... yes checking for a sed that does not truncate output... /usr/bin/sed checking if gcc supports -Werror=unknown-warning-option... no checking if gcc supports -Werror=unused-command-line-argument... no checking if gcc supports -Wall... yes checking if gcc supports -Wpointer-arith... yes checking if gcc supports -Wmissing-declarations... yes checking if gcc supports -Wformat=2... yes checking if gcc supports -Wstrict-prototypes... yes checking if gcc supports -Wmissing-prototypes... yes checking if gcc supports -Wnested-externs... yes checking if gcc supports -Wbad-function-cast... yes checking if gcc supports -Wold-style-definition... yes checking if gcc supports -Wdeclaration-after-statement... yes checking if gcc supports -Wunused... yes checking if gcc supports -Wuninitialized... yes checking if gcc supports -Wshadow... yes checking if gcc supports -Wcast-qual... yes checking if gcc supports -Wmissing-noreturn... yes checking if gcc supports -Wmissing-format-attribute... yes checking if gcc supports -Wredundant-decls... yes checking if gcc supports -Werror=implicit... yes checking if gcc supports -Werror=nonnull... yes checking if gcc supports -Werror=init-self... yes checking if gcc supports -Werror=main... yes checking if gcc supports -Werror=missing-braces... yes checking if gcc supports -Werror=sequence-point... yes checking if gcc supports -Werror=return-type... yes checking if gcc supports -Werror=trigraphs... yes checking if gcc supports -Werror=array-bounds... yes checking if gcc supports -Werror=write-strings... yes checking if gcc supports -Werror=address... yes checking if gcc supports -Werror=int-to-pointer-cast... yes checking if gcc supports -Werror=pointer-to-int-cast... yes checking if gcc supports -pedantic... yes checking if gcc supports -Werror... yes checking if gcc supports -Werror=attributes... yes checking for LBXPROXY... yes checking for X11/extensions/lbxproto.h... yes checking for X11/extensions/bigreqsproto.h... yes checking return type of signal handlers... void checking if Xtrans should support UNIX socket connections... yes checking if Xtrans should support TCP socket connections... yes checking for library containing socket... none required checking for library containing gethostbyname... none required checking for getaddrinfo... yes checking if IPv6 support should be built... yes checking for struct sockaddr_in.sin_len... yes checking for socklen_t... yes checking if Xtrans should support os-specific local connections... no configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands ===> Building for lbxproxy-1.0.3nb2 /usr/bin/make all-am CC atomcache.o CC cache.o CC cmap.o In file included from di/cmap.c:66:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/cmap.c:57:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ CC cmaputil.o CC dispatch.o In file included from di/dispatch.c:31:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/dispatch.c:28:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ di/dispatch.c:431:15: warning: redundant redeclaration of 'ZeroPadReqVector' [-Wredundant-decls] extern void (*ZeroPadReqVector[128])(void *); ^~~~~~~~~~~~~~~~ In file included from di/dispatch.c:31:0: ./include/lbxext.h:138:15: note: previous declaration of 'ZeroPadReqVector' was here extern void (*ZeroPadReqVector[128])(void *); ^~~~~~~~~~~~~~~~ CC extensions.o In file included from di/extensions.c:55:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/extensions.c:52:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ CC gfx.o In file included from di/gfx.c:65:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/gfx.c:58:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ CC globals.o CC init.o di/init.c: In function 'DisplayOpen': di/init.c:84:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] class.res_name = "lbxproxy"; ^ di/init.c:85:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] class.res_class = "LbxProxy"; ^ CC lbxfuncs.o In file included from di/lbxfuncs.c:52:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/lbxfuncs.c:43:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ di/lbxfuncs.c: In function 'get_setup_reply': di/lbxfuncs.c:238:41: warning: passing argument 5 of 'send_setup_reply' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] send_setup_reply(client, FALSE, 0, 0, "bad tag data from server", 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~ di/lbxfuncs.c:142:1: note: expected 'void *' but argument is of type 'const char *' send_setup_reply(ClientPtr client, Bool success, int majorVer, int minorVer, ^~~~~~~~~~~~~~~~ CC lbxutil.o In file included from di/lbxutil.c:41:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/lbxutil.c:34:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ CC main.o In file included from di/main.c:56:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/main.c:51:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ di/main.c: In function 'main': di/main.c:81:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] display = "63"; ^ CC options.o di/options.c: In function 'InitializeStreamComp': di/options.c:151:38: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] server->LbxStreamComp[0].type = ZLIB_STRCOMP_OPT; ^ di/options.c: In function 'InitializeBitmapCompMethod': di/options.c:160:48: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] server->LbxBitmapCompMethods[0].methodName = "XC-FaxG42D"; ^ di/options.c: In function 'InitializeCmpaAllMethods': di/options.c:197:45: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] server->LbxCmapAllMethods[0].methodName = "XC-CMAP"; ^ CC pm.o CC props.o CC reqtype.o CC resource.o CC swaprep.o CC swapreq.o CC tables.o CC tags.o CC unsquish.o CC utils.o In file included from di/utils.c:95:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/utils.c:55:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ <command-line>:0:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] <command-line>:0:16: note: in definition of macro 'DEF_ATOMS_FILE' di/utils.c: In function 'VErrorF': di/utils.c:662:5: warning: function 'VErrorF' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] vfprintf(stderr, f, args); ^~~~~~~~ di/utils.c: In function 'FatalError': di/utils.c:647:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] FatalError(const char *f, ...) ^~~~~~~~~~ CC wire.o In file included from di/wire.c:69:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/wire.c:50:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ CC zeropad.o In file included from di/zeropad.c:39:0: ./include/lbxext.h:133:12: warning: redundant redeclaration of 'ProcLBXQueryExtension' [-Wredundant-decls] extern int ProcLBXQueryExtension( ^~~~~~~~~~~~~~~~~~~~~ In file included from di/zeropad.c:38:0: ./include/lbxproxy.h:495:12: note: previous declaration of 'ProcLBXQueryExtension' was here extern int ProcLBXQueryExtension(ClientPtr client); ^~~~~~~~~~~~~~~~~~~~~ CC connection.o os/connection.c: In function 'CreateServerSockets': os/connection.c:261:7: error: implicit declaration of function '_LBXPROXYTransMakeAllCOTSServerListeners'; did you mean '_XTransMakeAllCOTSServerListeners'? [-Werror=implicit-function-declaration] if ((_LBXPROXYTransMakeAllCOTSServerListeners (display, &partial, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _XTransMakeAllCOTSServerListeners os/connection.c:261:7: warning: nested extern declaration of '_LBXPROXYTransMakeAllCOTSServerListeners' [-Wnested-externs] os/connection.c:317:26: error: implicit declaration of function '_LBXPROXYTransGetConnectionNumber'; did you mean '_XTransGetConnectionNumber'? [-Werror=implicit-function-declaration] fd = _LBXPROXYTransGetConnectionNumber ( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _XTransGetConnectionNumber os/connection.c:317:26: warning: nested extern declaration of '_LBXPROXYTransGetConnectionNumber' [-Wnested-externs] os/connection.c: In function 'CloseServerSockets': os/connection.c:353:2: error: implicit declaration of function '_LBXPROXYTransClose'; did you mean '_XTransClose'? [-Werror=implicit-function-declaration] _LBXPROXYTransClose (ListenTransConns[i]); ^~~~~~~~~~~~~~~~~~~ _XTransClose os/connection.c:353:2: warning: nested extern declaration of '_LBXPROXYTransClose' [-Wnested-externs] os/connection.c: In function 'EstablishNewConnections': os/connection.c:581:24: error: implicit declaration of function '_LBXPROXYTransAccept'; did you mean '_XTransAccept'? [-Werror=implicit-function-declaration] if ((new_trans_conn = _LBXPROXYTransAccept (trans_conn, &status)) == NULL) ^~~~~~~~~~~~~~~~~~~~ _XTransAccept os/connection.c:581:24: warning: nested extern declaration of '_LBXPROXYTransAccept' [-Wnested-externs] os/connection.c:581:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((new_trans_conn = _LBXPROXYTransAccept (trans_conn, &status)) == NULL) ^ os/connection.c:586:2: error: implicit declaration of function '_LBXPROXYTransSetOption'; did you mean '_XTransSetOption'? [-Werror=implicit-function-declaration] _LBXPROXYTransSetOption(new_trans_conn, TRANS_NONBLOCKING, 1); ^~~~~~~~~~~~~~~~~~~~~~~ _XTransSetOption os/connection.c:586:2: warning: nested extern declaration of '_LBXPROXYTransSetOption' [-Wnested-externs] os/connection.c: In function 'ErrorConnMax': os/connection.c:628:11: error: implicit declaration of function '_LBXPROXYTransRead'; did you mean '_XTransRead'? [-Werror=implicit-function-declaration] (void)_LBXPROXYTransRead(trans_conn, &byteOrder, 1); ^~~~~~~~~~~~~~~~~~ _XTransRead os/connection.c:628:11: warning: nested extern declaration of '_LBXPROXYTransRead' [-Wnested-externs] os/connection.c:646:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] iov[1].iov_base = NOROOM; ^ os/connection.c:649:8: error: implicit declaration of function '_LBXPROXYTransWritev'; did you mean '_XTransWritev'? [-Werror=implicit-function-declaration] (void)_LBXPROXYTransWritev(trans_conn, iov, 3); ^~~~~~~~~~~~~~~~~~~~ _XTransWritev os/connection.c:649:8: warning: nested extern declaration of '_LBXPROXYTransWritev' [-Wnested-externs] os/connection.c: In function 'CloseDownFileDescriptor': os/connection.c:666:9: error: implicit declaration of function '_LBXPROXYTransDisconnect'; did you mean '_XTransDisconnect'? [-Werror=implicit-function-declaration] _LBXPROXYTransDisconnect(oc->trans_conn); ^~~~~~~~~~~~~~~~~~~~~~~~ _XTransDisconnect os/connection.c:666:9: warning: nested extern declaration of '_LBXPROXYTransDisconnect' [-Wnested-externs] cc1: some warnings being treated as errors *** Error code 1 Stop. make[1]: stopped in /usr/pkgsrc/x11/lbxproxy/work/lbxproxy-1.0.3 *** Error code 1 Stop. make: stopped in /usr/pkgsrc/x11/lbxproxy/work/lbxproxy-1.0.3 *** Error code 1 Stop. make[3]: stopped in /usr/pkgsrc/x11/lbxproxy *** Error code 1 Stop. make[2]: stopped in /usr/pkgsrc/x11/lbxproxy *** Error code 1 Stop. make[1]: stopped in /usr/pkgsrc/meta-pkgs/modular-xorg-apps *** Error code 1 Stop. make: stopped in /usr/pkgsrc/meta-pkgs/modular-xorg Script done on Mon Mar 18 03:48:24 2019