Bug#811835: Patch for the ptlib gcc 6 FTBFS
Adrian Bunk
bunk at stusta.de
Sun Nov 20 17:07:54 UTC 2016
Control: reassign -1 src:ptlib
Control: forcemerge 811996 -1
Control: retitle -1 ptlib: FTBFS with GCC 6
Control: tags -1 patch
What broke the build is that gcc 6 changed the default C++ standard
from C++98 to C++14.
Not all valid C++98 code is also valid C++11 and C++14 code.
Note that this just changed the default, when told to process C++98 code
gcc 6 does not differ in any significant way from gcc 5.
Making the code compatible with C++14 would be the best possible
solution, but as a workaround it is possible to fix the build with
this change to tell gcc that this is C++98 code.
Adding it to STDCXXFLAGS also fixes the opal build.
--- debian/rules.old 2016-11-20 15:46:09.000000000 +0000
+++ debian/rules 2016-11-20 15:48:15.000000000 +0000
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+export STDCXXFLAGS = -std=gnu++98
+
DEBVERSION := $(shell head -n 1 debian/changelog \
| sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
UPVERSION := $(shell echo $(DEBVERSION) | sed 's/~dfsg-.//')
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
More information about the Pkg-voip-maintainers
mailing list