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

Bug#1066252: 9base: FTBFS: mbwc.h:2:16: error: implicit declaration of function ‘p9mbtowc’; did you mean ‘mbtowc’? [-Werror=implicit-function-declaration]



Source: 9base
Version: 1:6-13
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec n7.c
> In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdio.h:27,
>                  from tdef.h:1,
>                  from n2.c:8:
> /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>   195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>       |   ^~~~~~~
> In file included from /usr/include/inttypes.h:25,
>                  from ../lib9/u.h:38,
>                  from n1.c:8:
> /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>   195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>       |   ^~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdio.h:27,
>                  from tdef.h:1,
>                  from n7.c:2:
> /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>   195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>       |   ^~~~~~~
> In file included from fns.h:3,
>                  from n1.c:10:
> n1.c: In function ‘get1ch’:
> mbwc.h:2:16: error: implicit declaration of function ‘p9mbtowc’; did you mean ‘mbtowc’? [-Werror=implicit-function-declaration]
>     2 | #define mbtowc p9mbtowc
>       |                ^~~~~~~~
> n1.c:752:26: note: in expansion of macro ‘mbtowc’
>   752 |                 if ((n = mbtowc(&wc, buf, p-buf)) >= 0)
>       |                          ^~~~~~
> n1.c: In function ‘casesy’:
> n1.c:1074:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1074 |         system(sybuf);
>       |         ^~~~~~~~~~~~~
> CC n8.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec n8.c
> CC n9.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec n9.c
> In file included from /usr/include/inttypes.h:25,
>                  from ../lib9/u.h:38,
>                  from n8.c:1:
> /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>   195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>       |   ^~~~~~~
> CC t10.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec t10.c
> CC n10.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec n10.c
> CC t11.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec t11.c
> CC ni.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec ni.c
> In file included from /usr/include/inttypes.h:25,
>                  from ../lib9/u.h:38,
>                  from n10.c:7:
> /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>   195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>       |   ^~~~~~~
> CC hytab.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec hytab.c
> In file included from fns.h:3,
>                  from t11.c:2:
> t11.c: In function ‘getfont’:
> mbwc.h:2:16: error: implicit declaration of function ‘p9mbtowc’; did you mean ‘mbtowc’? [-Werror=implicit-function-declaration]
>     2 | #define mbtowc p9mbtowc
>       |                ^~~~~~~~
> t11.c:145:44: note: in expansion of macro ‘mbtowc’
>   145 |                                 } else if (mbtowc(&wc, ch, strlen(ch)) > 1) {
>       |                                            ^~~~~~
> t11.c: In function ‘getdesc’:
> t11.c:31:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    31 |                         fscanf(fin, "%d", &Inch);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~
> t11.c:33:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    33 |                         fscanf(fin, "%d", &Hor);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~
> t11.c:35:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    35 |                         fscanf(fin, "%d", &Vert);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~
> t11.c:37:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    37 |                         fscanf(fin, "%d", &Unitwidth);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CC suftab.c
> t11.c:43:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    43 |                         fscanf(fin, "%d", &nfonts);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
> t11.c:45:33: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    45 |                                 fscanf(fin, "%s", s);
>       |                                 ^~~~~~~~~~~~~~~~~~~~
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec suftab.c
> t11.c: In function ‘getfont’:
> t11.c:111:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   111 |                         fscanf(fin, "%s", ftemp->longname);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> t11.c:117:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   117 |                         fscanf(fin, "%d", &ftemp->spacewidth);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> t11.c:119:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   119 |                         fscanf(fin, "%d", &ftemp->defaultwidth);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from fns.h:3,
>                  from n10.c:10:
> n10.c: In function ‘parse’:
> mbwc.h:2:16: error: implicit declaration of function ‘p9mbtowc’; did you mean ‘mbtowc’? [-Werror=implicit-function-declaration]
>     2 | #define mbtowc p9mbtowc
>       |                ^~~~~~~~
> n10.c:29:13: note: in expansion of macro ‘mbtowc’
>    29 |         if (mbtowc(&wc, s, strlen(s)) > 1) {    /* it's multibyte, */
>       |             ^~~~~~
> CC dwbinit.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec dwbinit.c
> n10.c: In function ‘n_ptinit’:
> n10.c:199:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   199 |         fscanf(fp, "%s", cmd);  /* should be device name... */
>       |         ^~~~~~~~~~~~~~~~~~~~~
> n10.c:203:17: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   203 |                 fscanf(fp, "%s", cmd);
>       |                 ^~~~~~~~~~~~~~~~~~~~~
> n10.c:206:17: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   206 |                 fscanf(fp, " %[^\n]", opt);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
> n10.c: In function ‘n_ptpause’:
> n10.c:548:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   548 |         read(2, &junk, 1);
>       |         ^~~~~~~~~~~~~~~~~
> In file included from /usr/include/inttypes.h:25,
>                  from ../lib9/u.h:38,
>                  from dwbinit.c:76:
> /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>   195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>       |   ^~~~~~~
> CC mbwc.c
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -c -I. -DPREFIX="\"/usr/lib/plan9\"" -DUNICODE -DDWBHOME="\"/usr/share/9base/troff\"" -DNTERMDIR="\"/term/tab.\"" -DTEXHYPHENS="\"/hyphen.tex\"" -DALTHYPHENS="\"/hyphen.tex\"" -DFONTDIR="\"/font\"" -DTDEVNAME="\"utf\"" -DTMACDIR="\"/tmac/tmac.\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I../lib9 -I../lib9/sec mbwc.c
> In file included from mbwc.c:2:
> mbwc.c: In function ‘p9mblen’:
> mbwc.h:2:16: error: implicit declaration of function ‘p9mbtowc’; did you mean ‘mbtowc’? [-Werror=implicit-function-declaration]
>     2 | #define mbtowc p9mbtowc
>       |                ^~~~~~~~
> mbwc.c:23:16: note: in expansion of macro ‘mbtowc’
>    23 |         return mbtowc(0, s, n);
>       |                ^~~~~~
> cc1: some warnings being treated as errors
> make[3]: *** [../std.mk:27: n1.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/9base_6-13_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.


Reply to: