tests/option-tester.sh

Gary E. Miller gem at rellim.com
Tue Dec 5 03:48:55 UTC 2017


Yo Hal!

On Mon, 04 Dec 2017 19:38:00 -0800
Hal Murray <hmurray at megapathdsl.net> wrote:

> > I can confirm that debug is being set.  
> 
> This is pretty weird.  I wonder where it is being set, and why it
> isn't also set in the other modules.
> 
> > I don not see anything in there to turn on DEBUG.
> > Is there a verbose option for waf to show the gcc commands it is
> > running?  
> 
> waf -v is verbose mode.  You can either hack the script or run the
> equivalent by hand.  I'd probably do it by hand:
> 
>   ./waf configure --out=foo
>   grep DEBUG foo/config.h
>   ./waf build -v | tee foo.log
> 
> My config.h has:
> /* #undef ENABLE_DEBUG_TIMING */

I get exactly the same results. ???

Then my build fails:


[93/93] Linking foo/main/ntptime/ntptime
19:47:23 runner ['/usr/x86_64-pc-linux-gnu/gcc-bin/6.3.0/gcc', 'ntptime/ntptime.c.1.o', '-o/u1/src/NTP/ntpsec/foo/main/ntptime/ntptime', '-Wl,-Bstatic', '-Llibntp', '-lntp', '-Wl,-Bdynamic', '-lm', '-lrt', '-lbsd', '-Wl,-z,now', '-Wl,--strip-all', '-Wl,-z,relro']
ntpd/ntp_config.c.3.o: In function `destroy_attr_val_fifo':
ntp_config.c:(.text+0x33): undefined reference to `check_gen_fifo_consistency'
ntp_config.c:(.text+0x4c): undefined reference to `check_gen_fifo_consistency'
ntpd/ntp_config.c.3.o: In function `destroy_int_fifo':


Maybe the smart thing is to just change DEBUG to seomthing like NTP_DEBUG?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20171204/c8806232/attachment.bin>


More information about the devel mailing list