control: retitle -1 ocaml-gettext: missing symbol when built on sid with gcc-5 control: reassign -1 ocaml-gettext 0.3.5-1 control: tag -1 patch
I have built ocaml-gettext 0.3.5-1 in a jessie chroot and compared the /usr/lib/ocaml/stublibs/dllgettextStub.so with what is built on sid. It has an extra symbol "ml2c_lc". ,---- | --- 0.3.5.syms 2015-08-14 19:18:39.217818410 +0200 | +++ 0.3.5~bpo8+1.syms 2015-08-14 20:39:23.525148505 +0200 | @@ -31,7 +31,7 @@ | w _ITM_deregisterTMCloneTable | w _ITM_registerTMCloneTable | w _Jv_RegisterClasses | -U ml2c_lc | +T ml2c_lc | D ml2c_lc_tab | U ngettext | U setlocale `---- This symbol is also present in 0.3.4-1+b4 as shipped with jessie and its missing is the reason why libguestfs FTBFS with libgettext-ocaml 0.3.5-1. A simple patch fixes the symbol issue. Cheers, -Hilko
From: Hilko Bengen <ben...@debian.org> Date: Fri, 14 Aug 2015 21:36:27 +0200 Subject: Do not mark ml2c_lc as inline due to changed semantics in GCC 5 --- libgettext-stub-ocaml/gettextStubCompat_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgettext-stub-ocaml/gettextStubCompat_stubs.c b/libgettext-stub-ocaml/gettextStubCompat_stubs.c index 0bbac1b..e0af48b 100644 --- a/libgettext-stub-ocaml/gettextStubCompat_stubs.c +++ b/libgettext-stub-ocaml/gettextStubCompat_stubs.c @@ -55,7 +55,7 @@ int ml2c_lc_tab[7] = { LC_ALL }; -inline int ml2c_lc(value v) +int ml2c_lc(value v) { return ml2c_lc_tab[Int_val(v)]; }