Error during compliation: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/include/gpgme -I/usr/include/claws-mail -I/usr/include/claws-mail/common -I/usr/include/claws-mail/gtk -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -O2 -pipe -msse3 -march=athlon64 -MT etpan_privacy_la-prefs_privacy.lo -MD -MP -MF .deps/etpan_privacy_la-prefs_privacy.Tpo -c prefs_privacy.c -o etpan_privacy_la-prefs_privacy.o >/dev/null 2>&1 plugin.c:67: error: conflicting types for 'plugin_done' /usr/include/claws-mail/common/plugin.h:45: error: previous declaration of 'plugin_done' was here make[2]: *** [etpan_privacy_la-plugin.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... etpan_privacy.c: In function 'etpan_privacy_init': etpan_privacy.c:631: warning: assignment discards qualifiers from pointer target type x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/include/gpgme -I/usr/include/claws-mail -I/usr/include/claws-mail/common -I/usr/include/claws-mail/gtk -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -O2 -pipe -msse3 -march=athlon64 -MT etpan_privacy_la-etpan_privacy.lo -MD -MP -MF .deps/etpan_privacy_la-etpan_privacy.Tpo -c etpan_privacy.c -o etpan_privacy_la-etpan_privacy.o >/dev/null 2>&1 make[2]: Leaving directory `/tmp/portage/mail-client/claws-mail-etpan-privacy-0.15.5/work/etpan-privacy-0.15.5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/mail-client/claws-mail-etpan-privacy-0.15.5/work/etpan-privacy-0.15.5' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: # emerge --info Portage 2.1.3_rc9 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6-r0, 2.6.22-kamikaze4-endar-v17 x86_64) ================================================================= System uname: 2.6.22-kamikaze4-endar-v17 x86_64 AMD Turion(tm) 64 Mobile Technology MT-32 Gentoo Base System release 2.0.0_alpha4 Timestamp of tree: Wed, 01 Aug 2007 14:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ABI="amd64" ACCEPT_KEYWORDS="amd64 ~amd64" ALSA_CARDS="intel8x0 usb-audio" ALSA_PCM_PLUGINS="ioplug dmix empty copy rate null route share shm softvol lfloat linear" ARCH="amd64" ASFLAGS_x86="--32" AUTOCLEAN="yes" AWT_TOOLKIT="MToolkit" CBUILD="x86_64-pc-linux-gnu" CDEFINE_amd64="__x86_64__" CDEFINE_x86="__i386__" CFLAGS="-O2 -pipe -msse3 -march=athlon64" CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" CG_COMPILER_EXE="/usr/bin/cgc" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/texmf/web2c" CVS_RSH="ssh" CXXFLAGS="-O2 -pipe -msse3 -march=athlon64" C_INCLUDE_PATH="/usr/lib/oracle/10.2.0.3/client/include" DEFAULT_ABI="amd64" DISPLAY=":0.1" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer moo parallel-fetch sandbox sfperms strict unmerge-orphans" LANG="pl_PL@euro" LANGUAGE="48" LC_ALL="pl_PL" LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" LESS="-R -M --shift 5" LINGUAS="pl" LOGNAME="root" MAKEOPTS="-j3" PAGER="/usr/bin/less" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig:/usr/qt/3/lib32/pkgconfig" PORTAGE_BIN_PATH="/usr/lib64/portage/bin" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary echo" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_NICENESS="19" PORTAGE_PYM_PATH="/usr/lib64/portage/pym" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portages/layman/xeffects /usr/portages/layman/custom-kernels /usr/portages/layman/arcon-portage /usr/portages/manwe" PORT_LOGDIR="/var/log/portage" PRELINK_PATH_MASK="/usr/lib64/klibc" PWD="/" PYTHONPATH="/usr/lib64/portage/pym" QMAKESPEC="linux-g++" ${URI}" ROOT="/" RPMDIR="/usr/portage/rpm" SHELL="/bin/bash" SHLVL="2" STAGE1_USE="nptl nptlonly unicode" SYMLINK_LIB="yes" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" TERM="rxvt" USE="3dnow 3dnowext X a52 aac aalib acpi aiglx alsa amd64 apache2 apm bash-completion bcmath berkdb bluetooth branding browserplugin bzip2 calendar cdinstall cdr crypt cups directfb dvd dvdr dvdread encode fbcon ffmpeg ftp gd-exteral gif glut gpm gtk2 ieee1394 irda jabber javascript jpeg libwww lm_sensors mmx mozilla mp3 mpeg3 mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pam_console pcmcia pdf perl php png qt qt4 samba soap sse sse2 sse3 ssl tiff truetype truetype-fonts usb vim wifi with-x wmf xcomposite xinerama xorg xosd xv xvid"
Upstream stopped supporting etpan-privacy plugin, as it was unmaintained, and its functionality can be replaced by pgpmime, pgpinline and smime plugins, which even do better job than etpan-privacy. I have package.masked claws-mail-etpan-privacy, and will remove it in 30 days. Therefore it no longer blocks gcc4.2 stabilization. Cheers.