Bug#394153: twinkle: FTBFS: undefined reference to gsm_decode

Kurt Roeckx kurt at roeckx.be
Thu Oct 19 17:34:28 UTC 2006


Package: twinkle
Version: 1:0.9-2
Severity: serious

Hi,

Your package is failing to build (on amd64) with the following error:
g++  -g -Wall -O2 -D_GNU_SOURCE -L /usr/lib  -o twinkle  main.o libtwinkle.a ../src/parser/libsipparser.a ../src/sdp/libsdpparser.a ../src/sockets/libsocket.a ../src/threads/libthread.a ../src/audio/libaudio.a ../src/audits/libaudits.a ../src/stun/libstun.a -pthread -lccrtp1 -lccgnu2 -ldl -lrt   -lboost_regex -lzrtpcpp -lspeex -lasound -lgsm -lsndfile  -L/usr/lib -lccext2 -lccgnu2 -lz -ldl -lrt -pthread -lresolv -lsndfile -lboost_regex -lboost_regex -lzrtpcpp -lspeex -lasound -lgsm -lsndfile  -L/usr/lib -lccext2 -lccgnu2 -lz -ldl -lrt -pthread
../src/audio/libaudio.a(audio_decoder.o): In function `t_gsm_audio_decoder::dec
ode(unsigned char*, unsigned short, short*, unsigned short)':
/build/buildd/twinkle-0.9/src/audio/audio_decoder.cpp:152: undefined reference
to `gsm_decode(gsm_state*, unsigned char*, short*)'
../src/audio/libaudio.a(audio_decoder.o): In function `~t_gsm_audio_decoder':
/build/buildd/twinkle-0.9/src/audio/audio_decoder.cpp:140: undefined reference
to `gsm_destroy(gsm_state*)'
/build/buildd/twinkle-0.9/src/audio/audio_decoder.cpp:140: undefined reference
to `gsm_destroy(gsm_state*)'
/build/buildd/twinkle-0.9/src/audio/audio_decoder.cpp:140: undefined reference
to `gsm_destroy(gsm_state*)'
../src/audio/libaudio.a(audio_decoder.o): In function `t_gsm_audio_decoder':
/build/buildd/twinkle-0.9/src/audio/audio_decoder.cpp:136: undefined reference
to `gsm_create()'
/build/buildd/twinkle-0.9/src/audio/audio_decoder.cpp:136: undefined reference
to `gsm_create()'
../src/audio/libaudio.a(audio_encoder.o): In function `t_gsm_audio_encoder::enc
ode(short*, unsigned short, unsigned char*, unsigned short, bool&)':
/build/buildd/twinkle-0.9/src/audio/audio_encoder.cpp:140: undefined reference
to `gsm_encode(gsm_state*, short*, unsigned char*)'
../src/audio/libaudio.a(audio_encoder.o): In function `~t_gsm_audio_encoder':
/build/buildd/twinkle-0.9/src/audio/audio_encoder.cpp:132: undefined reference
to `gsm_destroy(gsm_state*)'
/build/buildd/twinkle-0.9/src/audio/audio_encoder.cpp:132: undefined reference
to `gsm_destroy(gsm_state*)'
/build/buildd/twinkle-0.9/src/audio/audio_encoder.cpp:132: undefined reference
to `gsm_destroy(gsm_state*)'
../src/audio/libaudio.a(audio_encoder.o): In function `t_gsm_audio_encoder':
/build/buildd/twinkle-0.9/src/audio/audio_encoder.cpp:128: undefined reference
to `gsm_create()'
/build/buildd/twinkle-0.9/src/audio/audio_encoder.cpp:128: undefined reference
to `gsm_create()'
collect2: ld returned 1 exit status


This looks like it's expecting C++ linkage, but it's a C library.  It
shouldn't have the complete prototype for the function for a C library.


Kurt





More information about the Pkg-voip-maintainers mailing list