<?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>57355</bug_id>
          
          <creation_ts>2004-07-16 20:46 0000</creation_ts>
          <short_desc>ntp 4.2.0-r2 fails with &apos;Servname not supported for ai_socktype&apos;</short_desc>
          <delta_ts>2004-11-09 07:41:07 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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>brettholcomb@bellsouth.net</reporter>
          <assigned_to>vapier@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-16 20:46:42 0000</bug_when>
            <thetext>I was checking out my ntp to make sure it still worked and it does not so I did the following after checking the forums, bugzilla, and the mail list.

Well 4.2.0-r2 is still broken.  I downgraded to the previous version and  
it works.  I then went back to 4.2.0-r2 and tried the -U ntp fix for      
/etc/conf.d/ntpd mentioned in the mail list but it did not work.  ntp
complained about invalid option.  I don&apos;t have any restricts in
/etc/ntp.conf as they are all commented out.

In short, it&apos;s broken badly so I&apos;m downgrading again and masking it.  Others have had to downgrade also.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-17 17:02:43 0000</bug_when>
            <thetext>no real information here

the 4.2.x ntpd&apos;s use -u for setting users while 4.1.x uses -U</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-17 17:47:40 0000</bug_when>
            <thetext>Well, it may work for you but it sure doesn&apos;t work for many of us - check the mail list archives.  I went through the forums, the mail list archives and the bugs for a long time last night reading all the suggested fixes, how-tos, etc.  Tried all the things suggested their and finally ended up downgrading - as did many of the posters.  It&apos;s worked flawlessly since.

Yup, I&apos;m aware that 4.2 use -u vs -U.  One poster was able to get 4.2 to work by using -U in the /etc/conf.d/ntpd.conf file.  That didn&apos;t work here. 

The system is a 2.6.7-r9 gentoo-dev-sources kernel.

I also have a 2.4.24 xfs-sources system that ntp 4.2 works on.  However, this system is being upgraded to 2.6.7-r11 gentoo-dev-sources so we&apos;ll see if ntp breaks on this system.  If it works maybe that will give a clue - if not that may be a clue, too.

I&apos;d suggest leaving the bug open especially in light of the problems others have had.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-17 18:56:45 0000</bug_when>
            <thetext>there is no such file as /etc/conf.d/ntpd.conf so i really dont know what you&apos;re talking about there

the custom options go in /etc/conf.d/ntpd

i&apos;m not going to re-open the bug until i see what you&apos;re talking about; people complaining that &apos;-U&apos; causes ntpd to not start is not a valid bug ... they need to update their config files</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-17 19:25:17 0000</bug_when>
            <thetext>My apologies on the filename.  I shouldn&apos;t do that from memory.  It was the stock /etc/conf.d/ntpd that was installed by the 4.2 ebuild.  I didn&apos;t touch it.

My point is this - according to the mail list archive/forum a lot of people had problems with 4.2 and to try and make it work there were a lot of things tried.  I tried all the ones that applied and ended up doing what many did - downgrade.  I did downgrade - works, upgrade again just in case I&apos;d messed something up - no work, downgrade again and it works.

As for the -U I did NOT use that in the 4.2 version.  I fully realize it&apos;s a pre 4.2 item.  My config file had -u ntp:ntp in it when I installed 4.2 - that&apos;s what etc-update put in it and it didn&apos;t work with that.  My comment about that was one person made his 4.2 work by going back to the -U option.  Why I don&apos;t know.

It will be interesting to see what my other system with 2.4.x and ntp 4.2 does when it&apos;s upgraded to 2.6.7.

I spent a lot of time digging throught the archives, forums, etc. and many people had problems with 4.2 - enough to indicate to me that there is a problem or problems and although it doesn&apos;t affect all it effects enough people that it&apos;s not just someones system that&apos;s broken.

As for what I&apos;m talking about check the mail list archives (gentoo-user) and search on ntp.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-17 19:38:54 0000</bug_when>
            <thetext>i&apos;m not exactly inclined to go searching for &apos;bug reports&apos; since i really have no idea *what* i&apos;m searching for

bugzilla is for people to bring their info here and report a bug, not to redirect developers to some other place

why dont you just post your `emerge info` and a summary of the trouble you&apos;re seeing</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-17 19:54:20 0000</bug_when>
            <thetext>Whoops!  I thought I&apos;d posted all the info in this bug but I posted it on the mail list, did some more work and just though I put it in the bug.  My apologies as I thought I had included the errors in the bugreport but I didn&apos;t and you can&apos;t read minds!  Sorry about that and my sincere apologies.  Let&apos;s start over with this - I&apos;ll give you the info I should have given you in the first place.

When I use ntp 4.2 I get this error with ntptrace, ntpq

Servname not supported for ai_socktype

The /var/log/ntpd.log shows this when I start ntpd.

16 Jul 01:01:25 ntpd[7971]: ntpd exiting on signal 15
16 Jul 01:01:28 ntpd[8013]: parent died before we finished, exiting
16 Jul 10:15:25 ntpd[12260]: frequency initialized 37.072 PPM from /var/lib/ntp/

I also get two ntp processes as shown by ps ax | grep ntp as root.

18071 ?        SL     0:00 /usr/bin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
18076 ?        S      0:00 /usr/bin/ntpd -p /var/run/ntpd.pid -u ntp:ntp

All those problems go away when I go back to ntp 4.1.2.

Here&apos;s the emerge info.

root@strider etc # emerge --info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7
-gentoo-r9)
=================================================================
System uname: 2.6.7-gentoo-r9 i686 AMD Athlon(TM) MP 2000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon-mp -Os -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/confi
g /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/tex
mf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi
/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon-mp -Os -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache fixpackages nostrip sandbox&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn
.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirr
or.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.us.gentoo.org/gentoo-portage&quot;
USE=&quot;X aalib acl alsa apm avi berkdb caps cdr crypt cups doc dvd dvdr emacs emac
s-w3 encode fbcon foomaticdb fusion gdbm gif gimp gimpprint gpm gtk gtk2 imap im
lib jack jack-caps jack-tmpfs java joystick jpeg libg++ libwww mad mbox mikmod
motif mpeg nas ncurses nls oggvorbis opengl oss pam passfile pdflib perl png post gres python quicktime readline rogue scanner sdl slang snmp spell ssl svga tcltk  tcpd tetex truetype usb video_cards_nvidia videos x86 xatrix xfs xinerama xml2 xmms xv zlib&quot;

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-17 20:05:03 0000</bug_when>
            <thetext>i assume you&apos;re running all of these programs against localhost ?

can you also post your /etc/ntp.conf file</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-17 20:15:55 0000</bug_when>
            <thetext>Created an attachment (id=35667)
ntp.conf file

Yes, I run ntptrace or ntpq -p

I&apos;m attaching /etc/ntp.conf. I used the same file for 4.1 and 4.2.  The only
changes made were to add some servers.	Gandalf is my 2.4.x machine.

Currently I have both machines at ntp 4.1.  If needed I can bring them back to
ntp 4.2 to get data.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-17 20:34:17 0000</bug_when>
            <thetext>do you have ipv6 enabled in the kernel ?

googling found references where this kind of thing isnt just in ntp ...
http://mailman.ntp.org/pipermail/questions/2004-May/003461.html
http://www.stacken.kth.se/lists/heimdal-discuss/2004-03/msg00073.html
http://mail-index.netbsd.org/current-users/2003/10/02/0028.html

these ones are good:
http://www.fredi.de/maillist/archiv/2003/msg00720.html
http://www.fredi.de/maillist/archiv/2003/msg00721.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-18 08:45:00 0000</bug_when>
            <thetext>No, Ipv6 is not set:

# CONFIG_IPV6 is not set

I checked through the references you listed.  What else in the kernel could cause this kind of problem?  The ipv6 USE flag is NOT set.  

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-18 17:48:13 0000</bug_when>
            <thetext>try building your kernel with ipv6 and see if the error goes away

could be that ntp handles ipv6 incorrectly when it&apos;s not present</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-18 19:02:25 0000</bug_when>
            <thetext>Will do.  Will that affect me elsewhere or will things still run ipv4 by default?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-18 19:43:13 0000</bug_when>
            <thetext>enabling ipv6 should not break any ipv4 apps

i have ipv6 enabled on all my machines but none of them are actually hooked up to ipv6 networks ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brettholcomb@bellsouth.net</who>
            <bug_when>2004-07-26 16:50:48 0000</bug_when>
            <thetext>I did two things.  

1.  Went to kernel gentoo-dev-sources-2.6.7-r11.  I needed to test this anyway before I switched to it from -r9.

2.  Added ipv6 support to the kernel.  

Now ntpq -p gives me a list of hosts without error.  

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 gandalf         .INIT.          16 u    -   64    0    0.000    0.000 4000.00
*ntp-4.cns.vt.ed 198.82.247.40    2 u  180  256   17   29.995    3.936   5.453
 ntp3.tamu.edu   128.194.254.7    2 u  183  256   17   51.967   11.100   3.139
 CYAN.SRV.CS.CMU 128.2.242.86     3 u  247  256   15   30.432    5.471   2.952

Looks like it&apos;s working now.  I assume this means it needs ipv6 - is this a bug or a feature &lt;G&gt;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-11-09 07:41:07 0000</bug_when>
            <thetext>4.2.0.20040617 has a bunch of ipv6 fixes</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>35667</attachid>
            <date>2004-07-17 20:15 0000</date>
            <desc>ntp.conf file</desc>
            <filename>ntp.conf</filename>
            <type>text/plain</type>
            <data encoding="base64">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