Re: [Sofia-sip-devel] Compiling Sofia-Sip with MinGW

2009-06-15 Thread Jonas Jalminger
Dear Marcelo!

What the makefile fails to include is the file su_win32_port.c. There 
are a bunch of ways to accomplish this. The simplest is to just add it 
to the makefile. However this is not the only problem when building 
sofia-sip on mingw.

Have a look at older posts in the mailing list. Find the post from 
2009-03-06 to 2009-03-13 to find some answers. However, it never really 
worked for me, well the compiling did but later I never managed to send 
any SIP message due to some black listing problems which did not appear 
for the same code both using Visula studio on windows or Linux.

Please let us know if you got it to work.

Cheers,
Jonas

Marcelo de Sá Mendoza skrev:
 Hi all,

 I am having a problem to compile Sofia for windows. I'm getting the 
 following errors:

 ../su/ .libs/libsu.a( su_port.o ): In function 'su_default_port_create':
 C:/mysys/1.0/home/marcelo.
 mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:63: undefined 
 reference to 'su_wsaevent_port_create'
 ../su/ .libs/libsu.a( su_port.o ): In function 'su_default_clone_start':
 C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:86:
  
 undefined reference to 'su_wsaevent_clone_start'
 ../su/ .libs/libsu.a( su_port.o ): In funciont 
 'su_port_set_system_preferences':
 C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:142:
  
 undefined reference to 'su_wsaevent_port_create'
 C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:143:
  
 undefined reference to 'su_wsaevent_clone_start'

 collect2: ld returned 1 exit status
 make[4]: *** [stunt.exe] Error 1
 make[4]: Leaving directory 
 '/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/stun'
 make[3]: ***[all] Error 2
 make[3]: Leaving directory 
 '/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/stun'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory 
 '/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory '/home/marcelo.mendoza/sofia-sip-1.12.10/'
 make: *** [all] Error 2

 I would be glad if someone of you can help me. Thanks a lot!
 

 --
 Crystal Reports - New Free Runtime and 30 Day Trial
 Check out the new simplified licensing option that enables unlimited
 royalty-free distribution of the report engine for externally facing 
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 

 ___
 Sofia-sip-devel mailing list
 Sofia-sip-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
   


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] Compiling Sofia-Sip with MinGW

2009-06-12 Thread Marcelo de Sá Mendoza
Hi all,

I am having a problem to compile Sofia for windows. I'm getting the
following errors:

../su/ .libs/libsu.a( su_port.o ): In function 'su_default_port_create':
C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:63:
undefined reference to 'su_wsaevent_port_create'
../su/ .libs/libsu.a( su_port.o ): In function 'su_default_clone_start':
C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:86:
undefined reference to 'su_wsaevent_clone_start'
../su/ .libs/libsu.a( su_port.o ): In funciont
'su_port_set_system_preferences':
C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:142:
undefined reference to 'su_wsaevent_port_create'
C:/mysys/1.0/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/su/su_port.c:143:
undefined reference to 'su_wsaevent_clone_start'

collect2: ld returned 1 exit status
make[4]: *** [stunt.exe] Error 1
make[4]: Leaving directory
'/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/stun'
make[3]: ***[all] Error 2
make[3]: Leaving directory
'/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/stun'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
'/home/marcelo.mendoza/sofia-sip-1.12.10/libsofia-sip-ua/'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/marcelo.mendoza/sofia-sip-1.12.10/'
make: *** [all] Error 2

I would be glad if someone of you can help me. Thanks a lot!
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Compiling sofia-sip with TLS on windows

2008-11-27 Thread Tiago Katcipis
with Paulo Pizarro's help i was able to compile sofia-sip with TLS support.
Im sendig the patch with the diffs. The changes where the following:

The hint that pekka gave was right, but that was sufficient to compile only
tport_tls.c, it was also needed to change tport_type_tls.c, the problem was
the __funct__ function that is not defined on windows and the acess function
that is not defined on windows either. So when this functions are used a
ifdef is used to compile with functions that are defined on windows ( _acess
for example ). There is also an ifdef to include io.h from windows.

Besides this there is the config.h file that must be edited, the following
macros must be defined to 1.

HAVE_TLS
HAVE_OPENSSL
HAVE_OPENSSL_TLS1_H

after applying the patch, defining the macros and linking the msvs project
with openssl it should compile just fine, at least here is compiling. Im
using here openssl-0.9.8i.

i would like to thank pekka again, your help was fundamental, i would waste
a lot of time to realize that the include order was generating the error. I
hope the patch helps.

Best regards

Tiago César Katcipis

On Wed, Nov 26, 2008 at 5:17 PM, Pekka Pessi [EMAIL PROTECTED] wrote:

 2008/11/26 Tiago Katcipis [EMAIL PROTECTED]:
  Im trying to compile sofia-sip on windows with TLS support and im having
 a
  little trouble on doing that. When i include the tport_tls.c and the
  tport_tls.h on the project i got the following error:
 
  C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(109) : error
  C2011: 'fd_set' : 'struct' type redefinition
  C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(144) : warning
  C4005: 'FD_SET' : macro redefinition
  C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock.h(88) :
 see
  previous definition of 'FD_SET'

 Looks like openssl includes winsock.h and sofia-sip/su_wait.h then
 includes winsock2.h. You can try to move
 sofia-sip includes before openssl, perhaps openssl then does not try
 to use winsock.h.

  the error keeps going on saying that a lot of things are being redefined,
 i
  dont changed anything...just added the files. I already tried to define
  HAVE_TLS and HAVE_OPENSSL on the win32/config.h, but the error is the
 same.
 
  Can anyone tell me what im doing wrong, or at least give a hint, im kinda
  lost? i did not find any doc on how to compile on win32 with TLS.

 Sorry, I don't think we have ever done win32 and tls compilation with
 sofia-sip.

 If you succeed, please keep us posted.

 --
 Pekka.Pessi mail at nokia.com




-- 
it might be a profitable thing to learn Java, but it has no intellectual
value whatsoever Alexander Stepanov


winTLS.patch
Description: Binary data
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Compiling sofia-sip with TLS on windows

2008-11-27 Thread Michael Jerris
To simplify this patch and make it more consistent with the rest of  
the code, add the following at the top of tport_type_tls, this should  
solve all the issues in that file without your patch, can you confirm?


#if HAVE_FUNC
#elif HAVE_FUNCTION
#define __func__ __FUNCTION__
#else
static char const __func__[] = tport_type_tls;
#endif

#if HAVE_WIN32
#include io.h
#define access(_filename, _mode) _access(_filename, _mode)
#endif


On Nov 27, 2008, at 8:13 AM, Tiago Katcipis wrote:

with Paulo Pizarro's help i was able to compile sofia-sip with TLS  
support. Im sendig the patch with the diffs. The changes where the  
following:


The hint that pekka gave was right, but that was sufficient to  
compile only tport_tls.c, it was also needed to change  
tport_type_tls.c, the problem was the __funct__ function that is not  
defined on windows and the acess function that is not defined on  
windows either. So when this functions are used a ifdef is used to  
compile with functions that are defined on windows ( _acess for  
example ). There is also an ifdef to include io.h from windows.


Besides this there is the config.h file that must be edited, the  
following macros must be defined to 1.


HAVE_TLS
HAVE_OPENSSL
HAVE_OPENSSL_TLS1_H

after applying the patch, defining the macros and linking the msvs  
project with openssl it should compile just fine, at least here is  
compiling. Im using here openssl-0.9.8i.


i would like to thank pekka again, your help was fundamental, i  
would waste a lot of time to realize that the include order was  
generating the error. I hope the patch helps.


Best regards

Tiago César Katcipis

On Wed, Nov 26, 2008 at 5:17 PM, Pekka Pessi [EMAIL PROTECTED] wrote:
2008/11/26 Tiago Katcipis [EMAIL PROTECTED]:
 Im trying to compile sofia-sip on windows with TLS support and im  
having a

 little trouble on doing that. When i include the tport_tls.c and the
 tport_tls.h on the project i got the following error:

 C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(109) :  
error

 C2011: 'fd_set' : 'struct' type redefinition
 C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(144) :  
warning

 C4005: 'FD_SET' : macro redefinition
 C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE 
\winsock.h(88) : see

 previous definition of 'FD_SET'

Looks like openssl includes winsock.h and sofia-sip/su_wait.h then
includes winsock2.h. You can try to move
sofia-sip includes before openssl, perhaps openssl then does not try
to use winsock.h.

 the error keeps going on saying that a lot of things are being  
redefined, i
 dont changed anything...just added the files. I already tried to  
define
 HAVE_TLS and HAVE_OPENSSL on the win32/config.h, but the error is  
the same.


 Can anyone tell me what im doing wrong, or at least give a hint,  
im kinda

 lost? i did not find any doc on how to compile on win32 with TLS.

Sorry, I don't think we have ever done win32 and tls compilation  
with sofia-sip.


If you succeed, please keep us posted.

--
Pekka.Pessi mail at nokia.com



--
it might be a profitable thing to learn Java, but it has no  
intellectual value whatsoever Alexander Stepanov
 
winTLS 
.patch 
 
-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK  win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100url=/___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] Compiling sofia-sip with TLS on windows

2008-11-26 Thread Tiago Katcipis
Im trying to compile sofia-sip on windows with TLS support and im having a
little trouble on doing that. When i include the tport_tls.c and the
tport_tls.h on the project i got the following error:

C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(109) : error
C2011: 'fd_set' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(144) : warning
C4005: 'FD_SET' : macro redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock.h(88) : see
previous definition of 'FD_SET'
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(153) : error
C2011: 'timeval' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(209) : error
C2011: 'hostent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(222) : error
C2011: 'netent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(229) : error
C2011: 'servent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(241) : error
C2011: 'protoent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(397) : error
C2011: 'sockaddr_in' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(407) : error
C2011: 'WSAData' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(467) : warning
C4005: 'SO_DONTLINGER' : macro redefinition


the error keeps going on saying that a lot of things are being redefined, i
dont changed anything...just added the files. I already tried to define
HAVE_TLS and HAVE_OPENSSL on the win32/config.h, but the error is the same.

Can anyone tell me what im doing wrong, or at least give a hint, im kinda
lost? i did not find any doc on how to compile on win32 with TLS.

sorry for the lousy english

best regards

Tiago

-- 
it might be a profitable thing to learn Java, but it has no intellectual
value whatsoever Alexander Stepanov
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Compiling sofia-sip with TLS on windows

2008-11-26 Thread Pekka Pessi
2008/11/26 Tiago Katcipis [EMAIL PROTECTED]:
 Im trying to compile sofia-sip on windows with TLS support and im having a
 little trouble on doing that. When i include the tport_tls.c and the
 tport_tls.h on the project i got the following error:

 C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(109) : error
 C2011: 'fd_set' : 'struct' type redefinition
 C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(144) : warning
 C4005: 'FD_SET' : macro redefinition
 C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock.h(88) : see
 previous definition of 'FD_SET'

Looks like openssl includes winsock.h and sofia-sip/su_wait.h then
includes winsock2.h. You can try to move
sofia-sip includes before openssl, perhaps openssl then does not try
to use winsock.h.

 the error keeps going on saying that a lot of things are being redefined, i
 dont changed anything...just added the files. I already tried to define
 HAVE_TLS and HAVE_OPENSSL on the win32/config.h, but the error is the same.

 Can anyone tell me what im doing wrong, or at least give a hint, im kinda
 lost? i did not find any doc on how to compile on win32 with TLS.

Sorry, I don't think we have ever done win32 and tls compilation with sofia-sip.

If you succeed, please keep us posted.

-- 
Pekka.Pessi mail at nokia.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Compiling Sofia-SIP on Cygwin

2007-06-01 Thread Pekka Pessi
2007/5/27, Toufik Ahmed [EMAIL PROTECTED]:
 I want to compile Sofia SIP on cygwin to integrate it in a VLC
 (VideoLan) which  was compiled on cygwin to generate an EXE file.
 My sofia SIP version is sofia-sip-1.12.5

 The main issue when compiling Sofia-SIP is related to pthread.
 Has any body succeed to compile it on Cygwin ?
 is there any library already available for cygwin that one can use them
 for dynamic linking.

I'm under the impression that Cygwin already had libthread. Are you
trying to compile sofia-sip as a Cygwin library or are you just using
cygwin toolchain to compile a native Win32 dll library?

I just tried to compile sofia-sip on my cygwin installation, and it
detected the built-in phtread just fine (the warning about rwlocks is
moot since 1.12.4). configure failed on 64-bit ints, perhaps I should
upgrade my gcc

-- 
Pekka.Pessi mail at nokia.com

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] Compiling Sofia-SIP on Cygwin

2007-05-27 Thread Toufik Ahmed
Hello

I want to compile Sofia SIP on cygwin to integrate it in a VLC
(VideoLan) which  was compiled on cygwin to generate an EXE file.
My sofia SIP version is sofia-sip-1.12.5

The main issue when compiling Sofia-SIP is related to pthread.

Has any body succeed to compile it on Cygwin ?
is there any library already available for cygwin that one can use them
for dynamic linking.
Is there anyone that can share it experience in this issue...

Any help is highly appreciated

Best regards
Toufik




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Compiling sofia-sip

2007-03-16 Thread Deniz Koçak

On 3/16/07, Miguel Freitas [EMAIL PROTECTED] wrote:




autogen.cmd
for %f in (config.h..\libsofia-sip-ua\features\sofia-sip\sofia_features.h) do 
gawk -v
BINMODE=rw -f version.awk ..\configure.ac OUT=1 %f.in  1%f
gawk -v BINMODE=rw -f version.awk ..\configure.ac OUT=1 config.h.in  1
config.h
gawk -v BINMODE=rw -f version.awk ..\configure.ac OUT=1
..\libsofia-sip-ua\features\sofia-sip\sofia_features.h.in
1..\libsofia-sip-ua\features\sofia-sip\sofia_features.h
gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
module=msg_test NO_MIDDLE=1 NO_LAST=1
PR=../libsofia-sip-ua/msg/test_protos.h ../libsofia-sip-ua/msg/test_class.h
0NUL
*** FAILED ***



The instructions are below that I followed yesterday :) ( I am very
very new to sofia-sip :)  )

If the problem results from the awk I recommend gawk version 3.1.3 from
gnuwin32 project (http://gnuwin32.sourceforge.net/packages/gawk.htm). When
you use this version you should uncomment a line in build_sources.cmd like
below.

:: in Win32 exit 0; from gawk 3.1.3 gets converted to errorlevel 1
:: If you have gawk 3.1.3 uncomment the following line
@set MSG_AWK=gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
success=-1

If you look carefully you can see the warning about this issue.

NOTE:

NOTE: Remember to install pthreadVC2.dll to your path, too!
NOTE:



Yes, put this file in your path variable for your windows
environment.Youcan see your path by typing 'set' in your command line.

 I am using 1.12.4 because as replied previously in this thread there is a
bug in 1.12.5 which prevents it from building in MSVC (windows environment)
successfully.

 Then I have copied header files into Visual Studio include directory like
C:\Program Files\Microsoft Visual Studio\VC98\Include\sofia-sip. I have
modified install.cmd file to automate the job of installing necessary files.
Don't worry it works. :)

 And another step is copying *.lib and *.dll files to compile/run
succesfully. After the build operation of SofiaSip.dsw it should make a
libsofia_sip_ua.lib and libsofia_sip_ua.dll. Copy the .lib file to the VC
lib directory like C:\Program Files\Microsoft Visual Studio\VC98\Lib. This
path and the above path can be changed by adding the diretory to your VC
project configuration.

  I am not sure now whether I forgot something or not but I hope you will
be successful. I am trying to implement a simple sdp parser and it works.
There is no problem with compiling/running. Good luck. :)

P.S: If I have a fault or incomplete explanation I would like to here from
experienced developers.

I would be most appreciated...

Regards,
Miguel Freitas


On 3/15/07, Kai Vehmanen [EMAIL PROTECTED] wrote:

 Hi,

 On Thu, 15 Mar 2007, Deniz Koçak wrote:

  _su_wsaevent_port_create
  su_port.obj : error LNK2001: unresolved external symbol
  _su_wsaevent_clone_start
  Debug/libsofia_sip_ua.dll : fatal error LNK1120: 2 unresolved
 externals
  Error executing link.exe.
 
  libsofia_sip_ua.dll - 3 error(s), 0 warning(s)

 this is caused by a bug in the 1.12.5 release (will be fixed in 1.12.6).
 This is fixed already in our development tree at:

   - http://sofia-sip.org/repos/sofia-sip

 You can get the latest sources with the darcs tool...

   cmd darcs get http://sofia-sip.org/repos/sofia-sip

 --
   under work: Sofia-SIP at http://sofia-sip.sf.net

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Sofia-sip-devel mailing list
 Sofia-sip-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel




--
- - - - - - - -
- Telecommunications Institute   -
- Instituto de Telecomunicacoes  -
- Aveiro, Portugal -
- www.it.pt -
- - - - - - - -
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash

Re: [Sofia-sip-devel] Compiling sofia-sip

2007-03-16 Thread Miguel Freitas

Thanks for your detailed tutorial! :)
I did see that comment before when I started looking into sofia-sip, but
somehow I forgot it :(
The autogen.cmd now concludes (using gawk 3.1.0) and I already have the
pthreadVC2.dll (http://sources.redhat.com/pthreads-win32/) installed in the
system PATH.
I will try now to compile using MS Visual Studio.

I've managed to compile both sofia-sip and sofsip-cli in linux, and also
managed to add native support for the SIP IMS P-Headers and register with
Open IMS Core... But now I was interested in trying to make it run over a
Windows Mobile based device (not yet sure if it is possible). Maybe later I
could start a new thread over the sofia-sip list regarding that subject.

Thanks,
Miguel Freitas


On 3/16/07, Deniz Koçak [EMAIL PROTECTED] wrote:




On 3/16/07, Miguel Freitas [EMAIL PROTECTED] wrote:



 autogen.cmd
 for %f in (config.h..\libsofia-sip-ua\features\sofia-sip\sofia_features.h) 
do gawk -v
 BINMODE=rw -f version.awk ..\configure.ac OUT=1 %f.in  1%f
 gawk -v BINMODE=rw -f version.awk ..\configure.ac OUT=1 config.h.in
 1config.h
 gawk -v BINMODE=rw -f version.awk ..\configure.ac OUT=1
 ..\libsofia-sip-ua\features\sofia-sip\sofia_features.h.in
 1..\libsofia-sip-ua\features\sofia-sip\sofia_features.h
 gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
 module=msg_test NO_MIDDLE=1 NO_LAST=1
 PR=../libsofia-sip-ua/msg/test_protos.h ../libsofia-sip-ua/msg/test_class.h
 0NUL
 *** FAILED ***


 The instructions are below that I followed yesterday :) ( I am very
very new to sofia-sip :)  )

 If the problem results from the awk I recommend gawk version 3.1.3from 
gnuwin32 project (
http://gnuwin32.sourceforge.net/packages/gawk.htm). When you use this
version you should uncomment a line in build_sources.cmd like below.

:: in Win32 exit 0; from gawk 3.1.3 gets converted to errorlevel 1
:: If you have gawk 3.1.3 uncomment the following line
@set MSG_AWK=gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
success=-1

 If you look carefully you can see the warning about this issue.

NOTE:
 NOTE: Remember to install pthreadVC2.dll to your path, too!
 NOTE:


 Yes, put this file in your path variable for your windows environment.Youcan 
see your path by typing 'set' in your command line.

  I am using 1.12.4 because as replied previously in this thread there is
a bug in 1.12.5 which prevents it from building in MSVC (windows
environment) successfully.

  Then I have copied header files into Visual Studio include directory
like C:\Program Files\Microsoft Visual Studio\VC98\Include\sofia-sip. I have
modified install.cmd file to automate the job of installing necessary
files. Don't worry it works. :)

  And another step is copying *.lib and *.dll files to compile/run
succesfully. After the build operation of SofiaSip.dsw it should make a
libsofia_sip_ua.lib and libsofia_sip_ua.dll. Copy the .lib file to the VC
lib directory like C:\Program Files\Microsoft Visual Studio\VC98\Lib. This
path and the above path can be changed by adding the diretory to your VC
project configuration.

   I am not sure now whether I forgot something or not but I hope you will
be successful. I am trying to implement a simple sdp parser and it works.
There is no problem with compiling/running. Good luck. :)

P.S: If I have a fault or incomplete explanation I would like to here from
experienced developers.

I would be most appreciated...
 Regards,
 Miguel Freitas


 On 3/15/07, Kai Vehmanen [EMAIL PROTECTED] wrote:

   Hi,
 
  On Thu, 15 Mar 2007, Deniz Koçak wrote:
 
   _su_wsaevent_port_create
   su_port.obj : error LNK2001: unresolved external symbol
   _su_wsaevent_clone_start
   Debug/libsofia_sip_ua.dll : fatal error LNK1120: 2 unresolved
  externals
   Error executing link.exe.
  
   libsofia_sip_ua.dll - 3 error(s), 0 warning(s)
 
  this is caused by a bug in the 1.12.5 release (will be fixed in 1.12.6
  ).
  This is fixed already in our development tree at:
 
- http://sofia-sip.org/repos/sofia-sip
 
  You can get the latest sources with the darcs tool...
 
cmd darcs get http://sofia-sip.org/repos/sofia-sip
 
  --
under work: Sofia-SIP at http://sofia-sip.sf.net
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Sofia-sip-devel mailing list
  Sofia-sip-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
 
 


 --
 - - - - - - - -
 - Telecommunications Institute   -
 - Instituto de Telecomunicacoes  -
 - Aveiro, Portugal -
 - www.it.pt -
 - - - -  

Re: [Sofia-sip-devel] Compiling sofia-sip

2007-03-15 Thread Kai Vehmanen

Hi,

On Thu, 15 Mar 2007, Deniz Koçak wrote:


_su_wsaevent_port_create
su_port.obj : error LNK2001: unresolved external symbol
_su_wsaevent_clone_start
Debug/libsofia_sip_ua.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

libsofia_sip_ua.dll - 3 error(s), 0 warning(s)


this is caused by a bug in the 1.12.5 release (will be fixed in 1.12.6).
This is fixed already in our development tree at:

 - http://sofia-sip.org/repos/sofia-sip

You can get the latest sources with the darcs tool...

 cmd darcs get http://sofia-sip.org/repos/sofia-sip

--
 under work: Sofia-SIP at http://sofia-sip.sf.net-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel