Date: Wed, 26 Aug 2009 14:12:57 GMT From: Oliver Pinter <oliver.pntr@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/138206: not enabled function, and false manual Message-ID: <200908261412.n7QECvEJ035370@www.freebsd.org> Resent-Message-ID: <200908261420.n7QEK2AP026385@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 [ -<flag> [<val>] | --<name>[{=| }<val>] ]... ------------ 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 <opv@oliverp.teteny.bme.hu> 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 <oliverp@teteny.bme.hu> 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 <bsd.own.mk> -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908261412.n7QECvEJ035370>