Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 115912

Summary: klamav-0.32 fails to compile with --j=3
Product: Gentoo Linux Reporter: Dominik Stadler (RETIRED) <centic>
Component: New packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: as.gentoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dominik Stadler (RETIRED) gentoo-dev 2005-12-18 01:27:32 UTC
klamav-0.32 fails to compile with the following errors:

make[3]: Entering directory `/var/tmp/portage/klamav-0.32/work/klamav-0.32-source/klamav-0.32/src/arkollon'
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -o logdialog.h ./logdialog.ui
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -o wizardbase.h ./wizardbase.ui
/usr/qt/3/bin/moc ./wizard.h -o wizard.moc.cpp
/usr/qt/3/bin/moc ./uninstallwizard.h -o uninstallwizard.moc.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o wizard.moc.o wizard.moc.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o uninstallwizard.moc.o uninstallwizard.moc.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o klamarkollon.o klamarkollon.cpp
In file included from wizard.moc.cpp:11:
wizard.h:78: error: expected class-name before '{' token
wizard.h:78: warning: `class Wizard' has virtual functions but non-virtual destructor
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o wizard.o wizard.cpp
wizard.moc.cpp: In static member function `static QMetaObject* Wizard::staticMetaObject()':
wizard.moc.cpp:54: error: `WizardBase' has not been declared
wizard.moc.cpp: In member function `virtual void* Wizard::qt_cast(const char*)':
wizard.moc.cpp:115: error: `WizardBase' has not been declared
wizard.moc.cpp: In member function `virtual bool Wizard::qt_invoke(int, QUObject*)':
wizard.moc.cpp:138: error: `WizardBase' has not been declared
wizard.moc.cpp: In member function `virtual bool Wizard::qt_emit(int, QUObject*)':
wizard.moc.cpp:145: error: `WizardBase' has not been declared
wizard.moc.cpp: In member function `virtual bool Wizard::qt_property(int, int, QVariant*)':
wizard.moc.cpp:151: error: `WizardBase' has not been declared
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o rcparser.o rcparser.cpp
make[3]: *** [wizard.moc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
wizard.cpp: In member function `void Wizard::nextStep()':
wizard.cpp:737: warning: comparison between signed and unsigned integer expressions
data.h: At global scope:
data.h:3074: warning: 'const QByteArray& qembed_findData(const char*)' defined but not used
data.h:3110: warning: 'const QImage& qembed_findImage(const QString&)' defined but not used
make[3]: Leaving directory `/var/tmp/portage/klamav-0.32/work/klamav-0.32-source/klamav-0.32/src/arkollon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/klamav-0.32/work/klamav-0.32-source/klamav-0.32/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/klamav-0.32/work/klamav-0.32-source/klamav-0.32'
make: *** [all] Error 2

!!! ERROR: app-antivirus/klamav-0.32 failed.
!!! Function kde_src_compile, Line 173, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.



Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-ck1 i686)
=================================================================
System uname: 2.6.14-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.2.3-r6, 2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fprefetch-loop-arrays -fomit-frame-pointer"
DISTDIR="/dat4/gentoo-cvs/distfiles"
FEATURES="autoconfig candy cvs distlocks noauto noinfo sandbox sfperms sign strict userpriv"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
LANG="de_AT@euro"
LC_ALL="de_AT@euro"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bluetooth browserplugin bzip2 bzlib c++ caps cddb cdparanoia cdr chm clamav cln crypt cups curl dba dga directfb divx4linux dvd dvdread eds encode exif expat fam fame fbcon ffmpeg fftw firefox flac foomaticdb foreign-package foreign-sysvinit freetype gd gdbm gif gimp gimpprint glut gmp gnokii gpgme gpm gsl gtk gtk2 idn imagemagick imlib irmc jack java javacomm jpeg jpeg2k jta junit kde kdeenablefinal kdepim kdexdeltas kipi kqemu lcms libclamav libwww lm_sensors logrotate lzw mad maildir mbox mhash mikmod mjpeg mmx mmx2 mng monkey motif moznomail mp3 mpeg mpeg4 mpi msn musicbrainz mysql nas ncurses nls nocardbus nsplugin nvidia oav ofx ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl png povray ppds python qt quicktime readline real rtc ruby samba scanner sdl servlet-2.4 session slang smime smp snmp sox speex spell sse sse2 ssl svg svga tcltk tcpd tetex tiff transcode truetype truetype-fonts type1 type1-fonts udev underscores usb userlocales vcd vcdimager videos visualization vorbis wmf xine xml2 xprint xv zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Dominik Stadler (RETIRED) gentoo-dev 2005-12-18 01:33:51 UTC
After running "make" in the src-directory manually, it continues to compile, so it seems this is related to MAKEOPTS="-j3", I'm trying to compile without -j now...
Comment 2 Dominik Stadler (RETIRED) gentoo-dev 2005-12-18 03:36:03 UTC
I just tried without --j, then emerging klamav worked.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-09 15:34:06 UTC
*** Bug 118467 has been marked as a duplicate of this bug. ***
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-09 16:07:55 UTC
Okay added a patch to make sure moc files are included with #include instead of built separately, this solves the parallel make issue (and should also take less to build).
Comment 5 Attila Stehr 2006-01-09 16:52:27 UTC
=)
Three cheers for Diego! You rule!