GNOME Bugzilla – Bug 695550
does not compile without LONG_DOUBLE
Last modified: 2013-03-10 20:59:57 UTC
Created attachment 238512 [details] [review] reverse logic for GOFFICE_WITH_LONG_DOUBLE check Hi. When building goffice (0.10.1) with GOFFICE_WITH_LONG_DOUBLE undefined, it fails with: cc -DHAVE_CONFIG_H -I. -I.. -I.. -pthread -I/usr/local/include/libgsf-1 -I/usr/local/include/librsvg-2.0 -I/usr/local/include/lasem-0.4 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/gtk-3.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/X11R6/include -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include/freetype2 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DGOFFICE_COMPILATION -I/usr/local/include -O2 -pipe -Wall -Wall -Wmissing-prototypes -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn -Werror=missing-prototypes -Werror=nested-externs -Werror=implicit-function-declaration -Wmissing-declarations -Wno-pointer-sign -Werror=format-security -Wstrict-prototypes -MT go-cspline.lo -MD -MP -MF .deps/go-cspline.Tpo -c math/go-cspline.c -fPIC -DPIC -o .libs/go-cspline.o math/go-cspline.c:236: error: no previous prototype for 'go_csplinel_get_type' Not sure I'm right here, but it seems there is a resersed logic check for GOFFICE_WITH_LONG_DOUBLE in goffice/math/go-cspline.h. The attached patch fixes the issue for me. Thoughts?
The conditional is correct as it is. Something else is up.
https://git.gnome.org/browse/goffice/commit/?id=01f93869b7e2e9b38bd62c94d9d71103dffa4f08 This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. I am still seeing problems with introspection after this, but this is progress.
Also https://git.gnome.org/browse/goffice/commit/?id=7a4c59faf5f7cb7a1419dc5b26d154f1a8007423