Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41855 - Clamav 0.67 /usr/sbin/clamd: relocation error: /usr/sbin/clamd: undefined symbol: cli_strtok
Summary: Clamav 0.67 /usr/sbin/clamd: relocation error: /usr/sbin/clamd: undefined sym...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Antivirus Team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks: 41248
  Show dependency tree
 
Reported: 2004-02-16 21:15 UTC by jason wohlgemuth
Modified: 2004-04-28 06:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jason wohlgemuth 2004-02-16 21:15:38 UTC
According to some mailing lists (see link above), it looks like the makefile needs to be modified so it will build with a new lib that contains cli_strtok.

Clamav .65 does not have this error

Reproducible: Always
Steps to Reproduce:
1.Emerge clamav .67
2.
3.

Actual Results:  
/etc/init.d/clamd restart

undefined reference to `cli_strtok'

Expected Results:  
/etc/init.d/clamd restart   [OK]
backing down to clamav .60 or .65 makes the error go away. 

Aurora clamav # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.2)
=================================================================
System uname: 2.6.2 i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
Gentoo Base System version 1.4.3.13
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr
                                                                                    
-falign-functions=16 -falign-labels=1 -falign-loops=16 -falign-jumps=16 -fstack-
                                                                                   
protector -mfpmath=sse,387 -ftracer -fnew-ra -fmerge-all-constants -funroll-all-
                                                                                   
loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
                                                                                   
/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-add
                                                                                   
r -falign-functions=16 -falign-labels=1 -falign-loops=16 -falign-jumps=16 -fstac
                                                                                   
k-protector -mfpmath=sse,387 -ftracer -fnew-ra -fmerge-all-constants -funroll-al
                                                                                   
l-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://mirror.tucdemonic.org/
                                                                                   
gentoo/ ftp://gentoo.noved.org/ ftp://gentoo.ccccom.com ftp://ftp.gtlib.cc.gatec
                                                                                   
h.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups encode esd fbdev foomaticdb
                                                                                   
 gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx mo
                                                                                   
tif mpeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt q
                                                                                   
uicktime radeon readline samba sdl slang spell sse ssl svga tcltk tcpd truetype
                                                                                    
video_cards_radeon x86 xml2 xmms xv zlib"
Comment 1 jason wohlgemuth 2004-02-16 21:20:28 UTC
Sorry the actual error was:
/usr/sbin/clamd: relocation error: 
/usr/sbin/clamd: undefined symbol: cli_strtok
Comment 2 Hanno Böck gentoo-dev 2004-02-17 02:20:10 UTC
I cannot reproduce this, can you give me some hint?
It is quite important, because 0.65/0.60 contain security bugs, so we need to bump 0.67 to stable as soon as possible.
Comment 3 col 2004-02-17 16:37:17 UTC
I get this error as well:

/usr/bin/clamdscan
/usr/bin/clamdscan: relocation error: /usr/bin/clamdscan: undefined symbol: cli_strtok

 emerge info
Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.21)
=================================================================
System uname: 2.4.21 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.aarnet.edu.au/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib java jpeg kde libg++ libwww mad mikmod milter motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang snmp spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"

Comment 4 cbo 2004-02-18 08:32:32 UTC
got the same problem with .65 (but init script didn't detect the error)

with .67 :
/usr/bin/freshclam: relocation error: /usr/bin/freshclam: undefined symbol: cli_strtok

 emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.2-gentoo)
=================================================================
System uname: 2.6.2-gentoo i686 AMD Athlon(tm) XP Processor
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="ftp://darkstar.ist.utl.pt/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.mirror.sdv.fr http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="3dnow apache2 apm arts berkdb crypt encode foomaticdb freetype gd gdbm gif gpm gtk2 ipv6 jpeg libg++ libgz libpng libwww mad mikmod mmx mpeg mysql ncurses nls oggvorbis opengl oss pam perl php png python quicktime readline sdl slang spell sse ssl svga tcpd threads truetype usagi x86 xml2 xv zlib"
Comment 5 leonardb 2004-02-20 12:29:08 UTC
Same problem here .. 
But here is the error in qmail-scanner ..

20/02/2004 14:57:22:14318: --output of clamscan was:
/usr/bin/clamscan: relocation error: /usr/bin/clamscan: undefined symbol: cli_strtok
--
20/02/2004 14:57:22:14318: tempfail: X-Qmail-Scanner-1.16: clam_scanner: corrupt or unknown ClamAV scanner error or memory/resource/perms problem - exit status 127

I can run /usr/bin/clamscan to scan the current directory i am in, however; i can not specify what file/directories to scan, if i try i get the usr/bin/clamscan: relocation error: /usr/bin/clamscan: undefined symbol: cli_strtok error ..

Note this is NOT an ebuild error .. this is after the build and during the box is up and accepting mail .. 
Comment 6 col 2004-02-23 20:30:37 UTC
I fixed this problem by deleting some stray libclamav libraries that were left in /usr/local/lib ... these were from an old source installation I had.
Comment 7 cbo 2004-02-23 23:31:06 UTC
thank you leonardb it worked for me too :)

ls -al /usr/local/lib/
total 202
drwxr-xr-x    2 root     root          240 f
Comment 8 cbo 2004-02-23 23:31:06 UTC
thank you leonardb it worked for me too :)

ls -al /usr/local/lib/
total 202
drwxr-xr-x    2 root     root          240 fév 19 06:33 .
drwxr-xr-x   10 root     root          288 fév 19 06:33 ..
-rw-r--r--    1 root     root            0 fév 19 06:33 .keep
-rw-r--r--    1 root     root       105066 fév  2  2003 libclamav.a
-rwxr-xr-x    1 root     root          740 fév  2  2003 libclamav.la
lrwxrwxrwx    1 root     root           18 oct 22 18:17 libclamav.so -> libclamav.so.1.0.2
lrwxrwxrwx    1 root     root           18 oct 22 18:17 libclamav.so.1 -> libclamav.so.1.0.2
-rwxr-xr-x    1 root     root        91524 fév  2  2003 libclamav.so.1.0.2

rm /usr/local/lib/libclamav


Comment 9 cbo 2004-02-23 23:33:48 UTC
oups forget .*

was rm /usr/local/lib/libclamav.*
Comment 10 leonardb 2004-02-24 05:14:34 UTC
I didnt provide the fix :) .. but i am glad to apply it and get a fix.. seems to work fine ..

Thanks a bunch ..
Comment 11 jason wohlgemuth 2004-02-24 20:29:44 UTC
That worked for me! I don't know if it is worth doing or not, but having the ebuild check for stray clamav libs in /usr/local/lib would be cool. (I did a source compile from cvs in the past because of a problem getting it to work)
Comment 12 col 2004-02-29 16:19:27 UTC
That leaves the question of why does the ebuild even use libraries in /usr/local/lib when gentoo seems to put all of them in /usr/lib ??
Comment 13 Larry Athey 2004-02-29 16:25:36 UTC
The suggested fixes here don't work on a fresh Gentoo installation. The only way I could get clamav 0.67 to work was to increase the softlimit in /var/qmail/control/conf-common to 16 megs. The files listed here that people are told to delete don't exist on a fresh Gentoo installation, so deleting them isn't a valid option to cure the problem.
Comment 14 leonardb 2004-03-01 05:08:57 UTC
Its not a legit fix my friend we all know this .. 

Comment 15 Hanno Böck gentoo-dev 2004-03-02 07:17:49 UTC
This seems to be no gentoo bug, as you guys had non-gentoo-libs laying around in /usr/local.
Comment 16 semen 2004-04-28 06:06:31 UTC
This help me too.
and work from now!

(seems to be left from an older version of clamav)

rm /usr/local/lib/libclamav*

emerge clamav