Click to See Complete Forum and Search --> : ClamAV my nemesis


brockmasterflex
01-25-2005, 03:38 PM
Ok guys, trying to installing ClamAV on my AMD64 (running Fedora core 2)to be mail server. I had a dream a few days ago, where I could install Postfix, Spamassassin, and ClamAV and within a day have a nice crisp mail server. However, my dreams are becoming nightmares. After a few trips with the Postfix install (had a problem compiling from source, but yum worked), no problems compiling Spamassassin, ClamAV will not install.... no way, no how. I've tried yum using many repos, and the source keeps crashing at the make..... here is the lastest problem:


[root@data clamav-0.81rc1]#make
..............
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libclamav.la] Error 1
make[2]: Leaving directory `/usr/src/clamav-0.81rc1/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/clamav-0.81rc1'
make: *** [all] Error 2
[root@data clamav-0.81rc1]#


Has anyone had these problems before? Will postfix, spamassassin, and clamav jive together (i've read various articles where they have)? Can anyone maybe offer a better solution? Right now, I'm wondering if the juice of clamav is worth the squeeze.

Thanks for reading,
Brock

brockmasterflex
01-25-2005, 04:50 PM
had to recompile zlibs with -fPIC...... doh.....

i'm feeling alittle better now

brock

ArtVandelay
01-26-2005, 05:26 AM
had to recompile zlibs with -fPIC...... doh.....


Can you post the command (just for curiosity's sake)?

Sepero
01-26-2005, 07:17 AM
Why doesn't your distro include these programs?

brockmasterflex
01-26-2005, 03:10 PM
Originally posted by ArtVandelay
Can you post the command (just for curiosity's sake)?

well..... here is the step by step instructions:

1. download zlib source
2. ./configure
3. edit the make file (Makefile) and add '-fPIC' to CFLAGS
4. make && make install

everything should work then......... Why doesn't your distro include these programs?

I like a minimal install, and add programs as I need them, don't want to waste hard disk space and things i'm never gonna use ;) .

Brock

Sepero
01-26-2005, 03:33 PM
Originally posted by brockmasterflex
I like a minimal install, and add programs as I need them, don't want to waste hard disk space and things i'm never gonna use ;) .

Brock Oh, ok. Well good luck when the next security flaw comes out for one of your programs there. I hope you're subscribed to a mailing list or something.
:)

brockmasterflex
01-26-2005, 04:01 PM
it keeps me busy