The usbhotplug tool of pam_usb appears to be missing a #include <errno.h> line in event.c. This is causing compilation to fail, with a "missing symbol" error. Reproducible: Always Steps to Reproduce: 1. emerge pam_usb-0.2.3 Actual Results: gcc -c -Wall -O2 -I../../src -o event.o event.c distcc[19123] ERROR: compile /home/nd/.ccache/event.tmp.dunbar-n-1.19117.i on localhost failed event.c: In function `handle_event': event.c:109: warning: control reaches end of non-void function event.c: In function `exec_handler': event.c:121: error: `errno' undeclared (first use in this function) event.c:121: error: (Each undeclared identifier is reported only once event.c:121: error: for each function it appears in.) make[2]: *** [event.o] Error 1 Expected Results: successful compilation Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r5) ================================================================= System uname: 2.6.7-gentoo-r5 i686 Intel(R) Xeon(TM) CPU 3.06GHz Gentoo Base System version 1.5.1 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -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/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc fixpackages" GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acl acpi alsa apache2 apm arts avi berkdb caps cdr crypt cups curl dga directfb doc dvd dvdr encode esd fbcon flac flash foomaticdb freetds gb gdbm ggi gif gnome gpm gstreamer gtk gtk2 icc imap imlib jabber jack java jikes jpeg kde kerberos ldap libg++ libgda libwww mad menu mikmod mmx motif mozilla mpeg mysql ncurses nls nptl oggvorbis ooo-kde opengl oss pam pda pdflib perl png python qt quicktime readline samba sasl scanner sdl slang slp spell sqlite sse ssl svga tcltk tcpd theora truetype usb video_cards_nvidia videos wxwindows x86 xinerama xml2 xmms xv zlib"
Created attachment 34624 [details, diff] Patch to correct event.c This patch corrects the build error for pam_usb-0.2.3 (new ebuild script attached in another patch)
Created attachment 34625 [details] Modified ebuild script to include pam_usb-event.patch This ebuild script allows pam_usb to be built correctly.
Yeah, I'm aware of this issue with gcc 3.3. As i'm also pam_usb's upstream developer, i fixed both the error message and all the warnings we had with gcc 3.3. I'll pull out both the new version of pam_usb and its ebuild later on today. Thanks for reporting the bug.
Fixed on 0.3.0