Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218858 - sys-kernel/linux-headers-2.6.25 has broken HZ define on alpha
Summary: sys-kernel/linux-headers-2.6.25 has broken HZ define on alpha
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alpha Porters
URL: http://lkml.org/lkml/2008/5/10/34
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 09:24 UTC by Tobias Klausmann (RETIRED)
Modified: 2008-05-10 12:41 UTC (History)
1 user (show)

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 Tobias Klausmann (RETIRED) gentoo-dev 2008-04-22 09:24:54 UTC
>>> Emerging (1 of 24) net-misc/iputils-20071127-r1 to /
 * iputils-s20071127-manpages.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...     [ ok ]
 * iputils-s20071127.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking iputils-s20071127.tar.bz2 ;-) ...                             [ ok ]
 * checking iputils-s20071127-manpages.tar.bz2 ;-) ...                    [ ok ]
>>> Unpacking source...
>>> Unpacking iputils-s20071127.tar.bz2 to /var/tmp/portage/net-misc/iputils-20071127-r1/work
>>> Unpacking iputils-s20071127-manpages.tar.bz2 to /var/tmp/portage/net-misc/iputils-20071127-r1/work
 * Applying iputils-20071127-gcc34.patch ...                              [ ok ]
 * Applying 021109-uclibc-no-ether_ntohost.patch ...                      [ ok ]
 * Applying iputils-20070202-makefile.patch ...                           [ ok ]
 * Applying iputils-20071127-kernel-ifaddr.patch ...                      [ ok ]
 * Applying iputils-20060512-linux-headers.patch ...                      [ ok ]
 * Applying iputils-20070202-no-open-max.patch ...                        [ ok ]
 * Applying iputils-20070202-idn.patch ...                                [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-misc/iputils-20071127-r1/work/iputils-s20071127 ...
alpha-unknown-linux-gnu-gcc -mieee -pipe -O2 -mcpu=ev67 -Wstrict-prototypes -Wall -D_GNU_SOURCE   tracepath.c  -lresolv -o tracepath
alpha-unknown-linux-gnu-gcc -mieee -pipe -O2 -mcpu=ev67 -Wstrict-prototypes -Wall -D_GNU_SOURCE  -c -o ping.o ping.c
alpha-unknown-linux-gnu-gcc -mieee -pipe -O2 -mcpu=ev67 -Wstrict-prototypes -Wall -D_GNU_SOURCE  -c -o ping_common.o ping_common.c
ping_common.c: In function 'main_loop':
ping_common.c:561: error: 'CONFIG_HZ' undeclared (first use in this function)
ping_common.c:561: error: (Each undeclared identifier is reported only once
ping_common.c:561: error: for each function it appears in.)
make: *** [ping_common.o] Error 1

# emerge --info
Portage 2.1.5_rc6 (default-linux/alpha/2007.0/server, gcc-4.2.3, glibc-2.6.1-r0, 2.6.25-gentoo-r1 alpha)
=================================================================
System uname: 2.6.25-gentoo-r1 alpha EV68AL
Timestamp of tree: Tue, 22 Apr 2008 00:46:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="alpha ~alpha"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev67"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev67"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch"
LDFLAGS=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage"
USE="acl alpha apache2 bash-completion berkdb bzip2 cli cracklib crypt cups dri fortran ftp gdbm gpm iconv isdnlog mailwrapper midi mmap mudflap mysql ncurses nls nptl nptlonly offensive openmp pam pcre perl pppd python readline recode reflection session sharedmem snmp sockets spl ssl tcpd truetype unicode vim vim-pager xml xorg zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 	es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


monolith ~ # grep HZ /usr/src/linux/.config
CONFIG_HZ=1024
monolith ~ # zgrep HZ /proc/config.gz 
CONFIG_HZ=1024
monolith ~ # uname -a
Linux monolith 2.6.25-gentoo-r1 #1 SMP Tue Apr 22 10:59:29 CEST 2008 alpha EV68AL Tsunami GNU/Linux
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2008-04-22 15:42:50 UTC
I noticed that this also affects dev-lang/python
Comment 2 SpanKY gentoo-dev 2008-04-22 20:07:16 UTC
anything using HZ is broken ... but this failure is because alpha headers have:
/usr/include/asm/param.h:#define HZ             CONFIG_HZ
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2008-04-23 16:54:38 UTC
What needs to be fixed, then? All the apps failing?
Comment 4 SpanKY gentoo-dev 2008-05-10 12:41:35 UTC
the packages in question should not be using HZ ... they should be using sysconf(_SC_CLK_TCK)

however, i'm not about to start a crusade to fix said packages, so i'll just fix asm-alpha/param.h like every other arch out there

should be fixed with 2.6.25-r2