From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 29 13:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B2C45AF3 for ; Thu, 29 Aug 2013 13:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9FC1C273F for ; Thu, 29 Aug 2013 13:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7TDU1GP029174 for ; Thu, 29 Aug 2013 13:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7TDU1Ul029173; Thu, 29 Aug 2013 13:30:01 GMT (envelope-from gnats) Date: Thu, 29 Aug 2013 13:30:01 GMT Message-Id: <201308291330.r7TDU1Ul029173@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Rodrigo OSORIO Subject: Re: bin/181645: ntpq -d flag does not work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Rodrigo OSORIO List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 13:30:01 -0000 The following reply was made to PR bin/181645; it has been noted by GNATS. From: Rodrigo OSORIO To: Marco Hoehle 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