From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 26 14:20:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8D78106568B for ; Wed, 26 Aug 2009 14:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B68418FC20 for ; Wed, 26 Aug 2009 14:20:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7QEK2bZ026386 for ; Wed, 26 Aug 2009 14:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7QEK2AP026385; Wed, 26 Aug 2009 14:20:02 GMT (envelope-from gnats) Resent-Date: Wed, 26 Aug 2009 14:20:02 GMT Resent-Message-Id: <200908261420.n7QEK2AP026385@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Pinter Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A538106568B for ; Wed, 26 Aug 2009 14:12:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 70AC98FC22 for ; Wed, 26 Aug 2009 14:12:57 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7QECv5M035371 for ; Wed, 26 Aug 2009 14:12:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7QECvEJ035370; Wed, 26 Aug 2009 14:12:57 GMT (envelope-from nobody) Message-Id: <200908261412.n7QECvEJ035370@www.freebsd.org> Date: Wed, 26 Aug 2009 14:12:57 GMT From: Oliver Pinter To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/138206: not enabled function, and false manual X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 14:20:03 -0000 >Number: 138206 >Category: misc >Synopsis: not enabled function, and false manual >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 26 14:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Oliver Pinter >Release: 7.2-STABLE >Organization: >Environment: FreeBSD oliverp.teteny.bme.hu 7.2-STABLE FreeBSD 7.2-STABLE #8: Thu Aug 20 20:22:09 CEST 2009 root@oliverp.teteny.bme.hu:/usr/obj/usr/src/sys/stable amd64 >Description: man: -d Specify debugging mode. This option may occur more than once, with each occurrence indicating greater detail of display. shell: /etc# ntpd -d -c /etc/ntp.conf ntpd: illegal option -- d ntpd - NTP daemon program - Ver. 4.2.4p5 USAGE: ntpd [ - [] | --[{=| }] ]... ------------ after the attached patch: # ntpd -dddddddd ntpd 4.2.4p5-a Tue Aug 25 16:18:59 CEST 2009 (1) adding new filegen adding new filegen adding new filegen adding new filegen adding new filegen adding new filegen addto_syslog: set_process_priority: Leave priority alone: priority_done is <2> addto_syslog: precision = 0.698 usec create_sockets(123) addto_syslog: ntp_io: estimated max descriptors: 11095, initial socket boundary: 20 addto_syslog: bind() fd 20, family 2, port 123, addr 0.0.0.0, in_classd=0 flags= 0x89 fails: Address already in use addto_syslog: unable to bind to wildcard socket address 0.0.0.0 - another proces s may be running - EXITIN --- this output is OK >How-To-Repeat: ntp[qd] -d foo >Fix: Patch attached with submission follows: commit 18001be3bcb3f48f77d87502373f4dbc4683c1dd Author: opv Date: Tue Aug 25 16:15:58 2009 +0200 fix ntpq -d options add -DDEBUG as the header say... #ifdef DEBUG #define VALUE_OPT_DEBUG_LEVEL 'd' #endif /* DEBUG */ #ifdef DEBUG #define VALUE_OPT_SET_DEBUG_LEVEL 'D' #endif /* DEBUG */ after this patch, the ntpq running as the man say Signed-off-by : Oliver Pinter diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc index f81905a..71e2a57 100644 --- a/usr.sbin/ntp/Makefile.inc +++ b/usr.sbin/ntp/Makefile.inc @@ -2,7 +2,7 @@ .include -DEFS_LOCAL= -DPARSE -DHAVE_CONFIG_H +DEFS_LOCAL= -DPARSE -DHAVE_CONFIG_H -DDEBUG NTPDEFS= -DSYS_FREEBSD # CLOCKDEFS= # -DLOCAL_CLOCK -DPST -DWWVB -DAS2201 -DGOES -DGPSTM -DOMEGA \ >Release-Note: >Audit-Trail: >Unformatted: