Discussion:
[pjsip] undefined reference to `pj_dns_parse_addr_response'
Shantala R
2016-09-29 05:42:05 UTC
Permalink
Hello All,

I have compiled pjproject-2.5.5 on ubuntu 16.04 laptop successfully. Same
thing I have tried to compile on another PC with ubuntu 16.04 only. I am
getting below error.

output/pjlib-util-test-x86_64-unknown-linux-gnu/main.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/xml.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/encryption.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/stun.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/resolver_test.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/test.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/json_test.o
output/pjlib-util-test-x86_64-unknown-linux-gnu/http_client.o
-lpjlib-util-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lopus
-lssl -lcrypto -luuid -lm -lrt -lpthread -lasound -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -lSDL2 -lv4l2 -lopencore-amrnb
-lopencore-amrwb -L/home/infonet/Downloads/pjproject-2.5.5/pjlib/lib
-L/home/infonet/Downloads/pjproject-2.5.5/pjlib-util/lib
-L/home/infonet/Downloads/pjproject-2.5.5/pjnath/lib
-L/home/infonet/Downloads/pjproject-2.5.5/pjmedia/lib
-L/home/infonet/Downloads/pjproject-2.5.5/pjsip/lib
-L/home/infonet/Downloads/pjproject-2.5.5/third_party/lib -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -lSDL2 -lv4l2 -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -lSDL2 -lv4l2
output/pjlib-util-test-x86_64-unknown-linux-gnu/resolver_test.o: In
function `addr_parser_test':
resolver_test.c:(.text+0x8c5): undefined reference to
`pj_dns_parse_addr_response'
resolver_test.c:(.text+0xac6): undefined reference to
`pj_dns_parse_addr_response'
resolver_test.c:(.text+0xb3e): undefined reference to
`pj_dns_parse_addr_response'
resolver_test.c:(.text+0xba6): undefined reference to
`pj_dns_parse_addr_response'
resolver_test.c:(.text+0xc50): undefined reference to
`pj_dns_parse_addr_response'
output/pjlib-util-test-x86_64-unknown-linux-gnu/resolver_
test.o:resolver_test.c:(.text+0xcff): more undefined references to
`pj_dns_parse_addr_response' follow
collect2: error: ld returned 1 exit status
/home/infonet/Downloads/pjproject-2.5.5/build/rules.mak:124: recipe for
target '../bin/pjlib-util-test-x86_64-unknown-linux-gnu' failed
make[2]: *** [../bin/pjlib-util-test-x86_64-unknown-linux-gnu] Error 1
make[2]: Leaving directory '/home/infonet/Downloads/
pjproject-2.5.5/pjlib-util/build'
Makefile:96: recipe for target 'pjlib-util-test-x86_64-unknown-linux-gnu'
failed
make[1]: *** [pjlib-util-test-x86_64-unknown-linux-gnu] Error 2
make[1]: Leaving directory '/home/infonet/Downloads/
pjproject-2.5.5/pjlib-util/build'
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1

Any help would be appreciated.

thanks and regards
Shantala R
KY
2017-07-03 07:51:01 UTC
Permalink
Hi,

I have solved the same problem as you.

Making sure that the older version of pjproject are completely
uninstalled then re-build the newer version of pjproject again.

uninstall:
At older version pjproject directory.
sudo make uninstall

Hope this will be helpful to you.
KY

Loading...