Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

clamav-0.93 error

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


joeym at newport

Apr 14, 2008, 11:44 AM

Post #1 of 15 (6395 views)
Permalink
clamav-0.93 error

I'm getting this error message:


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?

Thanks

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


steve at ladewig

Apr 14, 2008, 11:50 AM

Post #2 of 15 (6300 views)
Permalink
Re: clamav-0.93 error [In reply to]

Joey McKnight said the following, On 04/14/2008 01:44 PM:
> I'm getting this error message:
> 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


Just figure this out myself.
Duplicate libz.a and duplicate libz header files in /usr/local.

--steve
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


edwintorok at gmail

Apr 14, 2008, 12:17 PM

Post #3 of 15 (6330 views)
Permalink
Re: clamav-0.93 error [In reply to]

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`


Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


joeym at newport

Apr 14, 2008, 12:59 PM

Post #4 of 15 (6318 views)
Permalink
Re: clamav-0.93 error [In reply to]

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 <edwintorok [at] gmail> 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`


Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit
http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


edwintorok at gmail

Apr 14, 2008, 1:01 PM

Post #5 of 15 (6300 views)
Permalink
Re: clamav-0.93 error [In reply to]

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

Please open a bugreport and attach your full build logs, including
config.log

Thanks,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


rullfig at uic

Apr 15, 2008, 6:00 AM

Post #6 of 15 (6286 views)
Permalink
Re: clamav-0.93 error [In reply to]

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 <edwintorok [at] gmail> 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.

--
Roberto Ullfig - rullfig [at] uic


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


rullfig at uic

Apr 15, 2008, 7:42 AM

Post #7 of 15 (6281 views)
Permalink
Re: clamav-0.93 error [In reply to]

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 <edwintorok [at] gmail> 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 - rullfig [at] uic


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


georgek at netwrx1

Apr 15, 2008, 7:57 AM

Post #8 of 15 (6268 views)
Permalink
Re: clamav-0.93 error [In reply to]

>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.


Ditto error here with zlib 1.2.3 and I've made sure there are no
duplicate zlibs out here:

the only one out here is /usr/local/lib/libz.a


Error is below, I can post config.log if needed from RHEL4 compiled
from tar.gz

gcc -g -O2 -o .libs/freshclam output.o cfgparser.o getopt.o misc.o
options.o sha256.o cdiff.o tar.o freshclam.o manager.o notify.o dns.o
execute.o nonblock.o mirman.o ../libclamav/.libs/libclamav.so
-lresolv -lpthread -Wl,--rpath -Wl,/usr/local/clamav-0.93/lib
cdiff.o(.text+0x1a37): In function `cdiff_apply':
../shared/cdiff.c:984: undefined reference to `gzdopen'
cdiff.o(.text+0x1a71):../shared/cdiff.c:994: undefined reference to
`gzgets'
cdiff.o(.text+0x1b8d):../shared/cdiff.c:1016: undefined reference to
`gzclose'
cdiff.o(.text+0x1bc4):../shared/cdiff.c:1010: undefined reference to
`gzclose'
tar.o(.text+0xd2): In function `tar_addfile':
../shared/tar.c:82: undefined reference to `gzwrite'
tar.o(.text+0x107):../shared/tar.c:95: undefined reference to
`gzwrite'
tar.o(.text+0x1c2):../shared/tar.c:111: undefined reference to
`gzwrite'
manager.o(.text+0xf24): In function `buildcld':
/opt/clamav-0.93/freshclam/manager.c:913: undefined reference to
`gzclose'
manager.o(.text+0xf59):/opt/clamav-0.93/freshclam/manager.c:884:
undefined reference to `gzopen'
manager.o(.text+0x108d):/opt/clamav-0.93/freshclam/manager.c:932:
undefined reference to `gzclose'
manager.o(.text+0x10d5):/opt/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 `/opt/clamav-0.93/freshclam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/clamav-0.93'
make: *** [all] Error 2


--
===[George R. Kasica]=== +1 262 677 0766
President +1 206 374 6482 FAX
Netwrx Consulting Inc. Jackson, WI USA
http://www.netwrx1.com
georgek [at] netwrx1
ICQ #12862186
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


georgek at netwrx1

Apr 15, 2008, 8:12 AM

Post #9 of 15 (6308 views)
Permalink
Re: clamav-0.93 error [In reply to]

Bug 935 created with config.log on it.

--
===[George R. Kasica]=== +1 262 677 0766
President +1 206 374 6482 FAX
Netwrx Consulting Inc. Jackson, WI USA
http://www.netwrx1.com
georgek [at] netwrx1
ICQ #12862186
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


rullfig at uic

Apr 15, 2008, 9:01 AM

Post #10 of 15 (6276 views)
Permalink
Re: clamav-0.93 error [In reply to]

George R. Kasica wrote:
>> 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.
>>
>
>
> Ditto error here with zlib 1.2.3 and I've made sure there are no
> duplicate zlibs out here:
>
> the only one out here is /usr/local/lib/libz.a
>
>
Read my next e-mail. We also had v1.2.3 version of /usr/local/lib/libz.a
and got the same error. In /usr/lib we have the old rhel 4 version (I
don't think that matters for this issue). I added the shared version of
v1.2.3 (run configure -s if you have zlib source) to /usr/local/lib and
all now works fine.

# ls -l /usr/local/lib/libz*
-rwxr-xr-x 1 root root 81344 Mar 27 2007 /usr/local/lib/libz.a
lrwxrwxrwx 1 root root 13 Apr 15 08:38 /usr/local/lib/libz.so ->
libz.so.1.2.3
lrwxrwxrwx 1 root root 13 Apr 15 08:38 /usr/local/lib/libz.so.1 ->
libz.so.1.2.3
-rwxr-xr-x 1 root root 75778 Apr 15 08:22 /usr/local/lib/libz.so.1.2.3


--
Roberto Ullfig - rullfig [at] uic

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


edwintorok at gmail

Apr 15, 2008, 9:26 AM

Post #11 of 15 (6269 views)
Permalink
Re: clamav-0.93 error [In reply to]

Roberto Ullfig wrote:
> # 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?

Because you probably linked to a static archive (.a) instead of a shared
library (.so) version of zlib.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


georgek at netwrx1

Apr 15, 2008, 10:19 AM

Post #12 of 15 (6275 views)
Permalink
Re: clamav-0.93 error [In reply to]

>George R. Kasica wrote:
>>> 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.
>>>
>>
>>
>> Ditto error here with zlib 1.2.3 and I've made sure there are no
>> duplicate zlibs out here:
>>
>> the only one out here is /usr/local/lib/libz.a
>>
>>
>Read my next e-mail. We also had v1.2.3 version of /usr/local/lib/libz.a
>and got the same error. In /usr/lib we have the old rhel 4 version (I
>don't think that matters for this issue). I added the shared version of
>v1.2.3 (run configure -s if you have zlib source) to /usr/local/lib and
>all now works fine.
Tried that here with no success :(
--
George, Ginger/The Beast Kasica(8/1/88-3/19/01, 1/17/02-), Rosie(9/1/07- ), MR. Tibbs(8/1/90-5/24/06), Nazarene(6/1/99-1/28/08)
Jackson, WI USA
georgek [at] netwrx1
http://www.netwrx1.com/georgek
ICQ #12862186

("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(il),-'' (li),' ((!.-'
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


anthonyl at g3telecom

Apr 15, 2008, 11:33 AM

Post #13 of 15 (6288 views)
Permalink
Re: clamav-0.93 error [In reply to]

I too am facing this problem and we have zlib 1.2.3 on RHEL4

Making all in freshclam
make[2]: Entering directory `/usr/src/clamav-0.93/freshclam'
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o freshclam output.o cfgparser.o getopt.o misc.o options.o sha256.o cdiff.o tar.o freshclam.o manager.o notify.o dns.o execute.o nonblock.o mirman.o ../libclamav/libclamav.la -lresolv -lpthread
gcc -g -O2 -o .libs/freshclam output.o cfgparser.o getopt.o misc.o options.o sha256.o cdiff.o tar.o freshclam.o manager.o notify.o dns.o execute.o nonblock.o mirman.o ../libclamav/.libs/libclamav.so -lresolv -lpthread
cdiff.o(.text+0x1a37): In function `cdiff_apply':
../shared/cdiff.c:984: undefined reference to `gzdopen'
cdiff.o(.text+0x1a71):../shared/cdiff.c:994: undefined reference to `gzgets'
cdiff.o(.text+0x1b8d):../shared/cdiff.c:1016: undefined reference to `gzclose'
cdiff.o(.text+0x1bc4):../shared/cdiff.c:1010: undefined reference to `gzclose'
tar.o(.text+0xd2): In function `tar_addfile':
../shared/tar.c:82: undefined reference to `gzwrite'
tar.o(.text+0x107):../shared/tar.c:95: undefined reference to `gzwrite'
tar.o(.text+0x1c2):../shared/tar.c:111: undefined reference to `gzwrite'
manager.o(.text+0xf24): In function `buildcld':
/usr/src/SA_Needs.2007/clamav-0.93/freshclam/manager.c:913: undefined reference to `gzclose'
manager.o(.text+0xf59):/usr/src/SA_Needs.2007/clamav-0.93/freshclam/manager.c:884: undefined reference to `gzopen'
manager.o(.text+0x108d):/usr/src/SA_Needs.2007/clamav-0.93/freshclam/manager.c:932: undefined reference to `gzclose'
manager.o(.text+0x10d5):/usr/src/SA_Needs.2007/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 `/usr/src/SA_Needs.2007/clamav-0.93/freshclam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/SA_Needs.2007/clamav-0.93'
make: *** [all] Error 2

will post config.log if needed.





_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


rullfig at uic

Apr 16, 2008, 6:40 AM

Post #14 of 15 (6235 views)
Permalink
Re: clamav-0.93 error [In reply to]

George R. Kasica wrote:
>> George R. Kasica wrote:
>>
>>>> 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.
>>>>
>>>>
>>> Ditto error here with zlib 1.2.3 and I've made sure there are no
>>> duplicate zlibs out here:
>>>
>>> the only one out here is /usr/local/lib/libz.a
>>>
>>>
>>>
>> Read my next e-mail. We also had v1.2.3 version of /usr/local/lib/libz.a
>> and got the same error. In /usr/lib we have the old rhel 4 version (I
>> don't think that matters for this issue). I added the shared version of
>> v1.2.3 (run configure -s if you have zlib source) to /usr/local/lib and
>> all now works fine.
>>
> Tried that here with no success :(
>
Did you run "make clean" followed by "./configure" and then running make?

--
Roberto Ullfig - rullfig [at] uic

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


keremt at sibernet

Apr 18, 2008, 3:29 PM

Post #15 of 15 (6111 views)
Permalink
Re: clamav-0.93 error [In reply to]

Hi,

It is confirmed that it has to do with the ZLIB that RHEL 4 includes.
Currently I am using Centos 4.5 (a community supprted RHEL alternative built
from RHEL codes).

My /usr/lib directory listed zlib as zlib-1.2.1.2-1.2 orignally. Thecontetns
of my /usr/lib is as below (with both .so files were linked to
libz.so.1.2.1.2-1.2)

/usr/lib/libz.so
/usr/lib/libz.so.1.2.1.2-1.2
/usr/lib/libz.so.1
/usr/lib/libz.a

What I did was:
- To remove all libz files from /usr/lib.
- Downloaded zlib.1.2.3.tar.gz from the home site
- Confiugured it with "./configure --prefix=/usr". Then make and make
install
- Then reconfigured it with -s switch to build shared library (to create
.so files)
- Made and installed again.
- The install for shared library runs ldconfig but somehow I needed to run
it manually again.
- Compiled clamd 0.93 without error and installed it.

This is a good practice since it is also patching the 1.2.1 which has known
vulnerabilities.

Cheers,

+--
Kerem ERSOY


Re: [Clamav-users] clamav-0.93 error
Roberto Ullfig
Wed, 16 Apr 2008 06:43:59 -0700
George R. Kasica wrote:
>> George R. Kasica wrote:
>>
>>>> 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.
>>>>
>>>>
>>> Ditto error here with zlib 1.2.3 and I've made sure there are no
>>> duplicate zlibs out here:
>>>
>>> the only one out here is /usr/local/lib/libz.a
>>>
>>>
>>>
>> Read my next e-mail. We also had v1.2.3 version of /usr/local/lib/libz.a
>> and got the same error. In /usr/lib we have the old rhel 4 version (I
>> don't think that matters for this issue). I added the shared version of
>> v1.2.3 (run configure -s if you have zlib source) to /usr/local/lib and
>> all now works fine.
>>
> Tried that here with no success :(
>
Did you run "make clean" followed by "./configure" and then running make?

--
Roberto Ullfig - [EMAIL PROTECTED]

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net



_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.