<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
In trying to write tests for nts_client.c I have run into a problem
I do not know how to solve, as it involved much of the structure of
the codebase as well as the build system.<br>
<br>
Some of the code in nts_client.c calls the dns_take* series of
functions. These functions are defined in ntp_proto.c.<br>
<br>
nts_client.c is listed in the build system as part of the
libntpd_obj target. ntp_proto.c is in the ntpd target.<br>
<br>
When ntpd is built this works because ntp_proto.c in being built,
but when the tests are built it is not, and the build fails as a
result.<br>
<br>
I have tried to move ntp_proto.c to the libntpd_obj target, with the
expected result of multiple failures where the code calls other
stuff that is part of ntpd. After looking at the code I can't just
move the relevant functions themselves, as they too call into files
in ntpd. And I do not know the architecture at this level to a
sufficient depth to do the kind of surgery that would require
anyway.<br>
<br>
<div class="moz-signature">-- <br>
<i>"In the end; what separates a Man, from a Slave? Money? Power?
No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
<p>
<i>"Utopia cannot precede the Utopian.
It will exist the moment we are fit to occupy it."</i> --
Sophia Lamb
</p>
</div>
</body>
</html>