I found this:
tar jxf tar jxf clamav-0.93.tar.bz2
cd clamav-0.93
./configure --help
......
--with-zlib=DIR path to directory containing zlib library (default=
/usr/local or /usr if not found in /usr/local)
......
So, remove these files, if thare are
rm -f /usr/local/include/zlib.h
rm -f /usr/local/include/zutil.h
Then, I can build the package without error.
rpmbuild --rebuild --with fdr10 clamav-toaster-0.93-1.3.18.src.rpm
But, I had new problem when I installed the package
rpm -e --nodeps clamav-toaster; rpm -ivh clamav-toaster-0.93-1.3.18.i386.rpm
warning: /etc/freshclam.conf saved as /etc/freshclam.conf.rpmsave
Preparing... ########################################### [100%]
1:clamav-toaster ########################################### [100%]
error: %post(clamav-toaster-0.93-1.3.18) scriptlet failed, exit status 1
----- Original Message -----
From: "Kevin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 21, 2008 12:01 AM
Subject: Re: [qmailtoaster] ClamAV Upgrade
> Hi Erik,
>
> Thanks ,but I don't think this problem is about my old linux release version.
>
> Look at this http://www.mail-archive.com/[EMAIL PROTECTED]/msg29083.html
>
> It is about "zlib-1.2.3" .
>
> Dose clamav-0.93 forget the "zlib.so" ?
>
> nm -D /usr/lib/libz.so|grep gz
> 005f2b50 T gzclearerr
> 005f29a0 T gzclose
> 005f28d0 T gzdirect
> 005f19f0 T gzdopen
> 005f28a0 T gzeof
> 005f2a10 T gzerror
> 005f2520 T gzflush
> 005f2100 T gzgetc
> 005f21a0 T gzgets
> 005f19c0 T gzopen
> 005f2300 T gzprintf
> 005f2380 T gzputc
> 005f23d0 T gzputs
> 005f1e40 T gzread
> 005f27b0 T gzrewind
> 005f2580 T gzseek
> 005f1a50 T gzsetparams
> 005f2860 T gztell
> 005f2150 T gzungetc
> 005f2220 T gzwrite
>
>
> ----- Original Message -----
> From: "Erik A. Espinoza" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, April 20, 2008 11:30 PM
> Subject: Re: [qmailtoaster] ClamAV Upgrade
>
>
>> Fedora 1.0 is not really supported anymore. The code for the profile
>> is still there for historical purposes, but doesn't really work for
>> the most part.
>>
>> It's really broken. You can try cnt30 or cnt40 and see if that gives
>> you better results but I think you're on your own on this one buddy.
>>
>> EE
>>
>> On Mon, Apr 21, 2008 at 12:08 AM, Kevin <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> > 1) service qmail stop
>>> > 2) rpm -e --nodeps clamav-toaster
>>> > 3) rpmbuild --rebuild --with fdr10 clamav-toaster-newpkg.src.rpm
>>> ..........
>>> ..........
>>> ..........
>>> gcc -O2 -g -march=i386 -mcpu=i686 -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+0x1bfb): In function `cdiff_apply':
>>> ../shared/cdiff.c:984: undefined reference to `gzdopen'
>>> cdiff.o(.text+0x1c42):../shared/cdiff.c:994: undefined reference to
>>> `gzgets'
>>> cdiff.o(.text+0x1cbd):../shared/cdiff.c:1016: undefined reference to
>>> `gzclose'
>>> cdiff.o(.text+0x1d0b):../shared/cdiff.c:1010: undefined reference to
>>> `gzclose'
>>> tar.o(.text+0x11e): In function `tar_addfile':
>>> ../shared/tar.c:82: undefined reference to `gzwrite'
>>> tar.o(.text+0x15d):../shared/tar.c:95: undefined reference to `gzwrite'
>>> tar.o(.text+0x204):../shared/tar.c:111: undefined reference to `gzwrite'
>>> manager.o(.text+0x1c25): In function `buildcld':
>>> /usr/src/redhat/BUILD/clamav-0.93/freshclam/manager.c:884: undefined
>>> reference to `gzopen'
>>>
>>> manager.o(.text+0x1c7e):/usr/src/redhat/BUILD/clamav-0.93/freshclam/manager.c:913:
>>> undefined reference to `gzclose'
>>>
>>> manager.o(.text+0x1dd6):/usr/src/redhat/BUILD/clamav-0.93/freshclam/manager.c:932:
>>> undefined reference to `gzclose'
>>>
>>> manager.o(.text+0x1e2a):/usr/src/redhat/BUILD/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/redhat/BUILD/clamav-0.93/freshclam'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/usr/src/redhat/BUILD/clamav-0.93'
>>> make: *** [all] Error 2
>>> error: Bad exit status from /var/tmp/rpm-tmp.57 (%build)
>>>
>>>
>>> RPM build errors:
>>> Bad exit status from /var/tmp/rpm-tmp.57 (%build)
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: "Erik A. Espinoza" <[EMAIL PROTECTED]>
>>> To: <[email protected]>
>>> Sent: Sunday, April 20, 2008 10:09 AM
>>> Subject: Re: [qmailtoaster] ClamAV Upgrade
>>>
>>>
>>> > 1) service qmail stop
>>> > 2) rpm -e --nodeps clamav-toaster
>>> > 3) rpmbuild --rebuild --with $OSTAG clamav-toaster-newpkg.src.rpm
>>> > 4) rpm -Uhv newclamavrpm
>>> > 5) service qmail cdb
>>> > 6) service qmail start
>>> >
>>> >
>>> > Erik
>>> >
>>> > On Sun, Apr 20, 2008 at 9:37 AM, James Palmer <[EMAIL PROTECTED]> wrote:
>>> >> Hi all,
>>> >>
>>> >> Could somebody let me know the easiest way to upgrade from ClamAV 0.92
>>> to
>>> >> 0.93? On the QmailToaster site it says " be sure to remove prior
>>> versions
>>> >> of ClamAV before building this new one, otherwise it will cause a
>>> circular
>>> >> dependency." and I'm unsure how to do that and then install the new
>>> clamav
>>> >> package.
>>> >>
>>> >>
>>> >> Cheers!
>>> >
>>>
>>>
>>> > ---------------------------------------------------------------------
>>> > QmailToaster hosted by: VR Hosted <http://www.vr.org>
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>
>> ---------------------------------------------------------------------
>> QmailToaster hosted by: VR Hosted <http://www.vr.org>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>