[Debian-zh-dev] Bug#1071039: Bug#1071039: iptux FTBFS on 32bit with 64bit time_t

xiao sheng wen (=?UTF-8?Q?=E8=82=96=E7=9B=9B=E6=96=87?=) atzlinux at sina.com
Mon May 13 13:17:53 BST 2024


Control: tags -1 upstream
Control: forwarded -1 https://github.com/iptux-src/iptux/issues/581

Hi Adrian,

Thanks for your report.



在 2024/5/13 18:49, Adrian Bunk 写道:
> Source: iptux
> Version: 0.9.1-1
> Severity: serious
> Tags: ftbfs
>
> https://buildd.debian.org/status/logs.php?pkg=iptux&ver=0.9.1-1
>
> ...
> FAILED: src/iptux-core/libiptux-core.so.0.9.1.p/internal_SendFileData.cpp.o
> c++ -Isrc/iptux-core/libiptux-core.so.0.9.1.p -Isrc/iptux-core -I../src/iptux-core -Isrc -I../src -Isrc/api -I../src/api -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/jsoncpp -I/usr/include/sigc++-2.0 -I/usr/lib/arm-linux-gnueabihf/sigc++-2.0/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -Werror=format -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/iptux-core/libiptux-core.so.0.9.1.p/internal_SendFileData.cpp.o -MF src/iptux-core/libiptux-core.so.0.9.1.p/internal_SendFileData.cpp.o.d -o src/iptux-core/libiptux-core.so.0.9.1.p/internal_SendFileData.cpp.o -c ../src/iptux-core/internal/SendFileData.cpp
> ../src/iptux-core/internal/SendFileData.cpp: In member function ‘void iptux::SendFileData::SendDirFiles()’:
> ../src/iptux-core/internal/SendFileData.cpp:205:16: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘__time64_t’ {aka ‘long long int’} [-Werror=format=]
>    205 |                "0000:%s:%.9" PRIx64 ":%lx:%lx=%lx:%lx=%lx:", dirname,
>        |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/iptux-core/internal/SendFileData.cpp:205:16: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 10 has type ‘__time64_t’ {aka ‘long long int’} [-Werror=format=]
>    205 |                "0000:%s:%.9" PRIx64 ":%lx:%lx=%lx:%lx=%lx:", dirname,
>        |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/iptux-core/internal/SendFileData.cpp:243:36: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘__time64_t’ {aka ‘long long int’} [-Werror=format=]
>    243 |                "0000:.:0:%lx:%lx=%lx:%lx=%lx:", IPMSG_FILE_RETPARENT,
>        |                                  ~~^
>        |                                    |
>        |                                    long unsigned int
>        |                                  %llx
> ../src/iptux-core/internal/SendFileData.cpp:243:44: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘__time64_t’ {aka ‘long long int’} [-Werror=format=]
>    243 |                "0000:.:0:%lx:%lx=%lx:%lx=%lx:", IPMSG_FILE_RETPARENT,
>        |                                          ~~^
>        |                                            |
>        |                                            long unsigned int
>        |                                          %llx
> ../src/iptux-core/internal/SendFileData.cpp:264:32: warning: cast between incompatible function types from ‘int (*)(DIR*)’ to ‘GFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
>    264 |     g_queue_foreach(&dirstack, GFunc(closedir), NULL);
>        |                                ^~~~~~~~~~~~~~~
> cc1plus: some warnings being treated as errors
> ...
> FAILED: src/iptux-core/libiptux-core.so.0.9.1.p/internal_TcpData.cpp.o
> c++ -Isrc/iptux-core/libiptux-core.so.0.9.1.p -Isrc/iptux-core -I../src/iptux-core -Isrc -I../src -Isrc/api -I../src/api -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/jsoncpp -I/usr/include/sigc++-2.0 -I/usr/lib/arm-linux-gnueabihf/sigc++-2.0/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -Werror=format -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/iptux-core/libiptux-core.so.0.9.1.p/internal_TcpData.cpp.o -MF src/iptux-core/libiptux-core.so.0.9.1.p/internal_TcpData.cpp.o.d -o src/iptux-core/libiptux-core.so.0.9.1.p/internal_TcpData.cpp.o -c ../src/iptux-core/internal/TcpData.cpp
> ../src/iptux-core/internal/TcpData.cpp: In member function ‘void iptux::TcpData::RecvSublayer(uint32_t)’:
> ../src/iptux-core/internal/TcpData.cpp:146:35: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘time_t’ {aka ‘long long int’} [-Werror=format=]
>    146 |       snprintf(path, MAX_PATHLEN, "%s" PIC_PATH "/%" PRIx32 "-%" PRIx32 "-%lx",
>        |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    147 |                g_get_user_cache_dir(), inAddrToUint32(pal->ipv4()), count++,
>    148 |                time(NULL));
>        |                ~~~~~~~~~~
>        |                    |
>        |                    time_t {aka long long int}
> ../src/iptux-core/internal/TcpData.cpp:152:16: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘time_t’ {aka ‘long long int’} [-Werror=format=]
>    152 |                "%s" IPTUX_PATH "/%" PRIx32 "-%" PRIx32 "-%lx",
>        |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    153 |                g_get_user_cache_dir(), inAddrToUint32(pal->ipv4()), count++,
>    154 |                time(NULL));
>        |                ~~~~~~~~~~
>        |                    |
>        |                    time_t {aka long long int}
> cc1plus: some warnings being treated as errors
> ...
> _______________________________________________
> Chinese-developers mailing list
> Chinese-developers at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/chinese-developers

-- 
肖盛文 xiao sheng wen
https://www.atzlinux.com 《铜豌豆 Linux》基于 Debian 的 Linux 中文 桌面 操作系统
Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40sina.com
Debian salsa: https://salsa.debian.org/atzlinux-guest
GnuPG Public Key: 0x00186602339240CB

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240513/7a512d0b/attachment.sig>


More information about the Chinese-developers mailing list