Your message dated Wed, 12 Feb 2025 11:08:09 +0000
with message-id <[email protected]>
and subject line Bug#934916: fixed in libss7 2.0.1-2
has caused the Debian Bug report #934916,
regarding libss7: FTBFS on x32 (time_t sprintf format mismatch)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
934916: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934916
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libss7-2.0
Version: 2.0.0-2
Tags: ftbfs
Usertags: x32
Priority: minor

libss7 2.0 fails to build on x32 because it assumes time_t is of type
long int when it can be long long int (64-bit, on a system with a
32-bit long).

gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g
-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2  -MD
-MT ss7.o -MF .ss7.o.d -MP -c -o ss7.o ss7.c
ss7.c: In function 'ss7_show_linkset':
ss7.c:654:21: error: format '%li' expects argument of type 'long int',
but argument 3 has type 'long long int' [-Werror=format=]
      sprintf(p, "(%lis)%c",
ss7->ss7_sched[ss7->links[i]->mtp3_timer[x]].when.tv_sec - time(NULL),
                   ~~^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   %lli

A patch for this might go along the lines of:

+#if defined __x86_64__ && defined __ILP32__
+      sprintf(p, "(%llis)%c",
ss7->ss7_sched[ss7->links[i]->mtp3_timer[x]].when.tv_sec - time(NULL),
+#else
      sprintf(p, "(%lis)%c",
ss7->ss7_sched[ss7->links[i]->mtp3_timer[x]].when.tv_sec - time(NULL),
+#endif

or it might be more appropriate to use strftime(), or cast to long
long int unconditionally (though this pulls it in where not needed on
x86 32-bit).

Minor priority because it's only mentioned as an binary dependency for
asterisk-dahdi (which currently compiles without it), and there it
only:

  * Depend on libss7 and newer libpri (1.4.7) for latest chan_dahdi abilities.

Best regards,
-- 
Laurence "GreenReaper" Parry
https://www.greenreaper.co.uk/

--- End Message ---
--- Begin Message ---
Source: libss7
Source-Version: 2.0.1-2
Done: Victor Seva <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libss7, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Victor Seva <[email protected]> (supplier of updated libss7 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 12 Feb 2025 11:07:10 +0100
Source: libss7
Architecture: source
Version: 2.0.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian VoIP Team <[email protected]>
Changed-By: Victor Seva <[email protected]>
Closes: 934916 1069523
Changes:
 libss7 (2.0.1-2) unstable; urgency=medium
 .
   * proper fix for both (Closes: #934916, #1069523)
Checksums-Sha1:
 d26243a198899986de6f0224ce3a84bca0428759 1486 libss7_2.0.1-2.dsc
 d1a8eea877cdfe83ed44f543ce25ae710826902c 7700 libss7_2.0.1-2.debian.tar.xz
 f09786082bad5e7c5cf3ca7dbe7cba23e26b57ce 5607 libss7_2.0.1-2_amd64.buildinfo
Checksums-Sha256:
 5dd2821851cb9360cbde7ae2c027f4a4af97df2c32349f4429c769b0b7dd75ab 1486 
libss7_2.0.1-2.dsc
 ec07d3ce6533fe30129ac94e612386ce39b8ba6f28b231861b252678749ea6a6 7700 
libss7_2.0.1-2.debian.tar.xz
 ca8edd697c19d0598c1269fdc2190884955d733c1aa30cf6651fbcd98637f40b 5607 
libss7_2.0.1-2_amd64.buildinfo
Files:
 394c9ea3655805152a028b897a900985 1486 libs optional libss7_2.0.1-2.dsc
 24e27a1b4dafaa3d9c2ff42941420b82 7700 libs optional 
libss7_2.0.1-2.debian.tar.xz
 3314a04f2e307739234199f614562d89 5607 libs optional 
libss7_2.0.1-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iIcEARYKAC8WIQQq6AO8RS0zF4SC1vh9e2XEKg7IsgUCZ6x6OREcdnNldmFAZGVi
aWFuLm9yZwAKCRB9e2XEKg7IsmELAP46euxLeX2Z9Al36eidEZoIen76jQZpPA6Z
5RTgIuie3QD/TVRAhqg+El5Q+audSqoiO7q3Yh0zP1OIClpSLYHIQAo=
=bGIO
-----END PGP SIGNATURE-----

Attachment: pgpRaBUBM_d8z.pgp
Description: PGP signature


--- End Message ---

Reply via email to