Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270483 - net-misc/ntp-4.2.4_p6 does not compile anymore
Summary: net-misc/ntp-4.2.4_p6 does not compile anymore
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
: 270540 270649 (view as bug list)
Depends on:
Blocks: glibc-2.10
  Show dependency tree
Reported: 2009-05-19 19:53 UTC by Kamen Dokov
Modified: 2009-08-23 11:23 UTC (History)
3 users (show)

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

net-misc/ntp-4.2.4_p6 (build.log,110.51 KB, text/plain)
2009-05-19 19:55 UTC, Kamen Dokov
ebuild environment for net-misc/ntp-4.2.4_p6 (environment,101.16 KB, text/plain)
2009-05-19 19:56 UTC, Kamen Dokov
ntp-4.2.4_p6-nano.patch (ntp-4.2.4_p6-nano.patch,451 bytes, patch)
2009-05-19 20:58 UTC, Chris Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kamen Dokov 2009-05-19 19:53:08 UTC
Yesterday i updated as usual, after that i was asked from portage to recompile @preserved-rebuild.Of course i did it and now ntp fails to compile:

f ".deps/ntp_refclock.Tpo" ".deps/ntp_refclock.Po"; else rm -f ".deps/ntp_refclock.Tpo"; exit 1; fi
ntp_loopfilter.c: In function ‘local_clock’:
ntp_loopfilter.c:571: error: ‘MOD_NANO’ undeclared (first use in this function)
ntp_loopfilter.c:571: error: (Each undeclared identifier is reported only once
ntp_loopfilter.c:571: error: for each function it appears in.)
ntp_loopfilter.c: In function ‘loop_config’:
ntp_loopfilter.c:896: error: ‘MOD_NANO’ undeclared (first use in this function)
make[3]: *** [ntp_loopfilter.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/net-misc/ntp-4.2.4_p6/work/ntp-4.2.4p6/ntpd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-misc/ntp-4.2.4_p6/work/ntp-4.2.4p6/ntpd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/ntp-4.2.4_p6/work/ntp-4.2.4p6'
make: *** [all] Error 2
emerge --info 
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-zen1 x86_64)
System uname: Linux-2.6.29-zen1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.0
Timestamp of tree: Tue, 19 May 2009 11:00:01 +0000                                                     
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     4.0_p24                                                                           
dev-java/java-config: 2.1.7                                                                            
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-loop-linear"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-loop-linear -fvisibility-inlines-hidden"
FEATURES="candy ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags"
LINGUAS="en_GB en_US en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow 3dnowext X acl acpi alsa amd64 berkdb bitmap-fonts branding cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gcj gdbm gif gpm gstreamer gtk hal htmlhandbook iconv ipv6 isdnlog jpeg kde4 ldap mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ocamlopt ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl ssse3 svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xml xorg xv zlib" ALSA_CARDS="hda-nvidia hda-intel" 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 asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse ps2mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"

emerge -pv ntp

These are the packages that would be merged, in order:

Calculating dependencies                  ... done!
[ebuild   R   ] net-misc/ntp-4.2.4_p6  USE="caps debug ipv6 parse-clocks ssl zeroconf -openntpd (-selinux)" 
I tried safe cflags and some combinations of useflags, -j1 does not work also.

Reproducible: Always

Steps to Reproduce:
1.updae to last ~amd64
2.rebuild net-misc/ntp-4.2.4_p6

Actual Results:  
compile fails

Expected Results:  
a proper merge
Comment 1 Kamen Dokov 2009-05-19 19:55:56 UTC
Created attachment 191829 [details]
Comment 2 Kamen Dokov 2009-05-19 19:56:52 UTC
Created attachment 191830 [details]
ebuild environment for net-misc/ntp-4.2.4_p6
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-19 20:32:01 UTC
Guessing this is a glibc-2.10.1 error and that the patch in URL will fix it. Please test.
Comment 4 Chris Smith 2009-05-19 20:58:30 UTC
Created attachment 191844 [details, diff]

this is the patch as I applied it to ntp-4.2.4_p6
works here
Comment 5 Kamen Dokov 2009-05-19 21:16:26 UTC
(In reply to comment #4)
> Created an attachment (id=191844) [edit]
> ntp-4.2.4_p6-nano.patch
> this is the patch as I applied it to ntp-4.2.4_p6
> works here

Yead the patch works!!! 
Thank you! :D
Comment 6 SpanKY gentoo-dev 2009-05-19 23:09:36 UTC
ive added the fix to ntp-4.2.4_p7, cheers
Comment 7 SpanKY gentoo-dev 2009-05-20 10:09:11 UTC
*** Bug 270540 has been marked as a duplicate of this bug. ***
Comment 8 Serkan Kaba (RETIRED) gentoo-dev 2009-05-21 03:44:17 UTC
*** Bug 270649 has been marked as a duplicate of this bug. ***
Comment 9 Hal Engel 2009-07-16 15:17:27 UTC
This is really a bug in the glibc header files.  Has anyone pointed this out to glibc upstream?
Comment 10 SpanKY gentoo-dev 2009-08-23 11:23:32 UTC
considering adjtimex/ntp_adjtime are not standard functions, it's hard to say one implementation is "wrong".  feel free to e-mail the glibc people about it, but i doubt anything will change.