Re: compiling gzrecover under cygwin "undefined reference to '_inflateInit2'



On Jun 12, 11:43 am, "lion...@xxxxxxxxx" <lion...@xxxxxxxxx> wrote:
Not sure if anyone here has compiled gzrecover. When I attempt to
compile using "make" I get the following output:

cc -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz -L.
gzrecover.c -o gzrecover
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x28c): undefined reference to `_inflateInit2_'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x67f): undefined reference to `_inflate'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x736): undefined reference to `_inflateEnd'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x78d): undefined reference to `_inflateEnd'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x962): undefined reference to `_inflateEnd'
collect2: ld returned 1 exit status
make: *** [gzrecover] Error 1

I've placed libz.a in the current directory but it obviously doesn't
work. I can't seem to get it to link, it seems to me that it isn't
finding the zlib library. Any ideas?

Thanks

Lionel.


Never mind. I've given up on it as it turns out I don't need gzrecover.

.



Relevant Pages

  • Re: Prolog & C linking Problem
    ... >> I am trying to compile Prolog and C using plld. ... PL_initialise_ is an undefined reference ...
    (comp.lang.prolog)
  • How can I compile PF without option PFIL_HOOKS defined in the kernel conf file?
    ... kernel conf file to try to get PF compile into the kernel, ... PF failed to compile; ... : undefined reference to `pfil_head_get' ... Will this fix the problem? ...
    (comp.unix.bsd.openbsd.misc)
  • gprof
    ... I'm trying to compile my C application with gprof but it is not working. ... This is a multithreaded program that use mysql and openssl libraries. ... /lib/libcrypto.so.4: undefined reference to `sysconf' ...
    (freebsd-questions)
  • Re: gprof
    ... I'm trying to compile my C application with gprof but it is not working.. ... This is a multithreaded program that use mysql and openssl libraries. ... /lib/libcrypto.so.4: undefined reference to `sysconf' ...
    (freebsd-questions)
  • Re: uudecode for Red Hat 9.0?
    ... > compile on Red Hat Linux. ... and they should compile fine ... ... /tmp/ccXtLHVa.o: undefined reference to `setmode' ... ld returned 1 exit status ...
    (comp.os.linux.misc)