Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

v0.81 libclamav clearerr on YDL 4.0, PPC

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


morgan at dutro

Feb 4, 2005, 7:58 AM

Post #1 of 14 (2977 views)
Permalink
v0.81 libclamav clearerr on YDL 4.0, PPC

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

I also get the same error grabbing the latest snapshot. This didn't
happen when I compiled v.0.80 and if I uninstall v0.81 and recompile
v0.80 then it works but is aware that it's out of date.

When I uninstalled v0.80 I did so by running make uninstall, and then I
searched for any left overs
find / -name \*clam\*

I use gcc 3.3.3 which came with the distro. The only things I haven't
installed from the distro rpms is clamav, amavis, and postfix. Just in
case it helps here's a listing of what libclamav* I have
[root [at] mai clamav-devel]# ls -al /usr/local/lib/ | grep clamav
/usr/local/clamav/clamav-devel
-rw-r--r-- 1 root root 2019392 Feb 3 18:39 libclamav.a
-rwxr-xr-x 1 root root 898 Feb 3 18:39 libclamav.la
lrwxr-xr-x 1 root root 18 Feb 3 18:39 libclamav.so ->
libclamav.so.1.0.6
lrwxr-xr-x 1 root root 18 Feb 3 18:39 libclamav.so.1 ->
libclamav.so.1.0.6
-rwxr-xr-x 1 root root 1584075 Feb 3 18:39 libclamav.so.1.0.6

Any suggestions?

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


tj at drennan

Feb 4, 2005, 10:35 AM

Post #2 of 14 (2906 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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.


--
*****************************************************
T.J. Drennan
Software Engineering Lead, Wireless Systems
Spectrum Signal Processing
tj [at] drennan
*****************************************************

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


morgan at dutro

Feb 4, 2005, 11:17 AM

Post #3 of 14 (2917 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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
morgan [at] dutro


_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


jlick at drivel

Feb 4, 2005, 8:39 PM

Post #4 of 14 (2889 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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 -- 黎建溥 -- jlick [at] jameslick -- http://jameslick.com/
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


morgan at dutro

Mar 7, 2005, 10:50 AM

Post #5 of 14 (2875 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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
>> morgan@???
>
>
> _______________________________________________
> 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
morgan [at] dutro


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


trog at uncon

Mar 7, 2005, 11:03 AM

Post #6 of 14 (2870 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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
Attachments: signature.asc (0.18 KB)


njh at bandsman

Mar 7, 2005, 11:39 AM

Post #7 of 14 (2881 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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
njh [at] despammed http://www.bandsman.co.uk
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


morgan at dutro

Mar 7, 2005, 11:43 AM

Post #8 of 14 (2867 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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


tkojm at clamav

Mar 7, 2005, 11:49 AM

Post #9 of 14 (2872 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

On Mon, 07 Mar 2005 12:43:25 -0700
Morgan Smith <morgan [at] dutro> 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 <tkojm [at] clamav>
(\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Mon Mar 7 20:48:58 CET 2005


morgan at dutro

Mar 7, 2005, 11:57 AM

Post #10 of 14 (2879 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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
morgan [at] dutro


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


morgan at dutro

Mar 7, 2005, 12:01 PM

Post #11 of 14 (2855 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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
morgan [at] dutro


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


todd at toddstevens

Mar 7, 2005, 12:21 PM

Post #12 of 14 (2885 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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


njh at bandsman

Mar 7, 2005, 12:36 PM

Post #13 of 14 (2872 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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?

[njh [at] ma njh]$ rpm -q gcc
gcc-3.3.3-16.ydl.4
[njh [at] ma njh]$


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


morgan at dutro

Mar 10, 2005, 11:57 AM

Post #14 of 14 (2864 views)
Permalink
Re: v0.81 libclamav clearerr on YDL 4.0, PPC [In reply to]

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

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.