ml2c_lc now undefined in dllgettextStub.so due to gcc 5

Bug #1481994 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocaml-gettext (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

All two of the packages that build depend on libgettext-ocaml now ftbfs:

libguestfs: https://launchpadlibrarian.net/213721303/buildlog_ubuntu-wily-amd64.libguestfs_1%3A1.28.12-1ubuntu2_BUILDING.txt.gz

virt-top: https://launchpadlibrarian.net/213754186/buildlog_ubuntu-wily-amd64.virt-top_1.0.7-1_BUILDING.txt.gz

For the current wily package usr/lib/ocaml/stublibs/dllgettextStub.so has

15: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND ml2c_lc

in readdelf -s. The trusty package has

36: 0000000000000ec0 32 FUNC GLOBAL DEFAULT 11 ml2c_lc

which goes some way to explaining the failures.

Looking at the source, I see that ml2c_lc is declared 'inline'. A change in gcc 5 affects what this meansper https://gcc.gnu.org/gcc-5/porting_to.html (it seems it means ~static inline now?).

So, fun.

description: updated
Revision history for this message
Richard Jones (rjones-redhat) wrote :

    /usr/lib/ocaml/gettext-stub/libgettextStub.a(gettextStubCompat_stubs.o): In function `gettextStubCompat_setlocale':
(.text+0x1b9): undefined reference to `ml2c_lc'

The function 'ml2c_lc' is a function defined in ocaml-gettext (specifically in the file ./libgettext-stub-ocaml/gettextStubCompat_stubs.c) so it looks as if the bug should be reassigned to ocaml-gettext.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

And blug I *think* ocaml-gettext probably only breaks because it's now built with gcc 5 -- inline functions not visible outside the translation unit in c99 mode or something. What a mess.

affects: libguestfs (Ubuntu) → ocaml-gettext (Ubuntu)
summary: - ftbfs in wily
+ ml2c_lc now undefined in dllgettextStub.so due to gcc 5
description: updated
Revision history for this message
Richard Jones (rjones-redhat) wrote :
Revision history for this message
Kyle Robbertze (krobbertze) wrote :

Fixed in 0.3.5-2 uploaded to Debian 15 Aug 2015

Changed in ocaml-gettext (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.