Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203996 - net-misc/ntp uses deprecated Avahi API
Summary: net-misc/ntp uses deprecated Avahi API
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: SpanKY
URL: https://support.ntp.org/bugs/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-01 21:42 UTC by jieryn
Modified: 2010-07-22 14:33 UTC (History)
2 users (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 jieryn 2008-01-01 21:42:01 UTC
# /etc/init.d/ntpd restart
 * Stopping ntpd ...                                                                                                                                                                     [ ok ]
 * Starting ntpd ...
*** WARNING *** The program 'ntpd' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=ntpd>                                                                                            [ ok ]

# emerge ntp -pv
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild   R   ] net-misc/ntp-4.2.4_p4  USE="caps ipv6 ssl zeroconf -debug -openntpd -parse-clocks (-selinux)" 0 kB


Portage 2.1.4_rc14 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-rc5 i686)
=================================================================
System uname: 2.6.24-rc5 i686 Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
Timestamp of tree: Tue, 01 Jan 2008 08:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.9999
dev-lang/python:     2.4.4-r7, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --nospinner"
FEATURES="assume-digests buildsyspkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/sajinet /usr/local/portage /usr/local/portage/krossai /usr/local/portage/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aiglx aio alsa amrr ao audiofile avahi avi bash-completion berkdb bitmap-fonts boost bzip2 cairo caps cdparanoia cdr cli console cracklib crypt cups curl dbus dri dts dvd dvdread ecc encode erandom evdev fbcon ffmpeg file finger firefox flac font-server ftp fusion gdbm gif gmp gnutls gpgme gtk hal i8x0 icecast iconv id3 idea imagemagick imap imlib injection ipv6 ipw4965 isdnlog java java5 jce jpeg jpeg2k key-screen kqemu lame libedit libwww linuxthreads-tls lm_sensors log4j logrotate lzo mad maildir mailwrapper matroska mbrola md5sum mdnsresponder-compat meanwhile midi mikmod mmx mng mozilla moznocompose moznoirc moznomail mp3 mpd mpeg mplayer mpm-peruser msn mudflap multiuser musepack mysql ncurses network nntp no-helper no-seamonkey nomozirc nptl nptlonly nsplugin nvidia ogg oggvorbis opengl openmp opennttpd oss pam pcmcia pcre pdf pdflib perl pmu png pop pppd pulseaudio python quicktime radeon rar readline real reflection rtc sasl sdl search-screen session shorten smime sndfile source spl sse sse2 ssl ssse3 subtitles svg swat sysfs syslog tcpd tga theora threads tiff tomcat truetype truetype-fonts type1-fonts unicode utempter vcd vorbis wifi win32codecs wmf x264 x86 xgetdefault xinetd xml xml2 xorg xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="peruser" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev vga vesa nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 jieryn 2008-01-01 21:49:11 UTC
This may be interesting..

  https://support.ntp.org/bugs/show_bug.cgi?id=578

Fix is provided, I haven't had a chance to test it yet.
Comment 2 SpanKY gentoo-dev 2008-01-01 23:07:14 UTC
it is merely a runtime warning and should not affect the correct running of the ntp application

i dont know squat about avahi, and there's a bug open upstream, so it'll get resolved eventually

applying a [possibly] incorrect change to resolve a cosmetic warning doesnt sound like a good idea to me ;)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-02 10:28:26 UTC
If you are bothered with this, just change the initscript to read  AVAHI_COMPAT_NOWARN="1" start-stop-daemon --start --exec /usr/sbin/ntpd \ ... and the warning will be gone. ;)
Comment 4 Alexandre Nuno Milheiro 2010-07-22 14:33:31 UTC
You can also add the following line en /etc/conf.d/ntpd:
export AVAHI_COMPAT_NOWARN=1

IMHO it's cleaner than editing the initscript