Bug#783258: flac: FTBFS due to missing symbols

James Cowgill james410 at cowgill.org.uk
Sat Apr 25 12:34:33 UTC 2015


On Sat, 2015-04-25 at 14:16 +0200, Fabian Greffrath wrote:
> Control: tags -1 + help
> 
> Hi Sebastian,
> 
> Am Freitag, den 24.04.2015, 21:27 +0200 schrieb Sebastian Ramacher: 
> > | - _ZN4FLAC7Decoder4File13read_callbackEPhPm at Base 1.3.0
> > | + _ZN4FLAC7Decoder4File13read_callbackEPhPj at Base 1.3.1-1
> > | +#MISSING: 1.3.1-1# _ZN4FLAC7Decoder4File13read_callbackEPhPm at Base 1.3.0
> 
> WTF is wrong with C++ symbols files? The symbols are all there, they
> differ just in name by their last character.

$ c++filt
_ZN4FLAC7Decoder4File13read_callbackEPhPm
_ZN4FLAC7Decoder4File13read_callbackEPhPj
FLAC::Decoder::File::read_callback(unsigned char*, unsigned long*)
FLAC::Decoder::File::read_callback(unsigned char*, unsigned int*)

And read_callback is defined like this in the include file:
virtual ::FLAC__StreamDecoderReadStatus read_callback(FLAC__byte buffer[], size_t *bytes);

size_t changes between long and int on different platforms and therefore
different symbols are generated.

You can use pkgkde-symbolshelper from pkg-kde-tools which will allow you
to insert {size_t} substitutions into the symbols files. I had to do a
lot of this (and mark lots of symbols optional) when I packaged libsfml
and I think it turned out ok.

Eg:
https://sources.debian.net/src/libsfml/2.1%2Bdfsg2-1/debian/libsfml-network2.symbols
https://sources.debian.net/src/libsfml/2.1%2Bdfsg2-1/debian/rules

James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150425/956c283c/attachment-0001.sig>


More information about the pkg-multimedia-maintainers mailing list