NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: osabi in -current in some difficulty?



I installed ccache and made my /etc/mk.conf look like yours:

X11_TYPE=modular
CCACHE_DIR?=            /usr/pkg/.ccache
PKGSRC_COMPILER=        ccache gcc

...and cd'd to /usr/pkgsrc/x11/lbxproxy to do a 'make clean 
clean-depends'. I ran aground on the same warning-treated-as-error 
as before. What I notice is we are using "slightly" different 
versions of gcc.

Yours:
> # gcc --version
> gcc (nb1 20190119) 7.4.0

Mine:
# gcc --version
gcc (nb2 20190226) 7.4.0

And for the record:
# uname -a
NetBSD nebby.localdomain 8.99.35 NetBSD 8.99.35 (GENERIC) #0: Fri 
Mar 15 22:09:21 UTC 2019 
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

I will take the liberty again to attach the make output.

Thank you!

-- 
Bob Bernstein

Script started on Mon Mar 18 14:05:05 2019
=> 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
=> Tool dependency ccache-[0-9]*: found ccache-3.6
=> 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[1]: stopped in /usr/pkgsrc/x11/lbxproxy
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/lbxproxy

Script done on Mon Mar 18 14:05:22 2019


Home | Main Index | Thread Index | Old Index