<div dir="ltr"><div dir="auto">Hi,</div><div dir="auto"><br></div><div dir="auto">I have 5 patches, 0001, 0002 and 0003 to make the code at <a href="https://salsa.debian.org/chinese-team/zhcon.git" target="_blank">https://salsa.debian.org/chinese-team/zhcon.git</a> compiles successfully, with gcc-14 and debian 12.<br></div><div>The 0004 and 0005 patches are my test on <a href="http://configure.in">configure.in</a>, but not finished yet. Since gettext deb package has m4 file related to iconv, I don't know how to use. I suspect the <a href="http://configure.in">configure.in</a> is not correct, when I use autoupdate && autoconf && 
automake, the generated ./configure is wrong when detecting iconv.<br><br><br>-- System Information:<br>Debian Release: 12.0<br>  APT prefers testing<br>  APT policy: (500, 'testing')<br>Architecture: amd64 (x86_64)<br><br>Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)<br>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set<br>Shell: /bin/sh linked to /usr/bin/dash<br>Init: systemd (via /run/systemd/system)<br>LSM: AppArmor: enabled<br><br>Versions of packages zhcon depends on:<br>ii  libc6       2.38-13<br>ii  libgcc-s1   14-20240330-1<br>ii  libgpm2     1.20.7-11<br>ii  libstdc++6  14-20240330-1<br>ii  libtinfo6   6.5-2<br>pn  zhcon-data  <none><br><br>zhcon recommends no packages.<br><br>zhcon suggests no packages.</div><div dir="auto"><br></div><div>Regards.<br><br></div><div>Rafael Lee<br></div><div dir="auto"><br><br></div>On Wed, 03 Jul 2024 12:50:01 +0000 Matthias Klose <<a href="mailto:doko@debian.org" target="_blank">doko@debian.org</a>> wrote:<br>> Package: src:zhcon<br>> Version: 1:0.2.6-19<br>> Severity: important<br>> Tags: sid trixie<br>> User: <a href="mailto:debian-gcc@lists.debian.org" target="_blank">debian-gcc@lists.debian.org</a><br>> Usertags: ftbfs-gcc-14<br>><br>> [This bug is targeted to the upcoming trixie release]<br>><br>> Please keep this issue open in the bug tracker for the package it<br>> was filed for.  If a fix in another package is required, please<br>> file a bug for the other package (or clone), and add a block in this<br>> package. Please keep the issue open until the package can be built in<br>> a follow-up test rebuild.<br>><br>> The package fails to build in a test rebuild on at least amd64 with<br>> gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The<br>> severity of this report will be raised before the trixie release.<br>><br>> The full build log can be found at:<br>> <a href="http://qa-logs.debian.net/2024/07/01/zhcon_0.2.6-19_unstable_gccexp.log" target="_blank">http://qa-logs.debian.net/2024/07/01/zhcon_0.2.6-19_unstable_gccexp.log</a><br>> The last lines of the build log are at the end of this report.<br>><br>> To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,<br>> or install the gcc, g++, gfortran, ... packages from experimental.<br>><br>>   apt-get -t=experimental install g++<br>><br>> Common build failures are new warnings resulting in build failures with<br>> -Werror turned on, or new/dropped symbols in Debian symbols files.<br>> For other C/C++ related build failures see the porting guide at<br>> <a href="http://gcc.gnu.org/gcc-14/porting_to.html" target="_blank">http://gcc.gnu.org/gcc-14/porting_to.html</a><br>><br>> [...]<br>> winime.cpp:267:32: warning: ‘std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = not_equal_to<char*>; _Tp = char*]’ is deprecated: use 'std::bind' instead [-Wdeprecated-declarations]<br>>   267 |                         bind2nd(not_equal_to < char *>(),<br>>       |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~<br>>   268 |                                 (char *) 0xffffffff));<br>>       |                                 ~~~~~~~~~~~~~~~~~~~~<br>> In file included from /usr/include/c++/14/bits/stl_function.h:1435,<br>>                  from /usr/include/c++/14/functional:49,<br>>                  from winime.cpp:26:<br>> /usr/include/c++/14/backward/binders.h:172:5: note: declared here<br>>   172 |     bind2nd(const _Operation& __fn, const _Tp& __x)<br>>       |     ^~~~~~~<br>> winime.cpp:276:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br>>   276 |             p = (char *)(mpIndex2[Index(mInput[0]) * l + Index(c)]);<br>>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-nativeinputserver.o `test -f 'nativeinputserver.cpp' || echo './'`nativeinputserver.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-inputclient.o `test -f 'inputclient.cpp' || echo './'`inputclient.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-inputmanager.o `test -f 'inputmanager.cpp' || echo './'`inputmanager.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-inputserver.o `test -f 'inputserver.cpp' || echo './'`inputserver.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-candilist.o `test -f 'candilist.cpp' || echo './'`candilist.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-uniconinputserver.o `test -f 'uniconinputserver.cpp' || echo './'`uniconinputserver.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-nativebarclient.o `test -f 'nativebarclient.cpp' || echo './'`nativebarclient.cpp<br>> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-mouse.o `test -f 'mouse.cpp' || echo './'`mouse.cpp<br>> gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. - -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-encfilter.o `test -f 'encfilter.c' || echo './'`encfilter.c<br>> gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-iconv_string.o `test -f 'iconv_string.c' || echo './'`iconv_string.c<br>> iconv_string.c: In function ‘iconv_string’:<br>> iconv_string.c:83:29: error: passing argument 2 of ‘iconv’ from incompatible pointer type [-Wincompatible-pointer-types]<br> <br></div>