From: Peter G. <jpg...@gm...> - 2008-04-02 16:22:59
|
On Wed, Apr 2, 2008 at 12:09 PM, Steven Henke <sp...@xe...> wrote: > Today's issues to address... > > I configure iaxclient with: > > ./configure --enable-local-gsm --disable-video --disable-clients > CC='gcc -mno-cygwin' > CPPFLAGS="-I/usr/src/iaxclient_cygwin/portaudio/working/src/common" > LDFLAGS=-L/usr/local/lib --with-ogg=no --with-theora=no --with-video=no > LIBS="-lwsock32" --disable-shared > > and then make and make install. > > When I compile iaxRpt and when it links against the library I get > "undefined reference" errors as shown below. > > What am I doing wrong? When linking iaxRpt, you need to specify -lportaudio and -lspeex in addition to -liaxclient. Iaxclient used to have the sources to speex and portaudio in its tree, but it is somewhat unorthodox to keep dependent sources (like portaudio and speex) in iaxclient's tree, so we are moving away from that. Now most of iaxclient's dependencies are no longer statically linked into libiaxclient.a. This means that the end application (such as iaxRpt) needs to link with iaxclient and iaxclient's dependencies. > < start snip > > ../../lib/libiaxclient.a(audio_portaudio.o): In function `_pa_initialize': > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:1085: > undefined reference to `_Pa_Initialize' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:165: undefined > reference to `_Pa_GetDeviceCount' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:195: undefined > reference to `_Pa_GetDefaultOutputDevice' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:174: undefined > reference to `_Pa_GetDeviceInfo' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:192: undefined > reference to `_Pa_GetDefaultInputDevice' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:195: undefined > reference to `_Pa_GetDefaultOutputDevice' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:1113: > undefined reference to `_Pa_GetDefaultInputDevice' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:1114: > undefined reference to `_Pa_GetDefaultOutputDevice' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:1115: > undefined reference to `_Pa_GetDefaultOutputDevice' > ../../lib/libiaxclient.a(audio_portaudio.o): In function `pa_destroy': > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:992: undefined > reference to `_Pa_Terminate' > /usr/src/iaxclient_cygwin/iaxclient/lib/audio_portaudio.c:992: undefined > reference to `_Pa_Terminate' > ../../lib/libiaxclient.a(codec_speex.o): In function `destroy': > /usr/src/iaxclient_cygwin/iaxclient/lib/codec_speex.c:32: undefined > reference to `_speex_bits_destroy' > /usr/src/iaxclient_cygwin/iaxclient/lib/codec_speex.c:33: undefined > reference to `_speex_bits_destroy' > /usr/src/iaxclient_cygwin/iaxclient/lib/codec_speex.c:34: undefined > reference to `_speex_encoder_destroy' > /usr/src/iaxclient_cygwin/iaxclient/lib/codec_speex.c:35: undefined > reference to `_speex_decoder_destroy' > ../../lib/libiaxclient.a(codec_speex.o): In function `decode': > < end snip > |