From: Mats B. <ma...@gm...> - 2008-04-23 14:32:52
|
On Wed, Apr 23, 2008 at 3:03 PM, Peter Grayson <jpg...@gm...> wrote: > > > > > > The TEA_ADD_LIBS line should list the libraries in this order: > > > -liaxclient -lportaudio -lspeex -lspeexdsp. > > > > > > > I had absolutely no idea this mattered. Now I know. > > Many Thanks. This puts us much further and I don't get > > complaints about missing speex symbols. > > The link stage now reads: > > gcc -pipe -shared -o libtcliaxclient0.2.so iaxclient.o tones.o > > XThreadUtil.o -liaxclient -lportaudio -lspeex -lspeexdsp -lpthread > > -lasound -L/usr/local/lib -ltclstub8.5 > > > > However, I get > > undefined symbol: clock_gettime > > > > which seems to have something to do with my old linux kernel: > > http://ussg.iu.edu/hypermail/linux/net/0304.1/0007.html > > This symbol comes from librt (-lrt). > I added this to configure.in, did autoconf, and rebuilt. Linkage looks like: gcc -pipe -shared -o libtcliaxclient0.2.so iaxclient.o tones.o XThreadUtil.o -liaxclient -lportaudio -lspeex -lspeexdsp -lrt -lpthread -lasound -L/usr/local/lib -ltclstub8.5 So this time I got even further. At least I'm on the right track, but now... This is at least a runtime error. % load /root/C/voip/iaxclient/trunk/contrib/tcl/libtcliaxclient0.2.so Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 379 Expression '*idev = open( idevName, flags )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 810 Expression 'OpenDevices( idevName, odevName, &idev, &odev )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 864 Expression 'PaOssStream_Initialize( stream, inputParameters, outputParameters, streamCallback, userData, streamFlags, ossHostApi )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1239 PortAudio error at Unable to open streams: Invalid error code (value greater than zero) % svn updated Mats |