LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 02-10-2012, 07:21 AM   #1
nosica
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
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
 
Old 02-10-2012, 07:34 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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.

Last edited by colucix; 02-10-2012 at 07:36 AM.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Sofia-Sip nosica Linux - Networking 2 02-14-2012 06:57 AM
Latest Voipswitch 2.0.745+webportal+sip Tunnel+sip Dialer(costumize)+pc2phone+web/ani solution4voip Linux - Software 1 02-16-2007 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration