[Debian-med-packaging] Bug#778165: vxl: ftbfs with GCC-5
Brett Johnson
brett at hp.com
Tue Jul 14 23:01:41 UTC 2015
tags 778165 +patch
thanks
This patch (swiped from fedora) fixes the original error, but either
causes or exposes a cmake error that I'm not smart enough to figure
out. New error is that configure decides there's a header called
"libc.h", which doesn't exist:
cd /home/brett/src/vxl-1.17.0.dfsg/obj-x86_64-linux-gnu/v3p/dcmtk && /usr/bin/c++ -DVXL_LEGACY_ERROR_REPORTING -DVXL_WARN_DEPRECATED -DVXL_WARN_DEPRECATED_ONCE -Ddcmtk_EXPORTS -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wno-cast-qual -Wno-unused-variable -fPIC -I/home/brett/src/vxl-1.17.0.dfsg/obj-x86_64-linux-gnu/vcl -I/home/brett/src/vxl-1.17.0.dfsg/vcl -I/home/brett/src/vxl-1.17.0.dfsg/obj-x86_64-linux-gnu/core -I/home/brett/src/vxl-1.17.0.dfsg/core -I/home/brett/src/vxl-1.17.0.dfsg/obj-x86_64-linux-gnu/v3p/dcmtk -I/home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/ofstd/include -I/home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/dcmdata/include -I/home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/dcmimgle/include -o CMakeFiles/dcmtk.dir/ofstd/libsrc/ofcond.o -c /home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/ofstd/libsrc/ofcond.cxx
In file included from /home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/ofstd/include/ofcond.h:32:0,
from /home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/ofstd/libsrc/ofcond.cxx:27:
/home/brett/src/vxl-1.17.0.dfsg/v3p/dcmtk/ofstd/include/ofstring.h:57:18: fatal error: libc.h: No such file or directory
compilation terminated.
...
Full build log at http://people.linux.hp.com/~brett/logs/vxl-1.17.0.dfsg/buildlog.txt
--- vxl-1.17.0.dfsg.orig/vcl/vcl_compiler.h
+++ vxl-1.17.0.dfsg/vcl/vcl_compiler.h
@@ -119,6 +119,10 @@
# else
# define VCL_GCC_40
# endif
+# elif (__GNUC__==5)
+// pretend to be GCC 4 until upstream fixes this..
+# define VCL_GCC_4
+# define VCL_GCC_41
# else
# error "Dunno about this gcc"
# endif
--
Brett Johnson <brett at hp.com>
More information about the Debian-med-packaging
mailing list