Re: [Sofia-sip-devel] 1.12.8 compilation error with openssl 0.9.6

2008-02-01 Thread Pekka Pessi
2008/1/30, Fabio Margarido [EMAIL PROTECTED]:
 On Jan 30, 2008 5:13 PM, Michael Jerris [EMAIL PROTECTED] wrote:
  This code was added so the debugging from openssl would hit the sofia
  callbacks.  if you don't need tls support, you could easily build
  without and not have the issue at all, otherwise, commenting that out
  should be fine.  Maybe we need to add  a configure check if that
  function is there and if so use it, otherwise, just print to stdout
  like it has??

 I don't need tls yet, but probably will in the not-so-distant future.
 A fallback to stdout would be great, so I don't have to upgrade my
 openssl.

Sorry for the TLS problems... Looks like on all my boxes that have
older OpenSSL the OpenSSL sucks so hard that I've disabled the TLS
build altogether.

I looked at the prob and it seems to me that it is not really
necessary to use ERR_print_errors_cb(), but it seems to me that the
ERR_get_error() and ERR_*_error_string() can do the job properly.

Please give a look to the patches in darcs, and see if they work on
your SSL version...


-- 
Pekka.Pessi mail at nokia.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] 1.12.8 compilation error with openssl 0.9.6

2008-01-30 Thread Michael Jerris
This code was added so the debugging from openssl would hit the sofia  
callbacks.  if you don't need tls support, you could easily build  
without and not have the issue at all, otherwise, commenting that out  
should be fine.  Maybe we need to add  a configure check if that  
function is there and if so use it, otherwise, just print to stdout  
like it has??

Mike

On Jan 30, 2008, at 2:00 PM, Fabio Margarido wrote:

 Hi there,

 I tried to compile sofia-sip-1.12.8 today on a machine with an older
 kernel and older libraries and got this error:

 gcc -Wall -g -O2 -o .libs/sip-options sip-options.o
 ../libsofia-sip-ua/.libs/libsofia-sip-ua.so -lssl -lcrypto -lpthread
 -Wl,--rpath -Wl,/usr/local/lib
 ../libsofia-sip-ua/.libs/libsofia-sip-ua.so: undefined reference to
 `ERR_print_errors_cb'

 I dug around and googled a bit and found out that my machine's openssl
 is version 0.9.6, and apparently ERR_print_errors_cb isn't present in
 0.9.6, only from 0.9.7 on. Is it really a pre-requisite for sofia now
 to have openssl = 0.9.7? If so, shouldn't the configure script check
 for this?
 As I cannot change the library version on this machine, I simply
 commented out the lines in tport_tls.c which called
 ERR_print_errors_cb. This shouldn't give me major headaches, right?
 Thanks.

 Fabio Margarido

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] 1.12.8 compilation error with openssl 0.9.6

2008-01-30 Thread Fabio Margarido
On Jan 30, 2008 5:13 PM, Michael Jerris [EMAIL PROTECTED] wrote:
 This code was added so the debugging from openssl would hit the sofia
 callbacks.  if you don't need tls support, you could easily build
 without and not have the issue at all, otherwise, commenting that out
 should be fine.  Maybe we need to add  a configure check if that
 function is there and if so use it, otherwise, just print to stdout
 like it has??

I don't need tls yet, but probably will in the not-so-distant future.
A fallback to stdout would be great, so I don't have to upgrade my
openssl.
Thanks

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel