`PaUtil_GetRingBufferWriteAvailable' is defined in pa_ringbuffer.c. So the solution should be including this file in the makefile as in step #2, referrer of this file has been there (third_party/build/portaudio/src/pa_ringbuffer.[hc]). You should be able to apply this to other 'similar' undefined reference error. > Right, I moved the jack files in to the src/ directory I don't think you need to move anything there, just create a 'referrer' file, as all other .c/.h files in that directory (third_party/build/portaudio/src). Regards, nanang 2008/6/8 Esben Stien <b0ef at esben-stien.name>: > nanang at pjsip.org writes: > >> 1. modify the makefile (third_party/build/portaudio/os-auto.mak), e.g: >> export CFLAGS += -DPA_USE_JACK=1 >> export PORTAUDIO_OBJS += pa_jack.o > > Right, I've placed it in os-auto.mak.in > >> 2. create a pa_jack.c in the third_party/build/portaudio/src > > Right, I moved the jack files in to the src/ directory > > I also added -ljack to the flags. > > I'm now getting a lot of undefined references, like: > > gcc -o ../bin/pjsua-i686-pc-linux-gnu > output/pjsua-i686-pc-linux-gnu/main.o > output/pjsua-i686-pc-linux-gnu/pjsua_app.o > -L/home/b0ef/.pkg/pjproject-SVN/pjlib/lib > -L/home/b0ef/.pkg/pjproject-SVN/pjlib-util/lib > -L/home/b0ef/.pkg/pjproject-SVN/pjnath/lib > -L/home/b0ef/.pkg/pjproject-SVN/pjmedia/lib > -L/home/b0ef/.pkg/pjproject-SVN/pjsip/lib > -L/home/b0ef/.pkg/pjproject-SVN/third_party/lib > -lpjsua-i686-pc-linux-gnu -lpjsip-ua-i686-pc-linux-gnu > -lpjsip-simple-i686-pc-linux-gnu -lpjsip-i686-pc-linux-gnu > -lpjmedia-codec-i686-pc-linux-gnu -lpjmedia-i686-pc-linux-gnu > -lpjnath-i686-pc-linux-gnu -lpjlib-util-i686-pc-linux-gnu > -lresample-i686-pc-linux-gnu -lmilenage-i686-pc-linux-gnu > -lsrtp-i686-pc-linux-gnu -lgsmcodec-i686-pc-linux-gnu > -lspeex-i686-pc-linux-gnu -lilbccodec-i686-pc-linux-gnu > -lportaudio-i686-pc-linux-gnu -lpj-i686-pc-linux-gnu -lm -luuid -lnsl > -lrt -lpthread -lasound -lssl -lcrypto -ljack > > /home/b0ef/.pkg/pjproject-SVN/third_party/lib/libportaudio-i686-pc-linux-gnu.a(pa_jack.o): In function `BlockingGetStreamWriteAvailable': > pa_jack.c:(.text+0x18e4): undefined reference to `PaUtil_GetRingBufferWriteAvailable' > > Just a one liner, but which file to correct? > > -- > Esben Stien is b0ef at e s a > http://www. s t n m > irc://irc. b - i . e/%23contact > sip:b0ef@ e e > jid:b0ef@ n n > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >