On Tue, 2004-05-18 at 16:29, Brooks Davis wrote: > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -D_REENTRANT -Wall -c > gzio.c -MT gzio.lo -MD -MP -MF .deps/gzio.TPlo -fPIC -DPIC -o .libs/gzio.lo > gzio.c:24: error: redefinition of `struct internal_state' > gzio.c: In function `gz_open': > gzio.c:163: error: `Z_RLE' undeclared (first use in this function) > gzio.c:163: error: (Each undeclared identifier is reported only once > gzio.c:163: error: for each function it appears in.) > ... > > The lines above that only compile due to a hidden dependency on > installed zlib headers.
are you saying that you get this error if zlib is not installed? or you get this error even if zlib is installed and the headers are available? i assume the latter since we have a redefinition. i had to modify gzio.c from the zlib library in order to correctly handle on-the-fly compression over sockets for multi-threaded apps. previously, it was using fdopened sockets. ugly. i changed it to drop down to do read/writes on raw file descriptors and catch EINTR. clearly i didn't get the headers right. this isn't the first time i'm messed that up. any ideas of how to fix it? -matt -- Mobius strippers never show you their back side PGP fingerprint 'A7C2 3C2F 8445 AD3C 135E F40B 242A 5984 ACBC 91D3'
signature.asc
Description: This is a digitally signed message part