After having emerged autoconf-2.58-r1 clamav does not compile any more. And I compiled it correctly just before. checking for snprintf... yes checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling !!! ERROR: net-mail/clamav-0.67 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed Reproducible: Didn't try Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-openmosix-r3) ================================================================= System uname: 2.4.22-openmosix-r3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X X509 Xaw3d accounting afs amd apache2 apm arts artswrappersuid athena autofs avi berkdb bonobo caps cdr chroot clamav crypt cups curl derectfb dvd emacs encode esd evo fax fftw foomaticdb footmaticdb foreign-package foreign-sysvinit gamma gatos gb gd gdbm gif gimpprint ginac gnome gpm gtk gtk2 hdf hdf5 i8x0 imagemagick imap imlib ipalias jabber java javascript jbig jikes jpeg kde leim libg++ libgda libwww lids lufsusermount mad maildir matroska mbox mcal md5sum memlimit mikmod milter mimod motif mozilla mpeg mpeg4 mpi msn multilib mupad-noscilab mysql ncurses netcdf nls oav oggvorbis opengl oscar oss pam passfile pcmcia pdflib perl plotutils png pnp ppds prelude python qhull qt quicktime radeon radius rage128 readline samba sasl scanner sdk sdl sis skey slang slp sox speex spell ssl svga tcltk tcpd tetex tiff transcode truetype unicode usb v4l video_cards_3dfx video_cards_gamma video_cards_i810 video_cards_i830 video_cards_matrox video_cards_radeon video_cards_rage128 video_cards_sis virus-scan wmf x86 xemacs xml xml2 xmms xv xvid yahoo zeo zlib"
There may be a connection of this bug with hardened-gcc and/or automake. Reemerge of hardened-gcc changed the comportement of "emerge clamav" and resolved the problem. I'm unable to identify the problem exactly.
A similar problem with compilation of qt disappeared in the same way.
Could it be, because emerging gcc again adds the header for autoconf linux/autoconf.h??? I just tried to emerge xfree and it wouldn't compile since linux/autoconf.h is missing, I guess it was removed when I upgraded to autoconf-2.58-r1 today.
I just checked with locate, the file linux/autoconf.h was there yesterday so it must have been deleted through emerge today. I wonder why???
I just managed to compile my xfree after copying the autoconf.h from kernel src directory to /usr/include/linux/ . I'm not sure though if the upgrade to autoconf broke it, emerging autoconf now doesn't delete the file, it may be a different package which caused this, it could be: coreutils or binutils also, since those are the two I emerge at the same day. I definitely got deleted thoug, since I ran updatedb on the 16th locate still shows autoconf.h is there and on the 17 th after upgrading to the latest autoconf, binutils , coreutils the autoconf.h is gone.
does 2.59-r3 fix this ?
hardened-gcc has been obsoleted and reporter did not give feedback. Closing bug.