Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55864 - emerge of pam_usb 0.2.3 fails with missing symbol
Summary: emerge of pam_usb 0.2.3 fails with missing symbol
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Andrea Luzzardi
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-02 03:46 UTC by Neil Dunbar
Modified: 2004-08-02 08:43 UTC (History)
0 users

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


Attachments
Patch to correct event.c (pam_usb-event.patch,264 bytes, patch)
2004-07-02 03:47 UTC, Neil Dunbar
Details | Diff
Modified ebuild script to include pam_usb-event.patch (pam_usb-0.2.3.ebuild,990 bytes, text/plain)
2004-07-02 03:49 UTC, Neil Dunbar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Dunbar 2004-07-02 03:46:34 UTC
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"
Comment 1 Neil Dunbar 2004-07-02 03:47:54 UTC
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)
Comment 2 Neil Dunbar 2004-07-02 03:49:09 UTC
Created attachment 34625 [details]
Modified ebuild script to include pam_usb-event.patch

This ebuild script allows pam_usb to be built correctly.
Comment 3 Andrea Luzzardi 2004-07-04 10:05:40 UTC
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.
Comment 4 Andrea Luzzardi 2004-08-02 08:43:00 UTC
Fixed on 0.3.0