Package: src:plplot
Version: 5.9.9-2
Severity: normal

-fvisibility=hidden set in debian/rules breaks gnudatalanguage bindings.
it removes the plP_w3wc? functions from plcvt.c:

CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -fvisibility=hidden

nm ./debian/build_tmp/src/libplplotd.so | grep w3wc
gives this result when not build with =hidden
000000000001d000 T plP_gw3wc
0000000000023410 T plP_w3wcx
0000000000023440 T plP_w3wcy
0000000000023490 T plP_w3wcz

and only this if built with =hidden.
000000000001d000 T plP_gw3w

debian is "lucky" in that sense that the CFLAGS are not exported to the
build, so the symbols are there and gnudatalanguage builds. See the
buildlogs.
In Ubuntu the flag is added and gnudatalanguage breaks.
Not sure if this is a bug in the packaging, debian or ubuntu.

please reassign the bug to gnudatalanguage is the symbols are meant to
be hidden and gnudatalanguage should not using them.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to