Every time I try to emerge tpctl, it fails. Thinkpad-4.1 is installled and did
build correctly. And I was able to make and install tpctl-4.4 the old fashioned
way (make all, make install).
BTW, thinkpad-4.3 and tpctl-4.4 have been released.
Reproducible: Always
Steps to Reproduce:
1.emerge tpctl
2.
3.
Actual Results:
root@sasha init.d # emerge tpctl
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/tpctl-4.2 to /
>>> md5 ;-) tpctl_4.2.tar.gz
>>> Unpacking source...
>>> Unpacking tpctl_4.2.tar.gz to /var/tmp/portage/tpctl-4.2/work
>>> Source unpacked.
make: Entering directory `/var/tmp/portage/tpctl-4.2/work/tpctl-4.2/lib'
gcc -Wall -Wcast-align -Wstrict-prototypes -O2 -I../include -fPIC -DLINUX -o
smapidev.o -c smapidev.c
ld -shared -lc -soname libsmapidev.so.2 -o libsmapidev.so.2.0 smapidev.o
ln -sf libsmapidev.so.2.0 libsmapidev.so.2
ln -sf libsmapidev.so.2 libsmapidev.so
make: Leaving directory `/var/tmp/portage/tpctl-4.2/work/tpctl-4.2/lib'
make: Entering directory `/var/tmp/portage/tpctl-4.2/work/tpctl-4.2/tpctl'
gcc -Wall -Wcast-align -Wstrict-prototypes -Wno-uninitialized -O2 -L../lib
-I../include -DLINUX -o tpctl.o -c tpctl.c
gcc -Wall -Wcast-align -Wstrict-prototypes -Wno-uninitialized -O2 -L../lib
-I../include -DLINUX -o tpctl tpctl.o -lncurses -lsmapidev
tpctl.o(.text+0x24): In function `ioctl_thinkpad':
: undefined reference to `errno'
tpctl.o(.text+0x65): In function `ioctl_superio':
: undefined reference to `errno'
tpctl.o(.text+0xa5): In function `ioctl_rtcmosram':
: undefined reference to `errno'
tpctl.o(.text+0xe8): In function `ioctl_thinkpadpm':
: undefined reference to `errno'
tpctl.o(.text+0x7cc2): In function `main':
: undefined reference to `errno'
tpctl.o(.text+0x7d17): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [tpctl] Error 1
make: Leaving directory `/var/tmp/portage/tpctl-4.2/work/tpctl-4.2/tpctl'
!!! ERROR: sys-apps/tpctl-4.2 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! tpctl make failed
root@sasha init.d # emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r3 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow avi crypt encode gif libg++ libwww mikmod mmx mpeg ncurses
nls pdflib png quicktime spell truetype xml2 xmms zlib gtkhtml gdbm berkdb slang
readline bonobo svga tcltk guile sdl tcpd pam ssl perl python esd imlib
oggvorbis motif opengl cdr X kde qt -gtk -gnome alsa apm arts cups dvd gpm gtk2
java jpeg mozilla mysql pcmcia samba usb xv"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache distcc"