Bug#872406: baresip FTBFS: error: storage size of 'timeout' isn't known

Steve Langasek steve.langasek at canonical.com
Sat Aug 26 08:12:17 UTC 2017


Package: baresip
Version: 0.5.4-1
Followup-For: Bug #872406
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch

Hello,

Here is a patch that addresses this in baresip.  This patch has been
uploaded to Ubuntu to fix this build failure there.

Hope that helps,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru baresip-0.5.4/debian/patches/gcc-7-compat.patch baresip-0.5.4/debian/patches/gcc-7-compat.patch
--- baresip-0.5.4/debian/patches/gcc-7-compat.patch	1969-12-31 16:00:00.000000000 -0800
+++ baresip-0.5.4/debian/patches/gcc-7-compat.patch	2017-08-26 01:08:50.000000000 -0700
@@ -0,0 +1,20 @@
+Description: Use -D_GNU_SOURCE for gcc-7 compatibility
+ baresip fails to build with gcc-7 because libdirectfb-dev needs to know
+ the size of struct timespec, which is an opaque type unless we're using
+ GNU extensions, but libre-dev sets -std=c99.  Adjust cflags to enable
+ _GNU_SOURCE.
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Bug-Debian: https://bugs.debian.org/872406
+
+Index: baresip-0.5.4/Makefile
+===================================================================
+--- baresip-0.5.4.orig/Makefile
++++ baresip-0.5.4/Makefile
+@@ -49,6 +49,7 @@
+ CFLAGS    += -I. -Iinclude -I$(LIBRE_INC) -I$(SYSROOT)/include
+ CFLAGS    += -I$(LIBREM_PATH)/include
+ CFLAGS    += -I$(SYSROOT)/local/include/rem -I$(SYSROOT)/include/rem
++CFLAGS    += -D_GNU_SOURCE
+ 
+ CXXFLAGS  += -I. -Iinclude -I$(LIBRE_INC)
+ CXXFLAGS  += -I$(LIBREM_PATH)/include
diff -Nru baresip-0.5.4/debian/patches/series baresip-0.5.4/debian/patches/series
--- baresip-0.5.4/debian/patches/series	2017-07-03 03:04:40.000000000 -0700
+++ baresip-0.5.4/debian/patches/series	2017-08-26 01:00:59.000000000 -0700
@@ -1 +1,2 @@
 2001_drop_libre_so_check.patch
+gcc-7-compat.patch


More information about the Pkg-voip-maintainers mailing list