please drop the 20090825051910-ntpd_man_fix.diff patch,
and use this: 20090825161558-ntpd_man_debug_fix.diff (attached)

this attached patch fixed the documented man options, and runs correct:

--8<--

# 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

--8<--

On 8/25/09, Oliver Pinter <oliver.p...@gmail.com> wrote:
> Hi all!
>
>  It's one more fix to ntp program set, ntpd man page for freebsd 7-stable.
>
commit 18001be3bcb3f48f77d87502373f4dbc4683c1dd
Author: opv <o...@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 <oliv...@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 \
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to