gcc 4.0.0有bug PR28045,无法编译,解决办法:
安装gcc3.2
rpm -Uvh compat-gcc-32-3.2.3-47.fc4.i386.rpm compat-gcc-32-c++-3.2.3-47.fc4.i386.rpm
gcc3.2与rpmrc参数有冲突,解决办法:
修改/usr/lib/rpm/redhat/rpmrc,将-mtune=pentium4 删除
具体编译方法:
export CC=gcc32
rpm -ivh clamav-0.92.1-1.fc7.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bb clamav.spec
rpm -ivh --nodeps fedora-usermgmt-0.10-1.fc7.noarch.rpm fedora-usermgmt-core-0.10-1.fc7.noarch.rpm
rpm -Uvh clamav-0.92.1-1.i386.rpm clamav-data-0.92.1-1.i386.rpm clamav-lib-0.92.1-1.i386.rpm clamav-filesystem-0.92.1-1.i386.rpm clamav-server-0.92.1-1.i386.rpm clamav-server-sysv-0.92.1-1.i386.rpm