Commit df4e2ec0 authored by Eric S. Raymond's avatar Eric S. Raymond

Fix up ntpdsim.c until it compiles. Linkage doesn't quite work right...

...so condition our that ctx() in the wscript, for now.
parent bc93f2b3
......@@ -41,6 +41,9 @@ None right now. (Sep-22 2015)
* Add monkeypatch for rmdir, rmtree under Windows.
* ntpdsim does not quite build. There is something wrong with the way waf is
setting up the linkage. To reproduce, remove the "if 0" near the snd of
mtpd/wscript.
=== Code ===
......
......@@ -126,15 +126,15 @@ ntpsim(
init_mon();
init_timer();
init_lib();
init_request();
//init_request();
init_control();
init_peer();
init_proto();
init_proto(false);
init_loopfilter();
mon_start(MON_OFF);
/* Call getconfig to parse the configuration file */
getconfig(argc, argv);
getconfig(NULL);
loop_config(LOOP_DRIFTINIT, 0);
initializing = false;
......
......@@ -142,7 +142,24 @@ def build(ctx):
)
ntpdsim_source = [
"ntp_config.c",
"ntp_io.c",
"ntp_scanner.c",
"ntpd.c",
"ntp_prio_q.c",
"ntpsim.c"
]
if 0:
ctx(
target = "ntpdsim",
features = "c cprogram bld_include src_include libisc_include libisc_pthread_include ntp_version",
source = ntpdsim_source,
defines = ["SIM"],
use = "libntpd_obj bison_obj isc ntp opts M parse GCC_S RT CAP THR PTHREAD CRYPTO DNS_SD DNS_SD_INCLUDES %s" % use_refclock,
includes = [
"%s/ntpd/" % bldnode,
"%s/ntpd/" % srcnode
],
install_path= "${PREFIX}/bin/",
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment