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

Adrian Bunk bunk at debian.org
Mon May 13 11:49:31 BST 2024


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
...


More information about the Chinese-developers mailing list