bin/181645: ntpq -d flag does not work
Rodrigo OSORIO
rodrigo at bebik.net
Thu Aug 29 13:30:01 UTC 2013
The following reply was made to PR bin/181645; it has been noted by GNATS.
From: Rodrigo OSORIO <rodrigo at bebik.net>
To: Marco Hoehle <marco.hoehle at unibas.ch>
Cc: freebsd-gnats-submit at 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 at urz-hoehle-fbsd ~]$ man ntpq | grep "\-d"
> -d Turn on debugging mode.
>
> [hoehle at 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
More information about the freebsd-bugs
mailing list