Bug#778115: sflphone: ftbfs with GCC-5
Brett Johnson
brett at hp.com
Mon Jul 20 23:03:58 UTC 2015
tags 778115 +patch
thanks
ISO C99 introduced a new "isblank" function into the standard ctypes.h
header file. This patch conditionally defines "isblank" only if C99 is
not in use, and fixes the original gcc5 build problem.
But now I run into a problem that looks like a missing KDE build-dep of
some sort, but I don't know enough about qt/KDE to figure out what's
missing or why this is failing:
Scanning dependencies of target qtsflphone
make[4]: Leaving directory '/home/brett/src/sflphone-1.4.1/kde/build'
make[4]: Entering directory '/home/brett/src/sflphone-1.4.1/kde/build'
[ 18%] Building CXX object src/lib/CMakeFiles/qtsflphone.dir/call.cpp.o
cc1plus: error: /usr/include/qt4/KDE: No such file or directory [-Werror=missing-include-dirs]
cc1plus: all warnings being treated as errors
src/lib/CMakeFiles/qtsflphone.dir/build.make:388: recipe for target 'src/lib/CMakeFiles/qtsflphone.dir/call.cpp.o' failed
Full build log at http://people.linux.hp.com/~brett/logs/sflphone-1.4.1/buildlog.txt
--- sflphone-1.4.1.orig/daemon/libs/pjproject-2.2.1/pjlib/include/pj/compat/ctype.h
+++ sflphone-1.4.1/daemon/libs/pjproject-2.2.1/pjlib/include/pj/compat/ctype.h
@@ -41,9 +41,11 @@
# define toupper(c) (((c) >= 'a' && (c) <= 'z') ? (c)-('a'-'A') : (c))
#endif
-#ifndef isblank
+#ifndef __USE_ISOC99
+# ifndef isblank
# define isblank(c) (c==' ' || c=='\t')
-#endif
+# endif
+#endif /* __USE_ISOC99 */
#endif /* __PJ_COMPAT_CTYPE_H__ */
--
Brett Johnson <brett at hp.com>
More information about the Pkg-voip-maintainers
mailing list