Dear Jan:
I appreciate your reply.
I have add the command line TLS_EXTRA_LIBS="-lz" in the MAKEFILE,but it don't work!
 
I changed the static lib to shared libraries,then the below happens:
load_module: could not open module </usr/local/lib/ser/modules/tls.so>: /usr/local/lib/ser/modules/tls.so: cannot open shared object file: No such file or directory
 
and I check the tls.so and found the tls module dont linked the library :
ldd tls.so
libssl.so.0.9.8 => not found
 
I dont kown why. I have add the command line in the MAKEFILE:
LOCALBASE=/usr/local  
LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl  -lcrypt
 
and the libssl.so in my /usr/local/ssl/lib!!! but the tls.so cant find !!
 
Please help me!

qiulei212
2009-08-24

发件人: Jan Andres
发送时间: 2009-08-22 02:18:51
收件人: qiulei212
抄送: serusers
主题: Re: [Serusers] TLS module load error
 
Hi,
On Fri, Aug 21, 2009 at 11:00:13AM +0800, qiulei212 wrote:
> hello friends:
> I crashed when i compile the SER source and use the tls.so!
> I have install the openssl 0.9.8 in the default folder :/usr/local
> and install the ser-2.0.0-rc1 in the default too.
> run the command below:
>   make group_include="standard" include_modules="tls" all
> make group_include="standard" include_modules="tls" installthe tls.so in the /usr/local/lib/ ser/modules folderthe I add the loadmodule "/usr/local/lib/ser/modules/tls.so" in the ser.cfg and start /usr/local/sbin/ serbut the ser start failed!I run the ser -c and found:ERROR: load_module: could not open module </usr/local/lib/ser/modules/tls.so>: /usr/local/lib/ser/modules/tls.so: undefined symbol: deflate
> I don't know Why and ask help for you !
The tls module obviously needs to be linked against libz on your system.
Try adding the following to your make command line: TLS_EXTRA_LIBS="-lz"
That should do the trick.
Regards,
Jan
-- 
Jan Andres                                           <jan.andres@freenet.ag>
VoIP Systems Engineer                                phone: +49 431 9020-557
freenet Cityline GmbH,    Am Germaniahafen 1-7,    D-24143 Kiel,     Germany
Ein Unternehmen der freenet Group              Amtsgericht Kiel, HRB 6202 KI
Geschäftsführer: Stephan Esch, Andreas Jürgensen, Bodo Rebetge, Andreas Sand
----------------------------------------------------------------------------
"The question  of whether a computer  can think is no more  interesting than
the question of whether a submarine can swim."             -- E. W. Dijkstra