[sndtools] Compiling rt_lpc v1.0

Jim Lemon jim at bitwrit.com.au
Mon Sep 2 07:12:13 EDT 2013


Hi,
I am attempting to compile rt_lpc on the following system:

DELL Core 2 Duo
Fedora 14
KDE 4.6.5

Initially I got a string of errors with:

make linux-alsa

RtAudio.cpp: In member function ‘void RtApi::openStream(int, int, int, 
int, RtAudioFormat, int, int*, int)’:
RtAudio.cpp:234:80: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp:239:90: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp:244:69: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp:250:94: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp:257:92: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp:339:76: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp:341:95: error: ‘sprintf’ was not declared in this scope
RtAudio.cpp: In member function ‘RtAudioDeviceInfo 
RtApi::getDeviceInfo(int)’:
RtAudio.cpp:355:70: error: ‘sprintf’ was not declared in this scope
make[1]: *** [RtAudio.o] Error 1
make[1]: Leaving directory `/home/jim/Downloads/rt_lpc-1.0/src'
make: [linux-alsa] Error 2 (ignored)

I added:

#include <stdio.h>

to RtAudio.cpp, which fixed the above, but then got:

/usr/bin/ld: Thread.o: undefined reference to symbol 
'pthread_cancel@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.2.5' is defined in DSO 
/lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation

At this point, I am out of my depth. Can anyone suggest a way around 
this problem? Thanks.

Jim


More information about the sndtools mailing list