Roberto Ullfig wrote: > Joey McKnight wrote: > >> here is what nm -D /usr/lib/libz.so|grep gz displayed: >> >> 00d674c0 T gzclearerr >> 00d67320 T gzclose >> 00d66380 T gzdopen >> 00d67240 T gzeof >> 00d67390 T gzerror >> 00d66ec0 T gzflush >> 00d66aa0 T gzgetc >> 00d66b40 T gzgets >> 00d66350 T gzopen >> 00d66ca0 T gzprintf >> 00d66d20 T gzputc >> 00d66d70 T gzputs >> 00d667d0 T gzread >> 00d67150 T gzrewind >> 00d66f20 T gzseek >> 00d663e0 T gzsetparams >> 00d67200 T gztell >> 00d66af0 T gzungetc >> 00d66bc0 T gzwrite >> >> >> >> >>>>> Török Edwin <[EMAIL PROTECTED]> 4/14/2008 2:17 PM >>> >>>>> >>>>> >> Joey McKnight wrote: >> >> >>> I'm getting this error message: >>> >>> >>> >>> >>> >> You removed the most important output from the build: the last command >> executed (the arguments to the linker), please post that one too. >> >> >> >>> cdiff.o(.text+0x190a): In function `cdiff_apply': >>> ../shared/cdiff.c:984: undefined reference to `gzdopen' >>> cdiff.o(.text+0x1950):../shared/cdiff.c:994: undefined reference to >>> >>> >> `gzgets' >> >> >>> cdiff.o(.text+0x19a5):../shared/cdiff.c:1016: undefined reference to >>> >>> >> `gzclose' >> >> >>> cdiff.o(.text+0x19f5):../shared/cdiff.c:1010: undefined reference to >>> >>> >> `gzclose' >> >> >>> tar.o(.text+0xd4): In function `tar_addfile': >>> ../shared/tar.c:82: undefined reference to `gzwrite' >>> tar.o(.text+0x109):../shared/tar.c:95: undefined reference to >>> >>> >> `gzwrite' >> >> >>> tar.o(.text+0x1a3):../shared/tar.c:111: undefined reference to >>> >>> >> `gzwrite' >> >> >>> manager.o(.text+0x183c): In function `buildcld': >>> /root/clamav-0.93/freshclam/manager.c:884: undefined reference to >>> >>> >> `gzopen' >> >> >>> manager.o(.text+0x189d):/root/clamav-0.93/freshclam/manager.c:913: >>> >>> >> undefined reference to `gzclose' >> >> >>> manager.o(.text+0x19cd):/root/clamav-0.93/freshclam/manager.c:932: >>> >>> >> undefined reference to `gzclose' >> >> >>> manager.o(.text+0x1a21):/root/clamav-0.93/freshclam/manager.c:944: >>> >>> >> undefined reference to `gzclose' >> >> >>> collect2: ld returned 1 exit status >>> make[2]: *** [freshclam] Error 1 >>> make[2]: Leaving directory `/root/clamav-0.93/freshclam' >>> make[1]: *** [all-recursive] Error 1 >>> make[1]: Leaving directory `/root/clamav-0.93' >>> make: *** [all] Error 2 >>> >>> >>> Any one care to take a guess? >>> >>> >> Those are in zlib, what is output of `nm -D /usr/lib/libz.so|grep gz` >> >> >> >> > > We have the same issue. I'd take a guess that it's because we're running > zlib-1.2.1.2-1.2 which is the latest offered by RHEL 4. > > Hmm, OK that seems to have been the problem. When I ran configure it would complain that we shouldn't be using the earlier zlib library. We didn't have zlib 1.2.3 shared libraries in /usr/local/lib. I did install these and then ran configure and I got no warning message and clamav compiled everything and everything looks to be working fine - but I have a question:
# lsof | grep clamd clamd 26158 smmsp cwd DIR 8,1 4096 2 / clamd 26158 smmsp rtd DIR 8,1 4096 2 / clamd 26158 smmsp txt REG 8,1 160362 455644 /usr/local/sbin/clamd clamd 26158 smmsp mem REG 8,1 24025 844670 /usr/local/lib/libclamunrar_iface.so.4.0.1 clamd 26158 smmsp mem REG 8,1 130315 844830 /usr/local/lib/libclamunrar.so.4.0.1 clamd 26158 smmsp mem REG 8,1 9440 389559 /usr/lib/gconv/UTF-16.so clamd 26158 smmsp mem REG 8,1 45800 859922 /lib/libnss_files-2.3.4.so clamd 26158 smmsp mem REG 8,1 688057 846155 /usr/local/lib/libgmp.so.3.3.3 clamd 26158 smmsp mem REG 8,1 1354091 844672 /usr/local/lib/libclamav.so.4.0.1 clamd 26158 smmsp mem REG 8,1 106397 860010 /lib/ld-2.3.4.so clamd 26158 smmsp mem REG 8,1 1454462 860053 /lib/tls/libc-2.3.4.so clamd 26158 smmsp mem REG 8,1 93865 860061 /lib/tls/libpthread-2.3.4.so clamd 26158 smmsp mem REG 8,1 71724 345478 /usr/lib/libbz2.so.1.0.2 clamd 26158 smmsp mem REG 8,1 21544 389588 /usr/lib/gconv/gconv-modules.cache clamd 26158 smmsp 0r CHR 1,3 1806 /dev/null clamd 26158 smmsp 1w CHR 1,3 1806 /dev/null clamd 26158 smmsp 2w CHR 1,3 1806 /dev/null clamd 26158 smmsp 3u unix 0xf6ea9640 829327216 /var/spool/MIMEDefang/clamd.sock Why does libz not show up here? -- Roberto Ullfig - [EMAIL PROTECTED] _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html