<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>218858</bug_id>
          
          <creation_ts>2008-04-22 09:24 0000</creation_ts>
          <short_desc>sys-kernel/linux-headers-2.6.25 has broken HZ define on alpha</short_desc>
          <delta_ts>2008-05-10 12:41:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://lkml.org/lkml/2008/5/10/34</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>klausman@gentoo.org</reporter>
          <assigned_to>alpha@gentoo.org</assigned_to>
          <cc>toolchain@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>klausman@gentoo.org</who>
            <bug_when>2008-04-22 09:24:54 0000</bug_when>
            <thetext>&gt;&gt;&gt; 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 ]
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking iputils-s20071127.tar.bz2 to /var/tmp/portage/net-misc/iputils-20071127-r1/work
&gt;&gt;&gt; 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 ]
&gt;&gt;&gt; Source unpacked.
&gt;&gt;&gt; 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 &apos;main_loop&apos;:
ping_common.c:561: error: &apos;CONFIG_HZ&apos; 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=&quot;alpha ~alpha&quot;
CBUILD=&quot;alpha-unknown-linux-gnu&quot;
CFLAGS=&quot;-mieee -pipe -O2 -mcpu=ev67&quot;
CHOST=&quot;alpha-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-mieee -pipe -O2 -mcpu=ev67&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch&quot;
LDFLAGS=&quot;&quot;
MAKEOPTS=&quot;-j5&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync5.de.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 	es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vesa&quot;
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>klausman@gentoo.org</who>
            <bug_when>2008-04-22 15:42:50 0000</bug_when>
            <thetext>I noticed that this also affects dev-lang/python</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-04-22 20:07:16 0000</bug_when>
            <thetext>anything using HZ is broken ... but this failure is because alpha headers have:
/usr/include/asm/param.h:#define HZ             CONFIG_HZ</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-04-23 16:54:38 0000</bug_when>
            <thetext>What needs to be fixed, then? All the apps failing?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-05-10 12:41:35 0000</bug_when>
            <thetext>the packages in question should not be using HZ ... they should be using sysconf(_SC_CLK_TCK)

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

should be fixed with 2.6.25-r2</thetext>
          </long_desc>
      
    </bug>

</bugzilla>