Bug#925763: libusrsctp: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:46:45 GMT 2019


Package: src:libusrsctp
Version: 0.9.3.0+20190127-2
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

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. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc9-20190321/libusrsctp_0.9.3.0+20190127-2_unstable_gcc9.log
The last lines of the build log are at the end of this report.

To build with GCC 9, either set CC=gcc-9 CXX=g++-9 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" -DPACKAGE_STRING=\"libusrsctp\ 0.9.3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c -o netinet/libusrsctp_la-sctp_indata.lo `test -f 'netinet/sctp_indata.c' || echo './'`netinet/sctp_indata.c
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_cc_functions.c  -fPIC -DPIC -o netinet/.libs/libusrsctp_la-sctp_cc_functions.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_callout.c -o netinet/libusrsctp_la-sctp_callout.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" -DPACKAGE_STRING=\"libusrsctp\ 0.9.3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c -o netinet/libusrsctp_la-sctp_input.lo `test -f 'netinet/sctp_input.c' || echo './'`netinet/sctp_input.c
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_crc32.c  -fPIC -DPIC -o netinet/.libs/libusrsctp_la-sctp_crc32.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_indata.c  -fPIC -DPIC -o netinet/.libs/libusrsctp_la-sctp_indata.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_cc_functions.c -o netinet/libusrsctp_la-sctp_cc_functions.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_crc32.c -o netinet/libusrsctp_la-sctp_crc32.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_input.c  -fPIC -DPIC -o netinet/.libs/libusrsctp_la-sctp_input.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" -DPACKAGE_STRING=\"libusrsctp\ 0.9.3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c -o netinet/libusrsctp_la-sctp_output.lo `test -f 'netinet/sctp_output.c' || echo './'`netinet/sctp_output.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" -DPACKAGE_STRING=\"libusrsctp\ 0.9.3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c -o netinet/libusrsctp_la-sctp_pcb.lo `test -f 'netinet/sctp_pcb.c' || echo './'`netinet/sctp_pcb.c
netinet/sctp_input.c: In function 'sctp_handle_stream_reset_response':
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);
      |                                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
netinet/sctp_input.c:3892:66: 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]
 3892 |      sctp_reset_clear_pending(stcb, number_entries, req_out_param->list_of_streams);
      |                                                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
netinet/sctp_input.c: In function 'sctp_handle_str_reset_request_out':
netinet/sctp_input.c:4170:50: 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]
 4170 |    sctp_reset_in_stream(stcb, number_entries, req->list_of_streams);
      |                                               ~~~^~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_output.c  -fPIC -DPIC -o netinet/.libs/libusrsctp_la-sctp_output.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_pcb.c  -fPIC -DPIC -o netinet/.libs/libusrsctp_la-sctp_pcb.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_indata.c -o netinet/libusrsctp_la-sctp_indata.o >/dev/null 2>&1
netinet/sctp_output.c: In function 'send_forward_tsn':
netinet/sctp_output.c:10978:22: error: converting a packed 'struct sctp_forward_tsn_chunk' pointer (alignment 1) to a 'struct sctp_strseq_mid' pointer (alignment 4) may result in an unaligned pointer value [-Werror=address-of-packed-member]
10978 |   strseq_m = (struct sctp_strseq_mid *)fwdtsn;
      |                      ^~~~~~~~~~~~~~~
In file included from netinet/sctp_output.c:46:
./netinet/sctp_header.h:407:8: note: defined here
  407 | struct sctp_forward_tsn_chunk {
      |        ^~~~~~~~~~~~~~~~~~~~~~
./netinet/sctp_header.h:418:8: note: defined here
  418 | struct sctp_strseq_mid {
      |        ^~~~~~~~~~~~~~~
netinet/sctp_output.c: In function 'sctp_send_sack':
netinet/sctp_output.c:11372:3: error: converting a packed 'struct sctp_gap_ack_block' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Werror=address-of-packed-member]
11372 |   dup = (uint32_t *) gap_descriptor;
      |   ^~~
In file included from netinet/sctp_output.c:46:
./netinet/sctp_header.h:265:8: note: defined here
  265 | struct sctp_gap_ack_block {
      |        ^~~~~~~~~~~~~~~~~~
netinet/sctp_output.c: In function 'sctp_send_resp_msg':
netinet/sctp_output.c:11791:17: error: converting a packed 'struct sctphdr' pointer (alignment 1) to a 'struct udphdr' pointer (alignment 2) may result in an unaligned pointer value [-Werror=address-of-packed-member]
11791 |   udp = (struct udphdr *)shout;
      |                 ^~~~~~
In file included from ./netinet/sctp_os_userspace.h:1059,
                 from ./netinet/sctp_os.h:74,
                 from netinet/sctp_output.c:40:
./netinet/sctp.h:60:8: note: defined here
   60 | struct sctphdr {
      |        ^~~~~~~
In file included from netinet/sctp_output.c:64:
/usr/include/netinet/udp.h:55:8: note: defined here
   55 | struct udphdr
      |        ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:719: netinet/libusrsctp_la-sctp_input.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
libtool: compile:  gcc -DPACKAGE_NAME=\"libusrsctp\" -DPACKAGE_TARNAME=\"libusrsctp\" -DPACKAGE_VERSION=\"0.9.3.0\" "-DPACKAGE_STRING=\"libusrsctp 0.9.3.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DINET=1 -DINET6=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1 -DHAVE_STDATOMIC_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_NETINET_IP_ICMP_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__ -D__Userspace_os_Linux -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pthread -D_GNU_SOURCE -pedantic -Wall -Werror -g -O0 -c netinet/sctp_pcb.c -o netinet/libusrsctp_la-sctp_pcb.o >/dev/null 2>&1
make[2]: *** [Makefile:726: netinet/libusrsctp_la-sctp_output.lo] Error 1
make[2]: Leaving directory '/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127/usrsctplib'
make[1]: *** [Makefile:410: all-recursive] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/libusrsctp-0.9.3.0+20190127'
dh_auto_build: make -j4 returned exit code 2
make: *** [debian/rules:17: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list