Bug#925763: libusrsctp: ftbfs with GCC-9

Jonas Smedegaard jonas at jones.dk
Sat Sep 7 13:04:14 BST 2019


control: severity -1 important

Quoting Matthias Klose (2019-03-27 20:46:45)
> The package fails to build in a test rebuild on at least amd64 with
> gcc-9/g++-9, but succeeds to build with gcc-8/g++-8.

[...]

> netinet/sctp_input.c:3879:64: error: taking address of packed member of 'struct sctp_stream_reset_out_request' may result in an unaligned pointer value [-Werror=address-of-packed-member]
>  3879 |      sctp_reset_out_streams(stcb, number_entries, req_out_param->list_of_streams);
>       |                                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~

Temporarily setting -Wno-address-of-packed-member to suppress this.

Apparently the code works fine, and in the past upstream suppressed this 
type of warnings by default, dropping it only when older compilers 
failed to parse that build flag (by fixing the code issue at the time).

Lowering (but not closing) this bug as reminder to have this issue fixed 
properly.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-voip-maintainers/attachments/20190907/c6fcc12e/attachment.sig>


More information about the Pkg-voip-maintainers mailing list