Доброго времени суток. Объясню ситуацию. Я уже собирал эту библиотеку следующим образом и все работало хорошо:
./configure --prefix=/usr --enable-shared CFLAGS='-O2 -DNDEBUG'
make dep
make
sudo make install
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_cancellation'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_state_init'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_capture'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_preprocess_state_destroy'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_state_reset'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_playback'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_preprocess_state_init'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_ctl'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_echo_state_destroy'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_preprocess_ctl'
/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/lib/libpjmedia.so: undefined reference to `speex_preprocess_run'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/vanya/tmp/pjproject/pjproject-2.6/build/rules.mak:125: ../bin/pjmedia-test-x86_64-unknown-linux-gnu] Error 1
make[2]: Leaving directory '/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/build'
make[1]: *** [Makefile:243: pjmedia-test-x86_64-unknown-linux-gnu] Error 2
make[1]: Leaving directory '/home/vanya/tmp/pjproject/pjproject-2.6/pjmedia/build'
make: *** [Makefile:14: all] Error 1
[vanya@Alice ~]$ ls -l /usr/lib/ | grep -i speex
lrwxrwxrwx 1 root root 20 Jun 26 2015 libspeexdsp.so -> libspeexdsp.so.1.5.0
lrwxrwxrwx 1 root root 20 Jun 26 2015 libspeexdsp.so.1 -> libspeexdsp.so.1.5.0
-rwxr-xr-x 1 root root 76024 Jun 26 2015 libspeexdsp.so.1.5.0
lrwxrwxrwx 1 root root 17 Dec 22 2016 libspeex.so.1 -> libspeex.so.1.5.1
-rwxr-xr-x 1 root root 100680 Dec 22 2016 libspeex.so.1.5.1
[vanya@Alice ~]$ ldd /usr/lib/libspeex.so.1.5.1
linux-vdso.so.1 (0x00007ffd5ffaf000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fbf823ce000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fbf82028000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007fbf828f9000)
pacman -Qkk 2>&1 | grep "No such file or directory"