Bug#1068089: FTBFS: error: cannot convert ‘long int*’ to ‘const time_t*’ {aka ‘const long long int*’}

2024-03-31 Thread Andrey Rakhmatullin
On Sat, Mar 30, 2024 at 05:25:21PM +0500, Andrey Rakhmatullin wrote:
> plugins/about/aboutinterface.cpp: In member function ‘char*
> AboutInterface::ntpdate(char*)’:
> plugins/about/aboutinterface.cpp:438:18: error: cannot convert ‘long int*’ to
> ‘const time_t*’ {aka ‘const long long int*’}
>   438 | return ctime();
The code talks to the network (implementing the NTP protocol I guess?) and
so it's probably fragile. The comment suggests tmit is explicitly not a
time_t.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Bug#1068089: FTBFS: error: cannot convert ‘long int*’ to ‘const time_t*’ {aka ‘const long long int*’}

2024-03-30 Thread Andrey Rakhmatullin
Source: ukui-control-center
Version: 3.22.1.25-2
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=ukui-control-
center=armhf=3.22.1.25-2=1711794461=0

plugins/about/aboutinterface.cpp: In member function ‘char*
AboutInterface::ntpdate(char*)’:
plugins/about/aboutinterface.cpp:438:18: error: cannot convert ‘long int*’ to
‘const time_t*’ {aka ‘const long long int*’}
  438 | return ctime();
  |  ^
  |  |
  |  long int*
In file included from /usr/include/features.h:490,
 from /usr/include/arm-linux-
gnueabihf/c++/13/bits/os_defines.h:39,
 from /usr/include/arm-linux-
gnueabihf/c++/13/bits/c++config.h:679,
 from /usr/include/c++/13/type_traits:38,
 from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qglobal.h:45,
 from /usr/include/arm-linux-
gnueabihf/qt5/QtCore/qnamespace.h:43,
 from /usr/include/arm-linux-
gnueabihf/qt5/QtCore/qobjectdefs.h:48,
 from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qobject.h:46,
 from /usr/include/arm-linux-gnueabihf/qt5/QtCore/QObject:1,
 from plugins/about/aboutinterface.h:21,
 from plugins/about/aboutinterface.cpp:18:
/usr/include/time.h:186:14: note:   initializing argument 1 of ‘char*
ctime(const time_t*)’
  186 | extern char *__REDIRECT_NTH (ctime, (const time_t *__timer),
__ctime64);
  |  ^~


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.7.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled