Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50042 - sys-apps/hdparm-5.3-r2 fails to emerge
Summary: sys-apps/hdparm-5.3-r2 fails to emerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-04 16:26 UTC by Ryan Earl
Modified: 2004-05-05 00:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Earl 2004-05-04 16:26:45 UTC
>>> emerge (54 of 61) sys-apps/hdparm-5.3-r2 to /
>>> md5 src_uri ;-) hdparm-5.3.tar.gz
>>> Unpacking source...
>>> Unpacking hdparm-5.3.tar.gz to /var/tmp/portage/hdparm-5.3-r2/work
>>> Source unpacked.
 *
 * The rc-script for hdparm has been updated, so make sure
 * that you etc-update.  The script is much more configurable
 * for details please see /etc/conf.d/hdparm
 *
gcc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=athlon-xp -mmmx -msse2 -O3 -pipe -m64 -mfpmath=sse -fomit-frame-pointer   -c -o hdparm.o hdparm.c
gcc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=athlon-xp -mmmx -msse2 -O3 -pipe -m64 -mfpmath=sse -fomit-frame-pointer   -c -o identify.o identify.c
hdparm.c: In function `process_dev':
hdparm.c:731: error: `LVM_BLK_MAJOR' undeclared (first use in this function)
hdparm.c:731: error: (Each undeclared identifier is reported only once
hdparm.c:731: error: for each function it appears in.)
hdparm.c:1301: warning: deprecated use of label at end of compound statement
hdparm.c: In function `identify_from_stdin':
hdparm.c:1506: warning: operation on `b' may be undefined
hdparm.c:1506: warning: operation on `b' may be undefined
hdparm.c:1506: warning: operation on `b' may be undefined
make: *** [hdparm.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/hdparm-5.3-r2 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! compile error


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
However, sys-apps/hdparm-5.5 successfully emerged.


emerge info
Portage 2.0.50-r6 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -msse2 -O3 -pipe -m64 -mfpmath=sse
-fomit-frame-pointer"
CHOST="x86_64-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/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -msse2 -O3 -pipe -m64 -mfpmath=sse
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi amd64 apache2 apm arts avi crypt dvb encode foomaticdb gdbm gif
gpm imap imlib jpeg kde ldap libwww maildir mikmod motif mpeg mysql ncurses nls
nogcj oggvorbis oss pam pdflib perl png python quicktime readline samba sasl sdl
slang snmp speex spell ssl tcpd truetype xml2 xv zlib"
Comment 1 Ryan Earl 2004-05-04 17:19:49 UTC
OK, I realized that this only happens when I have linux-headers equal to my working kernel installed (ie linux-headers-2.6.5-gentoo).  Using the 2.4.21whatever headers let it build.
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-05-05 00:21:36 UTC
dont use 2.6 kernel headers. they break things, as you have seen.