[zorp] Zorp and gzip

Balazs Scheidler zorp@lists.balabit.hu
Fri, 13 Jun 2003 13:28:03 +0200


On Thu, Jun 12, 2003 at 02:42:21PM -0400, Philippe Lucas wrote:
> To use libz functions, I add :
> #include <zlib.h>
> #include <zutil.h>
> 
> in http.c
> 
> But it doesn't work!

you either need to link the http proxy module to libz, or link the core
library to libz.

ie, either add -lz to LDADD in the Makefile.am of http or do the same for
the core library in lib/

> 
> There seems to be a problem with the zlib function "deflate"
> 
> My logs :
> Jun 12 09:41:41 bridge zorp_http[13743]: (zorp@site/intra_http:1/http): 
> Proxy starting; class='IntraHttp', module='http'
> Jun 12 09:41:41 bridge zorp_http[13743]: (noname/nosession): Module 
> loading failed; module='http', file='/usr/local/lib/zorp/libhttp.so', 
> error='/usr/local/lib/zorp/libhttp.so: undefined symbol: deflate'
> Jun 12 09:41:41 bridge zorp_http[13743]: (noname/nosession): Cannot find 
> proxy module; module='http' type='1'
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread): Traceback (most 
> recent call last):
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):   File 
> "/usr/local/share/zorp/pylib/Zorp/Dispatch.py", line 173, in accepted
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):     return 
> session.service.startInstance(session)
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):   File 
> "/usr/local/share/zorp/pylib/Zorp/Service.py", line 258, in startInstance
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):     proxy = 
> self.proxy_class(ss)
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):   File 
> "/usr/local/share/zorp/pylib/Zorp/Http.py", line 582, in __init__
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):     
> Proxy.__init__(self, session)
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):   File 
> "/usr/local/share/zorp/pylib/Zorp/Proxy.py", line 96, in __init__
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread):     
> ZorpProxy.__init__(self, self.name, session.session_id, 
> session.client_stream)
> Jun 12 09:41:41 bridge zorp_http[13745]: (Log thread): RuntimeError: 
> Error loading proxy module.
> 
> 
> 
> _______________________________________________
> zorp mailing list
> zorp@lists.balabit.hu
> http://lists.balabit.hu/mailman/listinfo/zorp
> 

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1