Problems with Sofia-Sip
hello!
I hope, this is the right thread, otherwise I want to apologise! I'm a total newbie to the topic "sofia-sip" and my experiences in Linux are also not that good, so I wanted to start with a "hello-world" from http://gitorious.org/sofia-sip/pages/SofiaTutorial. I use Ubuntu on a Virtual Box, have run the installation with ./configure make make install and have set the following symbolic links ln -s /usr/local/lib/pkgconfig/sofia-sip-ua.pc /usr/lib/pkgconfig/sofia-sip-ua.pc ln -s /usr/local/lib/pkgconfig/sofia-sip-ua-glib.pc /usr/lib/pkgconfig/sofia-sip-ua-glib.pc sudo ln -s libsofia-sip-ua.so /usr/lib/libsofia-sip-ua.so (although I think it's not necessary) Now my problem is the following: when I run the makefile, these error occur: user@shafner:~/Sofia_SIP/Wrapper/HelloSofiaSIP$ make gcc `pkg-config sofia-sip-ua --cflags --libs` -DCALLER -g -O0 -L/usr/lib/libsu.a -L/usr/lib/libsofia-sip-ua.so -L/usr/lib/libsofia-sip-ua.so.0 -L/usr/lib/libsofia-sip-ua.so.0.6.0 -L/usr/lib/pkgconfig/sofia-sip-ua.pc -L/usr/lib/pkgconfig/sofia-sip-ua-glib.pc -L/usr/lib -lsofia-sip-ua \ -o hello-caller hello.c /tmp/ccd8nC1t.o: In function `main': /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:32: undefined reference to `su_init' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:33: undefined reference to `su_root_create' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:40: undefined reference to `nutag_url' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:40: undefined reference to `nua_create' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:55: undefined reference to `su_root_run' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:58: undefined reference to `nua_destroy' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:59: undefined reference to `su_root_destroy' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:60: undefined reference to `su_deinit' /tmp/ccd8nC1t.o: In function `event_callback': /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:78: undefined reference to `nua_event_name' /tmp/ccd8nC1t.o: In function `send_message': /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:88: undefined reference to `siptag_to_str' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:88: undefined reference to `nua_handle' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:90: undefined reference to `siptag_payload_str' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:90: undefined reference to `siptag_content_type_str' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:90: undefined reference to `nua_message' /home/user/Sofia_SIP/Wrapper/HelloSofiaSIP/hello.c:95: undefined reference to `nua_handle_destroy' collect2: ld returned 1 exit status make: *** [hello-caller] Error 1 The functions, which are displayed above, belong to the su part of sofia-sip. The including of su.h (so that I can see that at least the errors with su_init and su_deinit are solved) in hello.c didn't change anything. I also tried to modify the makefile, now it's a bit of a mess, because I added some linkings successively: CFLAGS = -g -O0 all: hello-caller hello-callee hello-caller: hello.c gcc `pkg-config sofia-sip-ua --cflags --libs` -DCALLER $(CFLAGS) -L/usr/lib/libsu.a -L/usr/lib/libsofia-sip-ua.so -L/usr/lib/pkgconfig/sofia-sip-ua.pc -L/usr/lib/pkgconfig/sofia-sip-ua-glib.pc -L/usr/lib -lsofia-sip-ua \ -o hello-caller hello.c hello-callee: hello.c gcc `pkg-config sofia-sip-ua --cflags --libs` $(CFLAGS) -L/usr/lib/libsu.a -L/usr/lib/pkgconfig/sofia-sip-ua.pc -L/usr/lib/libsofia-sip-ua.so -L/usr/lib/pkgconfig/sofia-sip-ua-glib.pc -L/usr/lib -lsofia-sip-ua \ -o hello-callee hello.c clean: rm hello-caller hello-callee Does anyone of you please could help me or have experience with sofia sip? Best regards, nosica |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...ia-sip-928640/.
If you want to move your original thread to a more appropriate place, click on the Report button of your own post and ask for moving. |
All times are GMT -5. The time now is 02:07 AM. |