[Pkg-ime-devel] Bug#647046: xsunpinyin: FTBFS with LDFLAGS=-Wl, -Bsymbolic-functions -Wl, -z, relro

Julian Taylor jtaylor.debian at googlemail.com
Sat Oct 29 19:49:40 UTC 2011

Source: xsunpinyin
Version: 2.0.3-2
Severity: normal

Not sure if this is an bug in scons or xsunpinyin, please reassign

If you add following to debian/rules the build failes:
export LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro

Log snippet:
g++ -o xsunpinyin "-Wl,-Bsymbolic-functions -Wl,-z,relro"
-export-dynamic -pthread ic.o ic_gtk.o ic_skin.o skin.o ui.o main.o
settings.o sunpinyin_preedit.o sunpinyin_preedit_gtk.o
sunpinyin_preedit_skin.o xim.o xim_trigger.o xmisc.o -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0
-lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lX11
-lsunpinyin -lsqlite3 libIMdkit.a
/usr/bin/ld: unrecognized option '-Bsymbolic-functions -Wl'

here is a full build log.

The issue are not the flags themselves but the quoting of the flag.
It will work if you quote LDFLAGS:
LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"

as the build then uses this:
""-Wl,-Bsymbolic-functions -Wl,-z,relro""

but this is hardly how it should work.
E.g. dpkg-buildflags outputs its flags unquoted [0]

[0] http://lists.debian.org/debian-devel-announce/2011/09/msg00001.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ime-devel/attachments/20111029/2d7c4456/attachment.pgp>

More information about the Pkg-ime-devel mailing list