Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
Morgan Smith wrote: error while loading shared libraries: /usr/local/lib/libclamav.so.1: R_PPC_REL24 relocation at 0x0ff8f650 for symbol `clearerr' out of range I found out what went wrong for me and I have a solution for it. YMMV. I started from scratch on a spare imac and re-traced my steps. Here's what happened. We all know that the newer version of ClamAV requires zlib-1.2.2. There was one thing that wasn't a distribution provided rpm... zlib. I downloaded the source and made my own rpm from it. The problem was my .spec file configured zlib with './configure' which created a /lib/libz.a. The rpm installed fine without complaints. ClamAV would compile and then not run properly for me. Double checking the installation instructions for zlib I found out that I should have run './configure -s' which creates a /lib/libz.so.1.2.2 w/symlinks (shared libraries). There were remnants of the old zlib around (like in /usr/lib or /usr/local/lib) and things just weren't handled properly in my rpm file. I can see how multiple versions of zlib would make things difficult and unstable. Yes, I ran ldconfig on my lib dirs after cleaning things up. So, with a fresh clean properly installed zlib I compiled ClamAV (with just ./configure) and everything worked. Thanks for all the suggestions and help. After reading so many posts I started to think that it wasn't a ClamAV problem even though that's where I received the error messages. PEBCAK for sure, but it was a great learning experience. Thanks again. ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
I haven't been able to get it resolved yet. Since my last postings, I've been swept away on other projects so I left it at v0.80 but this is good timing because I'm now able to come back to this project. My last attempts at compiling were as follows. 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
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
On Mon, 2005-03-07 at 11:50 -0700, Morgan Smith wrote: I haven't been able to get it resolved yet. Since my last postings, I've been swept away on other projects so I left it at v0.80 but this is good timing because I'm now able to come back to this project. My last attempts at compiling were as follows. 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 Just guesses for you I'm afraid: 1. Have you tried with just ./configure CFLAGS='-g -O2 -fPIC' 2. try with --disable-pthreads as well. -trog signature.asc Description: This is a digitally signed message part ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
On Monday 07 Mar 2005 18:50, Morgan Smith wrote: I haven't been able to get it resolved yet. Since my last postings, I've been swept away on other projects so I left it at v0.80 but this is good timing because I'm now able to come back to this project. My last attempts at compiling were as follows. 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 I really don't understand this. One of my main machines is running YDL4.0 and I have never seen this. I don't use -mlongcall -DPIC -fPIC either. -Nigel -- Nigel Horne. Arranger, Composer, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 [EMAIL PROTECTED] http://www.bandsman.co.uk ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
Trog wrote: On Mon, 2005-03-07 at 11:50 -0700, Morgan Smith wrote: I haven't been able to get it resolved yet. Since my last postings, I've been swept away on other projects so I left it at v0.80 but this is good timing because I'm now able to come back to this project. My last attempts at compiling were as follows. 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 Just guesses for you I'm afraid: 1. Have you tried with just ./configure CFLAGS='-g -O2 -fPIC' 2. try with --disable-pthreads as well. -trog Thanks for the guesses. I have some time on my hands and so I tried the following combinations which all produce the same error (except for the hex number): ./configure CFLAGS='-g -O2 -fPIC' ./configure CFLAGS='-g -O2 -DPIC' ./configure CFLAGS='-g -O2 -DPIC -fPIC' ./configure CFLAGS='-g -O2 -mlongcall -fPIC' ./configure CFLAGS='-g -O2 -mlongcall -DPIC' ./configure CFLAGS='-g -O2 -mlongcall -DPIC -fPIC' ./configure --disable-pthreads CFLAGS='-g -O2 -fPIC' ./configure --disable-pthreads CFLAGS='-g -O2 -DPIC' ./configure --disable-pthreads CFLAGS='-g -O2 -DPIC -fPIC' ./configure --disable-pthreads CFLAGS='-g -O2 -mlongcall -fPIC' ./configure --disable-pthreads CFLAGS='-g -O2 -mlongcall -DPIC' ./configure --disable-pthreads CFLAGS='-g -O2 -mlongcall -DPIC -fPIC' ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
On Mon, 07 Mar 2005 12:43:25 -0700 Morgan Smith [EMAIL PROTECTED] wrote: Thanks for the guesses. I have some time on my hands and so I tried the following combinations which all produce the same error (except for the hex number): ./configure CFLAGS='-g -O2 -fPIC' ./configure CFLAGS='-g -O2 -DPIC' Compile without additional flags. -- oo. Tomasz Kojm [EMAIL PROTECTED] (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg \..._ 0DCA5A08407D5288279DB43454822DC8985A444B //\ /\ Mon Mar 7 20:48:58 CET 2005 pgpuppLlqEBd4.pgp Description: PGP signature ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
Nigel Horne wrote: error while loading shared libraries: /usr/local/lib/libclamav.so.1: R_PPC_REL24 relocation at 0x0ff8f650 for symbol `clearerr' out of range I really don't understand this. One of my main machines is running YDL4.0 and I have never seen this. I don't use -mlongcall -DPIC -fPIC either. -Nigel I get this problem on the two ppc machines that I have. One is an imac and the other is a G4 tower. Both were installed from the v4 iso images downloaded from the yellowdoglinux.com mirror. After installation, I ran yum and let it update everything that it wanted. This problem did not exist in v0.80, but in v0.81+ it does. v0.80 worked with just ./configure. On both of these systems I have let yum update everything. I haven't 'manually' updated anything except ClamAV. I read a post once about a gentleman using a newer gcc than 3.3.3 which came with YDL. I've just been using the 3.3.3. Have you installed or updated things differently than I have? -- 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
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
Tomasz Kojm wrote: ./configure CFLAGS='-g -O2 -fPIC' ./configure CFLAGS='-g -O2 -DPIC' Compile without additional flags. ./configure (plain with nothing else) produces the same error for me. -- 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
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
On Mar 7, 2005, at 2:01 PM, Morgan Smith wrote: Tomasz Kojm wrote: ./configure CFLAGS='-g -O2 -fPIC' ./configure CFLAGS='-g -O2 -DPIC' Compile without additional flags. ./configure (plain with nothing else) produces the same error for me. I'm getting ready to try a different Linux distro on my Mac Mini (Fedora Core 3 PPC) to see if I can get past this hurdle. But here's some more food for thought. I was able to get clamav-0.83 to compile and run after starting from scratch but BEFORE compiling in the dansguardian-2.8.0.3-antivirus-6.3.8 package which was the whole purpose of this exercise. Once I compiled in that package, I started getting the clearerr messages when starting clamd. Todd Stevens ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
On Mon, 2005-03-07 at 19:57, Morgan Smith wrote: Nigel Horne wrote: error while loading shared libraries: /usr/local/lib/libclamav.so.1: R_PPC_REL24 relocation at 0x0ff8f650 for symbol `clearerr' out of range I really don't understand this. One of my main machines is running YDL4.0 and I have never seen this. I don't use -mlongcall -DPIC -fPIC either. -Nigel I get this problem on the two ppc machines that I have. One is an imac and the other is a G4 tower. Both were installed from the v4 iso images downloaded from the yellowdoglinux.com mirror. After installation, I ran yum and let it update everything that it wanted. This problem did not exist in v0.80, but in v0.81+ it does. v0.80 worked with just ./configure. On both of these systems I have let yum update everything. I haven't 'manually' updated anything except ClamAV. I read a post once about a gentleman using a newer gcc than 3.3.3 which came with YDL. I've just been using the 3.3.3. Have you installed or updated things differently than I have? [EMAIL PROTECTED] njh]$ rpm -q gcc gcc-3.3.3-16.ydl.4 [EMAIL PROTECTED] njh]$ ___ http://lurker.clamav.net/list/clamav-users.html
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://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
Re: [Clamav-users] v0.81 libclamav clearerr on YDL 4.0, PPC
Morgan Smith wrote: error while loading shared libraries: /usr/local/lib/libclamav.so.1: R_PPC_REL24 relocation at 0x0ff90310 for symbol `clearerr' out of range This kind of error is often because you have multiple installations of ClamAV on your system in multiple locations, typically one in /usr and the other in /usr/local. Remove all of your ClamAV installations and try again. -- James Lick -- -- [EMAIL PROTECTED] -- http://jameslick.com/ ___ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users