1. I did a make uninstall for v0.80 and removed the source (I still have the tar file)
2. I typed find / -name \*clam\* and deleted everything it found (except the tar file)
3. tar -zxf clamav-0.83.tar.gz
4. ./configure CFLAGS='-g -O2 -mlongcall -DPIC -fPIC'
5. make
6. make install
Afterwards when I run any of the programs (freshclam, clamscan, etc.) I still get the following:
error while loading shared libraries: /usr/local/lib/libclamav.so.1: R_PPC_REL24 relocation at 0x0ff8f650 for symbol `clearerr' out of range
While digging around I read something about gcc on ppc and the -O2 option. I tried compiling without it but the only thing that changed was the hex number in the error. I also tried building an rpm from the the SRPM at
http://crash.fce.vutbr.cz/crash-hat/2/clamav/clamav-0.83-1.src.rpm
which is for Fedora Core 2 which I believe Yellowdog is a derivative of. Same problems there.
Unfortunately I don't have a solution to offer but that's the latest information that I have.
Todd C.Stevens wrote:
How has this issue been resolved? I have the exact same error trying to compile and run clamav v0.83 from YDL 4.0 on a Mac mini. I can compile and run v0.80 just fine, but it's out of date! v0.81 through 0.83 result in the clearerr error. Thanks.
Author: Morgan Smith Date: 2005-02-04 13:17 -600 To: ClamAV users ML Subject: Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC I'm not the master of compiling, but to follow your suggestion I ran ./configure CFLAGS='-g -O2 -mlongcall'
After making and installing the program still spits an error, but it has changed slightly: ./freshclam: error while loading shared libraries: /usr/local/lib/libclamav.so.1: R_PPC_REL24 relocation at 0x0ff8fe7c for symbol `clearerr' out of range
I see that the hex number changed, but I'm still clueless.
T.J. Drennan wrote:
>Morgan Smith said:
>
>
>>I'm running YDL 4.0 on a G4 tower. After building and installing v0.81,
>>whenever I run any of the programs (clamscan, freshclam) I get the
>>following error:
>>
>>error while loading shared libraries: /usr/local/lib/libclamav.so.1:
>>R_PPC_REL24 relocation at 0x0ff90310 for symbol `clearerr' out of range
>>
>>
>>
>>
>
>It would seem we might need to be compiling with -mlongcall for PPCs (at least when
>running linux).
>
>-T.J.
>
>
>
>
-- Morgan Smith Dutro Company 675 North 600 West Logan, UT 84321 (435) 752-3922 (435) 512-3374 [EMAIL PROTECTED]
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
-- Morgan Smith Dutro Company 675 North 600 West Logan, UT 84321 (435) 752-3922 ext.146 (435) 512-3374 [EMAIL PROTECTED]
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
