Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218894 - clamav-0.93 configure fails with " User clamav (and/or group clamav) doesn't exist."
Summary: clamav-0.93 configure fails with " User clamav (and/or group clamav) doesn't ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on: 210133
Blocks:
  Show dependency tree
 
Reported: 2008-04-22 14:42 UTC by Kevin Parent
Modified: 2008-07-20 21:34 UTC (History)
5 users (show)

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


Attachments
clamav-0.93 emerge log (clamav-0.93.log,11.35 KB, text/plain)
2008-04-22 15:40 UTC, Kevin Parent
Details
config.log for clamav-0.93 (config.log,91.86 KB, text/plain)
2008-04-22 17:21 UTC, Kevin Parent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Parent 2008-04-22 14:42:49 UTC
Upgrading clamav from 0.92-1 to 0.93 fails with " User clamav (and/or group clamav) doesn't exist."  Both user and group clamav exist.  This hasn't happened before.  I've been using clamav with gentoo for years.

# grep clamav /etc/passwd
clamav:x:107:1008:added by portage for clamav:/dev/null:/sbin/nologin
# grep clamav /etc/group
clamav:x:1008:

getent also works:

# getent passwd | grep clamav
clamav:x:107:1008:added by portage for clamav:/dev/null:/sbin/nologin
# getent group | grep clamav
getent group | grep clamav

Reproducible: Always

Steps to Reproduce:
1. emerge -uDNp world or emerge clamav
2. watch it fail

Actual Results:  
...
...
checking for socklen_t... yes
checking for clamav using id... no
configure: error: User clamav (and/or group clamav) doesn't exist. Please read the documentation !

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-antivirus/clamav-0.93/work/clamav-0.93/config.log
 * 
 * ERROR: app-antivirus/clamav-0.93 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2840:  Called econf 'src_compile' 'src_compile' '--disable-zlib-vcheck' '--enable-id-check' '--enable-bzip2' '--enable-nls' '--with-iconv'
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-antivirus:clamav-0.93:20080422-142049.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-antivirus/clamav-0.93/temp/environment'.
 * 


Expected Results:  
Should intall cleanly

Oddly enough, it compiled on a different machine with nearly identical hardware and setup.

# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Tue, 22 Apr 2008 10:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoclean distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ "
LINGUAS="en_US en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 acl alsa berkdb cairo cdr cli cracklib crypt cups dbus dts dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kde kdecards mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl ssl svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 svrmarty 2008-04-22 15:18:04 UTC
i've the same entry on my two machines, but with an other shell as you

pc1:
clamav:x:102:446:added by portage for clamav:/dev/null:/bin/false

pc2:
clamav:x:104:448:added by portage for clamav:/dev/null:/bin/false

try change it and reemerge
Comment 2 svrmarty 2008-04-22 15:23:01 UTC
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-antivirus/clamav-0.93/work/clamav-0.93/config.log
Comment 3 Kevin Parent 2008-04-22 15:40:45 UTC
Created attachment 150598 [details]
clamav-0.93 emerge log

Sorry 'bout that.  Here it is.

Additionally, commenting out line 59 of the ebuild:

#myconf="${myconf} --enable-id-check"

Solved the issue.  The user and group were found successfully after commenting out that line.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-22 17:02:17 UTC
(In reply to comment #3)
> Created an attachment (id=150598) [edit]
> clamav-0.93 emerge log
> 
> Sorry 'bout that.  Here it is.

Take a deep breath, and read again:

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-antivirus/clamav-0.93/work/clamav-0.93/config.log

Now where is that config.log?
Comment 5 Kevin Parent 2008-04-22 17:21:01 UTC
Created attachment 150621 [details]
config.log for clamav-0.93

DOH!!!!

Here it is.  Thanks for your patience.
Comment 6 Nico Baggus 2008-04-23 01:26:35 UTC
The problem is with the id command from coreutils.

Depends om bug: 210133

The id command fails in 6.10[-r1] while fetching a group list for systems that have multiple authentication sources (f.e. file & ldap)

http://bugs.gentoo.org/show_bug.cgi?id=210133
Comment 7 Kevin Parent 2008-04-23 13:58:38 UTC
Upgrading to coreutils-6.11 fixed the issue:

# id clamav
uid=107(clamav) gid=1008(clamav) groups=1008(clamav)

This machine is using openldap for auth, and clamav wasn't in the ldap db, only the passwd db.
Comment 8 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-20 21:34:41 UTC
(In reply to comment #6)
> The problem is with the id command from coreutils.
> 
> Depends om bug: 210133
> 
> The id command fails in 6.10[-r1] while fetching a group list for systems that
> have multiple authentication sources (f.e. file & ldap)
> 
> http://bugs.gentoo.org/show_bug.cgi?id=210133
> 

Closing as #210133 is fixed.