[Clamav-users] Error while loading shared libraries on PowerMac G5 running Yellow Dog Linux release 4.1

2009-04-17 Thread Vincent Li

Hello,

I have been running clamav version = 0.94 years on my Power Mac G5 with 
yellowdog linux 4.1. Starting from clamav 0.94.1, I am beginning to have 
problem with:

./freshclam/freshclam -V
/usr/src/clamav-0.94.1/freshclam/.libs/lt-freshclam: error while loading 
shared libraries: /usr/src/clamav-0.94.1/libclamav/.libs/libclamav.so.5: 
R_PPC_REL24 relocation at 0x0ff72b20 for symbol `fprintf' out of range

The PPC Yellow dog Linux system info:

# gcc --version
gcc (GCC) 3.4.4 20050721 (Yellow Dog 3.4.4-2.ydl.2)
# ld -V
GNU ld version 2.15.92.0.2 20040927
   Supported emulations:
elf32ppclinux
elf32ppc
elf32ppcsim
elf64ppc

I have x86 PC running Fedora 3, it runs clamav-0.94.1 - clamav- 0.95.1 
fine.

x86 PC fedora 3 system info:

# gcc --version
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
# ld -V
GNU ld version 2.15.92.0.2 20040927
   Supported emulations:
elf_i386
i386linux

There must be some changes between clamav-0.94 and  clamav-0.94.1 which 
made clamav stop working on PPC Linux, I have been going through the 
change log from clamav-0.94 to clamav-0.94.1, there seems a lot of 
changes, I have no clue which part break my installation. someone said I 
should upgrade linker package, but I want to be sure  it is the linker 
problem here, so that I can seek upgrading the linker. (it is not easy to 
upgrad linker since I am running relatively old system here).

I could provide more info if it helps solving this problem.

Thanks.

-
Vincent Li
Systems Administrator
BRC,UBC
perl 
-e'print\131e\164\040\101n\157t\150e\162\040\114i\156u\170\040\107e\145k\012'
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Error while loading shared libraries on PowerMac G5 running Yellow Dog Linux release 4.1

2009-04-17 Thread Tom Shaw
Vincent

Can't comment on Yellow Dog but using gcc 4.2, clamav 0.95.1 works 
fine under OSX 10.4 and 10.5. I had problems with gcc 3.4.

Hope this helps

Tom

At 3:31 PM -0700 4/17/09, Vincent Li wrote:
Hello,

I have been running clamav version = 0.94 years on my Power Mac G5 with
yellowdog linux 4.1. Starting from clamav 0.94.1, I am beginning to have
problem with:

./freshclam/freshclam -V
/usr/src/clamav-0.94.1/freshclam/.libs/lt-freshclam: error while loading
shared libraries: /usr/src/clamav-0.94.1/libclamav/.libs/libclamav.so.5:
R_PPC_REL24 relocation at 0x0ff72b20 for symbol `fprintf' out of range

The PPC Yellow dog Linux system info:

# gcc --version
gcc (GCC) 3.4.4 20050721 (Yellow Dog 3.4.4-2.ydl.2)
# ld -V
GNU ld version 2.15.92.0.2 20040927
Supported emulations:
 elf32ppclinux
 elf32ppc
 elf32ppcsim
 elf64ppc

I have x86 PC running Fedora 3, it runs clamav-0.94.1 - clamav- 0.95.1
fine.

x86 PC fedora 3 system info:

# gcc --version
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
# ld -V
GNU ld version 2.15.92.0.2 20040927
Supported emulations:
 elf_i386
 i386linux

There must be some changes between clamav-0.94 and  clamav-0.94.1 which
made clamav stop working on PPC Linux, I have been going through the
change log from clamav-0.94 to clamav-0.94.1, there seems a lot of
changes, I have no clue which part break my installation. someone said I
should upgrade linker package, but I want to be sure  it is the linker
problem here, so that I can seek upgrading the linker. (it is not easy to
upgrad linker since I am running relatively old system here).

I could provide more info if it helps solving this problem.

Thanks.

-
Vincent Li
Systems Administrator
BRC,UBC
perl 
-e'print\131e\164\040\101n\157t\150e\162\040\114i\156u\170\040\107e\145k\012'
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Error while loading shared libraries on PowerMac G5 running Yellow Dog Linux release 4.1

2009-04-17 Thread Vincent Li
On Fri, 17 Apr 2009, Vincent Li wrote:


 Hello,

 I have been running clamav version = 0.94 years on my Power Mac G5 with
 yellowdog linux 4.1. Starting from clamav 0.94.1, I am beginning to have
 problem with:

 ./freshclam/freshclam -V
 /usr/src/clamav-0.94.1/freshclam/.libs/lt-freshclam: error while loading
 shared libraries: /usr/src/clamav-0.94.1/libclamav/.libs/libclamav.so.5:
 R_PPC_REL24 relocation at 0x0ff72b20 for symbol `fprintf' out of range

 The PPC Yellow dog Linux system info:

 # gcc --version
 gcc (GCC) 3.4.4 20050721 (Yellow Dog 3.4.4-2.ydl.2)
 # ld -V
 GNU ld version 2.15.92.0.2 20040927
   Supported emulations:
elf32ppclinux
elf32ppc
elf32ppcsim
elf64ppc

 I have x86 PC running Fedora 3, it runs clamav-0.94.1 - clamav- 0.95.1
 fine.

 x86 PC fedora 3 system info:

 # gcc --version
 gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
 # ld -V
 GNU ld version 2.15.92.0.2 20040927
   Supported emulations:
elf_i386
i386linux

 There must be some changes between clamav-0.94 and  clamav-0.94.1 which
 made clamav stop working on PPC Linux, I have been going through the
 change log from clamav-0.94 to clamav-0.94.1, there seems a lot of
 changes, I have no clue which part break my installation. someone said I
 should upgrade linker package, but I want to be sure  it is the linker
 problem here, so that I can seek upgrading the linker. (it is not easy to
 upgrad linker since I am running relatively old system here).

 I could provide more info if it helps solving this problem.


I have done more test, I compile clamav-0.94.1 as:

./configure --prefix=/usr/local
make
make install

A--

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/lib/mysql
/usr/lib
/usr/local/lib

#ldconfig

# ldd /usr/local/bin/freshclam
 libclamav.so.5 = /usr/lib/libclamav.so.5 (0x0fc7)

# ls -l /usr/lib/libclamav.so.5
lrwxrwxrwx  1 root root 18 Sep  6  2008 /usr/lib/libclamav.so.5 - 
libclamav.so.5.0.1

# /usr/local/bin/freshclam -V
ClamAV 0.94.1/9252/Fri Apr 17 11:21:29 2009

B--

If I remove /usr/lib from /etc/ld.so.conf:

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/lib/mysql
/usr/local/lib

# ldconfig

# ldd /usr/local/bin/freshclam
 libclamav.so.5 = /usr/local/lib/libclamav.so.5 (0x0fee9000)

# ls -l /usr/local/lib/libclamav.so.5
lrwxrwxrwx  1 root root 18 Apr 17 17:08 /usr/local/lib/libclamav.so.5 - 
libclamav.so.5.0.3

# /usr/local/bin/freshclam -V
/usr/local/bin/freshclam: error while loading shared libraries: 
/usr/local/lib/libclamav.so.5: R_PPC_REL24 relocation at 0x0ff73ac4 for 
symbol `fprintf' out of range


Is this still linker problem? If freshclam linked to old libclamav.so.5 
lib produced from clamav-0.94 under /usr/lib , it works fine; if freshclam 
linked to its own libclamav.so.5 under /usr/local/lib, it gave error 
above.


-
Vincent Li
Systems Administrator
BRC,UBC
perl 
-e'print\131e\164\040\101n\157t\150e\162\040\114i\156u\170\040\107e\145k\012'
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Error while loading shared libraries on PowerMac G5 running Yellow Dog Linux release 4.1

2009-04-17 Thread Stephen Gran
On Fri, Apr 17, 2009 at 05:34:58PM -0700, Vincent Li said:
 On Fri, 17 Apr 2009, Vincent Li wrote:
 
 # ldd /usr/local/bin/freshclam
  libclamav.so.5 = /usr/local/lib/libclamav.so.5 (0x0fee9000)
 
 # /usr/local/bin/freshclam -V
 /usr/local/bin/freshclam: error while loading shared libraries: 
 /usr/local/lib/libclamav.so.5: R_PPC_REL24 relocation at 0x0ff73ac4 for 
 symbol `fprintf' out of range
 
 Is this still linker problem? If freshclam linked to old libclamav.so.5 
 lib produced from clamav-0.94 under /usr/lib , it works fine; if freshclam 
 linked to its own libclamav.so.5 under /usr/local/lib, it gave error 
 above.

That sounds very much like you've got a non-PIC library on your system
that you keep accidentally linking libclamav to.  Compare the set of
libraries that the two versions of libclamav are linked to, and go from
there.  There's not an easy way to tell if a library was linked with
fPIC, as far as I know, so that makes debugging slightly more difficult.

Good luck,
-- 
 --
|  Stephen Gran  | Electrocution, n.:  Burning at the  |
|  st...@lobefin.net | stake with all the modern improvements. |
|  http://www.lobefin.net/~steve | |
 --


signature.asc
Description: Digital signature
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml