Hi all!
Thinking about feature freeze + bug hunting one interesting point is the
compression support.
Server/client output, core file back trace, config.log, config.h for each
case can be found at http://www.sch.bme.hu/~keresztg/lsh/
Lsh version: 0.2.1
Server started: ./lshd -p 4711 -v --debug --trace --enable-core
Client started: ./lsh -z -p 4711 localhost --debug --trace
System: Debian 2.1 (upgraded to glibc 2.1) with packages
LIBC: libc6 2.1.2-5 and libc6-dev 2.1.2-5
GCC: gcc 2.95.2-0pre2: gcc version 2.95.2 19990906 (prerelease)
GMP: gmp2 2.0.2-6 and gmp2-dev 2.0.2-6
ZLIB: zlib1g 1.1.3-2 and zlib1g-dev 1.1.3-2
Case 1. Not having zlib-dev package.
Config started: ./configure --> (no zlib support asked for)
If there's no zlib-dev package (no zlib.h exists) the configure still runs
successfully, but the compilation fails at zlib.c with:
zlib.c:35: warning: #warning zlib.h not present
zlib.c:40: parse error before `*'
zlib.c:40: warning: function declaration isn't a prototype
In file included from zlib.c:42:
zlib.c.x:7: parse error before `*'
zlib.c.x:7: warning: function declaration isn't a prototype
zlib.c.x:8: warning: no semicolon at end of struct or union
zlib.c.x: In function `do_zlib_instance_free':
zlib.c.x:17: dereferencing pointer to incomplete type
zlib.c.x: At top level:
zlib.c.x:22: sizeof applied to an incomplete type
zlib.c:40: warning: `do_free_zstream' used but never defined
make[3]: *** [zlib.o] Error 1
Why do we get here at all? Moving '#if WITH_ZLIB' to the top of zlib.c
solves this, compiles cleanly. and both the server and the client ran
well, rejecting the compression requests.
Case 2. Having zlib-dev package
Config started: ./configure --> (no zlib support asked for)
When client started the server dies with "Segmentation fault", if there is
zlib.h and libz during compilation. The config.h contains the '#define
WITH_ZLIB 1' line but we didn't ask for it! Oh... Looking into
configure.in this is the default behaviour... Good to know. ;) Maybe the
help string should be updated! (BTW _almost_ all --with-* parameter
defaults to yes...)
Greets,
Keresztg
+ Keresztfalvi Gabor
+ Student of the Technical University of Budapest
+ mailto: [EMAIL PROTECTED] [EMAIL PROTECTED]
+ http://www.sch.bme.hu/~keresztg/