/srv/irclogs.ubuntu.com/2016/10/08/#ubuntu-mir.txt

MastahHi, I am facing some trouble with latest protobuf 3.1 and trying to compile Mir's protobuf bindings;11:39
MastahIn 3.1 the following change was applied: Moved default_instances to global variables. This allows default_instance addresses to be known at compile time.11:40
Mastahand when now trying to compile Mir against 3.1, I get this error:11:40
Mastah./obj-i686-linux-gnu/src/client/./src/client/mir_debug_api.cpp:32: undefined reference to `mir::protobuf::SurfaceId_default_instance_'11:40
MastahI am not acquinted with either protobuf,  and Mir's code, to be honest, so I could use some guidance how to work around this issue and a adapt to new the changed _default_instance_ behaviour11:40
anpok_Mastah: ok .. sounds like you might then have to adjust the symbols.map of mirprotobuf..  so that the client debug api can access it..13:01
anpok_that would be in src/protovbuf/symbols.map..13:02
Mastahok, I had already tried just removing them, but that didn't work ;)13:12
Mastahin what manner do you think they ought to be changed?13:13
anpok_i dont know exactly what those globals are user for... but the debug api related code lives outside of mirprotobuf so that symbol would have to be exported13:21
anpok_basically you would have to add another line in the symbols.map mentioning that mir::protobuf::SurfaceId_default_instance*;13:22
Mastahok, thank you. I will try to experiment with such lines :)13:29
Mastah@anpok, unfortunately that didn't work; I tried with both mir::protobuf::SurfaceId_default_instance*; as mir::protobuf::SurfaceId_default_instance_*; in the symbol.map, but the same error remains :/14:00
Mastah@anpok, the build errors can be seen here: https://launchpadlibrarian.net/288864417/buildlog_ubuntu-yakkety-i386.mir_0.24.0+16.10.20160815.3-0ubuntu3+maarten2_BUILDING.txt.gz14:00
Mastah@anpok, I gotta go in a moment, I made an issue for it: https://bugs.launchpad.net/mir/+bug/163159714:38
ubot5Ubuntu bug 1631597 in Mir "Protobuf 3.1 compatibility" [Undecided,New]14:39
=== JanC_ is now known as JanC

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!