In first time, I had a missing library and clamd doesn't start. So I reemerge clamd . No error message. I did a /etc/init.d/clamd restart * Starting clamd... start-stop-daemon: stat /usr/sbin/clamd: No such file or directory * Failed to start clamd [ !! ] * Starting freshclam... start-stop-daemon: stat /usr/bin/freshclam: No such file or directory * Failed to start freshclam [ !! ] I remerge manytime without succes. I performed the ./configure and make myself (like it say in faq http://www.gentoo.org/doc/en/faq.xml#configure). clamd and freshclam are presents. I reproduc this bug on another computeur. I tried to unmerge adn emerge : doesn't work Reproducible: Always Steps to Reproduce: 1. Have clamav emerged 2. Reemerge clamav 3. Actual Results: /etc/init.d/clamd restart * Starting clamd... start-stop-daemon: stat /usr/sbin/clamd: No such file or directory * Failed to start clamd [ !! ] * Starting freshclam... start-stop-daemon: stat /usr/bin/freshclam: No such file or directory * Failed to start freshclam Expected Results: clamd and freschclam services start emerge clamav output test -z "/usr/share/man/man1" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man1" /bin/install -c -m 644 './man/clamscan.1' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man1/i686-pc-linux-gnu-clamscan.1' /bin/install -c -m 644 './man/freshclam.1' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man1/i686-pc-linux-gnu-freshclam.1' /bin/install -c -m 644 './man/sigtool.1' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man1/i686-pc-linux-gnu-sigtool.1' /bin/install -c -m 644 './man/clamdscan.1' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man1/i686-pc-linux-gnu-clamdscan.1' test -z "/usr/share/man/man5" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man5" /bin/install -c -m 644 './man/clamd.conf.5' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man5/i686-pc-linux-gnu-clamd.conf.5' /bin/install -c -m 644 './man/freshclam.conf.5' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man5/i686-pc-linux-gnu-freshclam.conf.5' test -z "/usr/share/man/man8" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man8" /bin/install -c -m 644 './man/clamd.8' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man8/i686-pc-linux-gnu-clamd.8' /bin/install -c -m 644 './man/clamav-milter.8' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man8/i686-pc-linux-gnu-clamav-milter.8' make[2]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/docs' make[1]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/docs' Making install in etc make[1]: Entering directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/etc' /bin/sh ../mkinstalldirs /var/gentoo/tmp/portage/clamav-0.80/image//etc mkdir -p -- /var/gentoo/tmp/portage/clamav-0.80/image//etc make[1]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/etc' Making install in clamav-milter make[1]: Entering directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/clamav-milter' make[2]: Entering directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/clamav-milter' test -z "/usr/sbin" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/sbin" test -z "/usr/share/man/man8" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/share/man/man8" make[2]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/clamav-milter' make[1]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80/clamav-milter' make[1]: Entering directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80' make[2]: Entering directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80' test -z "/usr/bin" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/bin" /bin/install -c 'clamav-config' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/bin/i686-pc-linux-gnu-clamav-config' test -z "/usr/lib/pkgconfig" || mkdir -p -- . "/var/gentoo/tmp/portage/clamav-0.80/image//usr/lib/pkgconfig" /bin/install -c -m 644 'libclamav.pc' '/var/gentoo/tmp/portage/clamav-0.80/image//usr/lib/pkgconfig/libclamav.pc' make[2]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80' make[1]: Leaving directory `/var/gentoo/tmp/portage/clamav-0.80/work/clamav-0.80' /usr/lib/portage/bin/dodoc: TODO does not exist. man: gzipping man page: i686-pc-linux-gnu-clamscan.1 gzipping man page: i686-pc-linux-gnu-freshclam.1 gzipping man page: i686-pc-linux-gnu-sigtool.1 gzipping man page: i686-pc-linux-gnu-clamdscan.1 gzipping man page: i686-pc-linux-gnu-clamd.conf.5 gzipping man page: i686-pc-linux-gnu-freshclam.conf.5 gzipping man page: i686-pc-linux-gnu-clamd.8 gzipping man page: i686-pc-linux-gnu-clamav-milter.8 prepallstrip: strip: strip: usr/lib/libclamav.so.1.0.4 usr/bin/i686-pc-linux-gnu-clamscan usr/bin/i686-pc-linux-gnu-clamdscan usr/bin/i686-pc-linux-gnu-freshclam usr/bin/i686-pc-linux-gnu-sigtool usr/sbin/i686-pc-linux-gnu-clamd making executable: /usr/lib/libclamav.so.1.0.4 >>> Completed installing into /var/gentoo/tmp/portage/clamav-0.80/image/ >>> Merging app-antivirus/clamav-0.80 to / --- /usr/ --- /usr/lib/ >>> /usr/lib/libclamav.so.1.0.4 >>> /usr/lib/libclamav.so.1 -> libclamav.so.1.0.4 >>> /usr/lib/libclamav.so -> libclamav.so.1.0.4 >>> /usr/lib/libclamav.la >>> /usr/lib/libclamav.a --- /usr/lib/pkgconfig/ >>> /usr/lib/pkgconfig/libclamav.pc --- /usr/include/ >>> /usr/include/clamav.h --- /usr/bin/ >>> /usr/bin/i686-pc-linux-gnu-clamscan >>> /usr/bin/i686-pc-linux-gnu-clamdscan >>> /usr/bin/i686-pc-linux-gnu-freshclam >>> /usr/bin/i686-pc-linux-gnu-sigtool >>> /usr/bin/i686-pc-linux-gnu-clamav-config --- /usr/sbin/ >>> /usr/sbin/i686-pc-linux-gnu-clamd --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/i686-pc-linux-gnu-sigtool.1.gz >>> /usr/share/man/man1/i686-pc-linux-gnu-clamdscan.1.gz >>> /usr/share/man/man1/i686-pc-linux-gnu-clamscan.1.gz >>> /usr/share/man/man1/i686-pc-linux-gnu-freshclam.1.gz --- /usr/share/man/man5/ >>> /usr/share/man/man5/i686-pc-linux-gnu-clamd.conf.5.gz >>> /usr/share/man/man5/i686-pc-linux-gnu-freshclam.conf.5.gz --- /usr/share/man/man8/ >>> /usr/share/man/man8/i686-pc-linux-gnu-clamd.8.gz >>> /usr/share/man/man8/i686-pc-linux-gnu-clamav-milter.8.gz --- /usr/share/doc/ --- /usr/share/doc/clamav-0.80/ >>> /usr/share/doc/clamav-0.80/AUTHORS.gz >>> /usr/share/doc/clamav-0.80/BUGS.gz >>> /usr/share/doc/clamav-0.80/NEWS.gz >>> /usr/share/doc/clamav-0.80/README.gz >>> /usr/share/doc/clamav-0.80/FAQ.gz >>> /usr/share/doc/clamav-0.80/ChangeLog.gz >>> /usr/share/doc/clamav-0.80/INSTALL.gz >>> /usr/share/doc/clamav-0.80/clamav-milter.README.gentoo.gz --- /var/ --- /var/lib/ --- /var/lib/clamav/ >>> /var/lib/clamav/main.cvd >>> /var/lib/clamav/daily.cvd --- /etc/ >>> /etc/clamd.conf >>> /etc/freshclam.conf --- /etc/init.d/ >>> /etc/init.d/clamd --- /etc/conf.d/ >>> /etc/conf.d/clamd >>> Safely unmerging already-installed instance... --- !mtime obj /var/lib/clamav/main.cvd --- !mtime obj /var/lib/clamav/daily.cvd <<< obj /usr/share/man/man8/clamd.8.gz <<< obj /usr/share/man/man8/clamav-milter.8.gz <<< obj /usr/share/man/man5/freshclam.conf.5.gz <<< obj /usr/share/man/man5/clamd.conf.5.gz <<< obj /usr/share/man/man1/sigtool.1.gz <<< obj /usr/share/man/man1/freshclam.1.gz <<< obj /usr/share/man/man1/clamscan.1.gz <<< obj /usr/share/man/man1/clamdscan.1.gz --- !mtime obj /usr/share/doc/clamav-0.80/clamav-milter.README.gentoo.gz --- !mtime obj /usr/share/doc/clamav-0.80/README.gz --- !mtime obj /usr/share/doc/clamav-0.80/NEWS.gz --- !mtime obj /usr/share/doc/clamav-0.80/INSTALL.gz --- !mtime obj /usr/share/doc/clamav-0.80/FAQ.gz --- !mtime obj /usr/share/doc/clamav-0.80/ChangeLog.gz --- !mtime obj /usr/share/doc/clamav-0.80/BUGS.gz --- !mtime obj /usr/share/doc/clamav-0.80/AUTHORS.gz <<< obj /usr/sbin/clamd --- !mtime obj /usr/lib/pkgconfig/libclamav.pc --- !mtime obj /usr/lib/libclamav.so.1.0.4 --- !mtime obj /usr/lib/libclamav.la --- !mtime obj /usr/lib/libclamav.a --- !mtime obj /usr/include/clamav.h <<< obj /usr/bin/sigtool 0 the files are remove are <<< obj /usr/bin/freshclam 0 <<< obj /usr/bin/clamscan 0 <<< obj /usr/bin/clamdscan 0 <<< obj /usr/bin/clamav-config 0 --- cfgpro obj /etc/init.d/clamd --- cfgpro dir /etc/init.d --- cfgpro obj /etc/freshclam.conf --- cfgpro obj /etc/conf.d/clamd --- cfgpro dir /etc/conf.d --- cfgpro obj /etc/clamd.conf --- !empty dir /var/lib/clamav --- !empty dir /var/lib --- !empty dir /var --- !empty dir /usr/share/man/man8 --- !empty dir /usr/share/man/man5 --- !empty dir /usr/share/man/man1 --- !empty dir /usr/share/man --- !empty dir /usr/share/doc/clamav-0.80 --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr/sbin --- !empty dir /usr/lib/pkgconfig --- !empty dir /usr/lib --- !empty dir /usr/include --- !empty dir /usr/bin --- !empty dir /usr --- !empty dir /etc --- !targe sym /usr/lib/libclamav.so.1 --- !targe sym /usr/lib/libclamav.so >>> original instance of package unmerged safely. * NOTE: As of clamav-0.80, the config file for clamd is no longer * /etc/clamav.conf, but /etc/clamd.conf. Adjust your * configuration accordingly before (re)starting clamd. * * Warning: clamd and/or freshclam have not been restarted. * You should restart them with: /etc/init.d/clamd restart * >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... >>> app-antivirus/clamav-0.80 merged. For the first gentoo system emerge info Warning: No xauth data; using fake authentication data for X11 forwarding. Gentoo Base System version 1.4.16 Portage 2.0.51-r3 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686) ================================================================= System uname: 2.6.9-gentoo-r4 i686 Pentium II (Deschutes) distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1,sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe -mmmx" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe -mmmx" DISTDIR="/gentoo/distfiles" FEATURES="autoaddcvs ccache distcc distlocks fixpackages sandbox" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://www.gigaload.org/gentoo.org/ http://ftp.lug.ro/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo/portage" USE="X apm avi berkdb bitmap-fonts crypt cups encode esd f77 foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses network nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib linguas_en linguas_fr" For the second gentoo system emerge info Portage 2.0.51-r3 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 AMD Athlon(tm) XP 2100+ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -pipe -O3 -fomit-frame-pointer -fforce-addr -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -pipe -O3 -fomit-frame-pointer -fforce-addr -falign-functions=4" DISTDIR="/var/gentoo/distfiles" FEATURES="autoaddcvs ccache distlocks fixpackages sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.lug.ro/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/gentoo/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77 foomaticdb fortran gdbm gif gimpprint gpm gtk gtk2 imlib ipv6 java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses network nfs nls nptl nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib linguas_en linguas_fr" The two system share the same /usr/portage by nfs (and same distfiles).
After take a look, only the follow files are installed : usr/bin/i686-pc-linux-gnu-clamscan usr/bin/i686-pc-linux-gnu-clamdscan usr/bin/i686-pc-linux-gnu-freshclam usr/bin/i686-pc-linux-gnu-sigtool usr/sbin/i686-pc-linux-gnu-clamd instead of usr/bin/clamscan usr/bin/clamdscan usr/bin/freshclam usr/bin/sigtool usr/sbin/clamd I tried to make soft link to start /etc/init.d/clamd. Freshclam start, clamd don't. I update portage to sys-apps/portage-2.0.51-r8 : no change. I had the same problem with scribus (no /usr/bin/scribus but one /usr/bin/i686-pc-linux-gnu-scribus) Thk
sounds a bit odd but I'll try to figure it out... seems to thake your C(c)FLAGS and put the arch as prefix to the executables ...
As there no more probleme with the stable version of clamav, I think I can close this bug. But I don't know how to change Status to closed. If someone can do this, thank. Sam
Good to know it works now.