<?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>26062</bug_id>
          
          <creation_ts>2003-08-06 10:26 0000</creation_ts>
          <short_desc>ntp-4.1.2 emerge fails</short_desc>
          <delta_ts>2006-02-04 06:05:27 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>Sparc</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>29106</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>ramiro@salas-family.org</reporter>
          <assigned_to>sparc@gentoo.org</assigned_to>
          <cc>David.Huff@computer-critters.com</cc>

      

      
          <long_desc isprivate="0">
            <who>ramiro@salas-family.org</who>
            <bug_when>2003-08-06 10:26:30 0000</bug_when>
            <thetext>Upgrade from ntp-4.1.1b-r6 fails with type error (output follows):
====================&lt;CUT HERE&gt;=====================
In file included from ../include/ntp_fp.h:10,
                 from ../include/ntpd.h:6,
                 from ntpd.c:15:
/usr/include/netinet/in.h:259: `__u32&apos; redeclared as different kind of symbol
/usr/include/asm-sparc/types.h:27: previous declaration of `__u32&apos;
/usr/include/netinet/in.h:261: `__u16&apos; redeclared as different kind of symbol
/usr/include/asm-sparc/types.h:24: previous declaration of `__u16&apos;
ntpd.c:218: warning: no previous prototype for `drop_root&apos;
make[2]: *** [ntpd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/ntp-4.1.2/work/ntp-4.1.2/ntpd&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntp-4.1.2/work/ntp-4.1.2&apos;
make: *** [all] Error 2

!!! ERROR: net-misc/ntp-4.1.2 failed.
!!! Function src_compile, Line 66, Exitcode 2
!!! (no error message)

====================&lt;CUT HERE&gt;=====================

Neanderthal root # emerge info
Portage 2.0.48-r7 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-sparc-r8 sparc64 sun4u
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;sparc apm avi foomaticdb mad mikmod nls directfb berkdb slang gtk -apache2
arts bonobo crypt -cups dga encode esd ethereal evo fbcon flash gb gd gdbm gif
gtk2 gnome gpm gtkhtml guile imap imlib innodb ipv6 java jikes jpeg kde lcms
ldap libgda libwww maildir -motif mozilla mozp3p mozaccess mozsvg mozcalendar
mpeg -mysql nas ncurses oav oci8 odbc oggvorbis opengl oss pam pda pdflib perl
plotutils png python qt quicktime readline samba sasl sdl snmp socks5 spell ssl
tcltk tcpd threads tiff truetype usb wmf X xml2 xmms xv zlib&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;sparc-sun4u-linux-gnu&quot;
CFLAGS=&quot;-mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe&quot;
CXXFLAGS=&quot;-mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe&quot;
ACCEPT_KEYWORDS=&quot;sparc ~sparc&quot;
MAKEOPTS=&quot;-j3&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox buildpkg ccache distcc userpriv usersandbox fixpackages&quot;

====================&lt;CUT HERE&gt;=====================</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bazik@gentoo.org</who>
            <bug_when>2003-08-07 09:12:13 0000</bug_when>
            <thetext>Seems that 4.1.2 got removed from the portage tree...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wesolows@gentoo.org</who>
            <bug_when>2003-08-10 16:33:15 0000</bug_when>
            <thetext>Conflict between glibc and the kernel headers.  See http://sources.redhat.com/ml/crossgcc/2002-05/msg00073.html

The trivial test case is:

#include &lt;asm/byteorder.h&gt;
#include &lt;netinet/in.h&gt;
int main () { }

which won&apos;t compile on any bigendian system.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wesolows@gentoo.org</who>
            <bug_when>2003-08-10 18:57:26 0000</bug_when>
            <thetext>Created an attachment (id=15872)
kernel headers patch

Patch to linux-headers that allows ntp to build.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wesolows@gentoo.org</who>
            <bug_when>2003-08-10 21:21:52 0000</bug_when>
            <thetext>Adding ppc and hppa folks to the cc list as their headers are broken also.  The patch needs to go upstream, but I&apos;m unsure what we must do for now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>temp1@pipegrep.net</who>
            <bug_when>2003-08-13 14:05:55 0000</bug_when>
            <thetext>Applying the above patch didn&apos;t seem to help me. I&apos;m assuming that goes in /usr/src/linux, right?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>temp1@pipegrep.net</who>
            <bug_when>2003-08-13 14:25:54 0000</bug_when>
            <thetext>Nevermind. I managed to cram it into /usr/include and things work fine. Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mhellwig@gmx.at</who>
            <bug_when>2003-08-28 04:32:29 0000</bug_when>
            <thetext>hmm applied the patch, still get the same error upon compilation of ntpd .. or do I have to recompile the kernel for that to work? darn .. don&apos;t wanna reboot ..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kumba@gentoo.org</who>
            <bug_when>2003-09-12 20:17:32 0000</bug_when>
            <thetext>ppc and hppa wanna give the patch in Comment #3 a run if you guys run into this issue?  sparc has a patch in a re-written linux-2.4.21 ebuild, so that will fix us up.  This still affects other big-endian archs, which includes mips, hppa, and ppc.  I&apos;ve got it fixed for mips, but if this doesn&apos;t affect ppc or hppa, or you&apos;ve already applied the patch, post here so this can get resolved.  A version of this patch went upstream to Marcelo in 2.4.23-pre4, so the stable 2.4.23 kernel will have this fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>David.Huff@computer-critters.com</who>
            <bug_when>2003-09-26 17:21:24 0000</bug_when>
            <thetext>Oops, now &gt;=virtual/linux-sources-2.2 have been masked
dependency required by sys-libs/libcap-1.10 (dependency of ntp-4.1.2)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blademan@gentoo.org</who>
            <bug_when>2003-10-06 09:20:03 0000</bug_when>
            <thetext>Using ~sparc and 2.4.22 this doesn&apos;t work in sparc:

 * Applying broadcastclient.patch...                                    
 [ ok ]
 * Applying 4.1.2-droproot.patch...                                     
 [ ok ]
 * Applying linux-config-phone.patch...                                 
 [ ok ]
configure.in:2496: /usr/bin/m4: Warning: Excess arguments to built-in `m4_pushdef&apos;
ignored
autom4te-2.57a: /usr/bin/m4 failed with exit status: 1
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
automake-1.7: no `Makefile.am&apos; found or specified

!!! ERROR: net-misc/ntp-4.1.2 failed.
!!! Function src_unpack, Line 52, Exitcode 1
!!! automake</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-10-06 09:29:36 0000</bug_when>
            <thetext>joe, you should know better than to add unrelated bug reports :p
see Bug 29961 ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blademan@gentoo.org</who>
            <bug_when>2003-10-06 09:33:19 0000</bug_when>
            <thetext>My mistake ;) In my haste to close, I didn&apos;t search.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-10-13 17:42:41 0000</bug_when>
            <thetext>seems to be working for me now on ~sparc.

Are others seeing this as well?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blademan@gentoo.org</who>
            <bug_when>2003-10-14 17:47:40 0000</bug_when>
            <thetext>ntp-4.1.2 works for me, ~sparc.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kumba@gentoo.org</who>
            <bug_when>2003-10-14 20:32:04 0000</bug_when>
            <thetext>Gonna remove ppc from the CC list, since I believe they have a working ntp.

Blademan, you using the linux-2.4.21 headers?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blademan@gentoo.org</who>
            <bug_when>2003-10-15 10:37:08 0000</bug_when>
            <thetext>`Kumba: Nope, I&apos;m using the stock 2.4.19 headers w/o any patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-11-06 23:34:06 0000</bug_when>
            <thetext>~hppa is all set now (or should be ...)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-02-14 14:56:47 0000</bug_when>
            <thetext>any updates here ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>David.Huff@computer-critters.com</who>
            <bug_when>2004-02-14 17:53:38 0000</bug_when>
            <thetext>Update, looks good by me. Recompiled on ever puffin on the farm (4 architectures) and they all worked.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2004-02-14 19:44:54 0000</bug_when>
            <thetext>Still having header problems on stable sparc.  Need to stablize newer linux-header s and it should be fixed.  Looking into it now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2004-02-15 09:23:50 0000</bug_when>
            <thetext>Marked linux-headers-2.4.21-r1 stable on sparc, which fixes this problem.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>15872</attachid>
            <date>2003-08-10 18:57 0000</date>
            <desc>kernel headers patch</desc>
            <filename>2.4-byteorder.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGxpbnV4L2luY2x1ZGUvbGludXgvYnl0ZW9yZGVyL2dlbmVyaWMuaC5vcmlnCTIwMDMtMDgt
MTAgMTg6MTU6MDcuMDAwMDAwMDAwIC0wNzAwCisrKyBsaW51eC9pbmNsdWRlL2xpbnV4L2J5dGVv
cmRlci9nZW5lcmljLmgJMjAwMy0wOC0xMCAxODoxNjozNi4wMDAwMDAwMDAgLTA3MDAKQEAgLTEy
Miw3ICsxMjIsNyBAQAogI2RlZmluZSBiZTE2X3RvX2NwdXMgX19iZTE2X3RvX2NwdXMKICNlbmRp
ZgogCi0KKyNpZiBkZWZpbmVkKF9fS0VSTkVMX18pCiAvKgogICogSGFuZGxlIG50b2hsIGFuZCBz
dWNoZXMuIFRoZXNlIGhhdmUgdmFyaW91cyBjb21wYXRpYmlsaXR5CiAgKiBpc3N1ZXMgLSBsaWtl
IHdlIHdhbnQgdG8gZ2l2ZSB0aGUgcHJvdG90eXBlIGV2ZW4gdGhvdWdoIHdlCkBAIC0xNDYsMzUg
KzE0NiwyNiBAQAogICogRG8gdGhlIHByb3RvdHlwZXMuIFNvbWVib2R5IG1pZ2h0IHdhbnQgdG8g
dGFrZSB0aGUKICAqIGFkZHJlc3Mgb3Igc29tZSBzdWNoIHNpY2sgdGhpbmcuLgogICovCi0jaWYg
ZGVmaW5lZChfX0tFUk5FTF9fKSB8fCAoZGVmaW5lZCAoX19HT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ZSBudG9obCh4KSAo
KHVuc2lnbmVkIGxvbmcpX19fbnRvaGwoeCkpCi0jZW5kaWYKICNkZWZpbmUgaHRvbnMoeCkgX19f
aHRvbnMoeCkKICNkZWZpbmUgbnRvaHMoeCkgX19fbnRvaHMoeCkKIAogI2VuZGlmIC8qIE9QVElN
SVpFICovCiAKKyNlbmRpZiAvKiBLRVJORUwgKi8KKwogCiAjZW5kaWYgLyogX0xJTlVYX0JZVEVP
UkRFUl9HRU5FUklDX0ggKi8K
</data>        

          </attachment>
    </bug>

</bugzilla>