Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2013 13:30:01 GMT
From:      Rodrigo OSORIO <rodrigo@bebik.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/181645: ntpq -d flag does not work
Message-ID:  <201308291330.r7TDU1Ul029173@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/181645; it has been noted by GNATS.

From: Rodrigo OSORIO <rodrigo@bebik.net>
To: Marco Hoehle <marco.hoehle@unibas.ch>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/181645: ntpq -d flag does not work
Date: Thu, 29 Aug 2013 15:14:35 +0200

 > >Description:
 > In the manpage for ntpq the "debug" flag is explained but it does not work.
 > 
 > See example:
 > 
 > [hoehle@urz-hoehle-fbsd ~]$ man ntpq | grep "\-d"
 >      -d      Turn on debugging mode.
 > 
 > [hoehle@urz-hoehle-fbsd ~]$ ntpq -d
 > ntpq: illegal option -- d
 > ntpq - standard NTP query program - Ver. 4.2.4p8
 > 
 > test doc:
 > > man ntpq | grep "\-d"
 > 
 > test binary:
 > > ntpq -d
 > 
 > >Fix:
 > 
 > Either update the manpage or add the flag ;-)
 > 
 
 Apparently we forgot the -DDEBUG flag in usr.sbin/ntp/ntpq/Makefile
 to enable the debug options.
 
 Index: Makefile
 ===================================================================
 --- Makefile    (revision 253954)
 +++ Makefile    (working copy)
 @@ -19,7 +19,7 @@
  
  DPADD+=                ${LIBEDIT} ${LIBTERMCAP}
  LDADD+=                -ledit -ltermcap
 -CFLAGS+=       -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
 +CFLAGS+=       -DDEBUG -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
                 -I${DESTDIR}/${INCLUDEDIR}/edit
  
  CLEANFILES+= .version version.c
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308291330.r7TDU1Ul029173>