<div dir="ltr">For libbind9, <a href="https://packages.ubuntu.com/trusty/libbind9-90">https://packages.ubuntu.com/trusty/libbind9-90</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 20, 2018 at 4:02 PM, Ronald F. Guilmette <span dir="ltr"><<a href="mailto:rfg@tristatelogic.com" target="_blank">rfg@tristatelogic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In message <<a href="mailto:20180320193041.d2bwvgkgyvqemyff@mycre.ws">20180320193041.<wbr>d2bwvgkgyvqemyff@mycre.ws</a>>,<br>
<span class="">Robert Edmonds <<a href="mailto:edmonds@mycre.ws">edmonds@mycre.ws</a>> wrote:<br>
<br>
>> I am porting some code of mine from FreeBSD to this Ubuntu system<br>
>> and I'm getting the following unresolved symbols at link time:<br>
>><br>
>> __res_query<br>
>> __res_mkquery<br>
>> __res_send<br>
>><br>
>> It seems apparent that this is caused by the fact that FreeBSD has<br>
>> the resolver routines integrated into libc, whereas Linux systems<br>
>> don't.<br>
><br>
>For glibc versions that are less than about ten years old, these should<br>
>be available in libresolv, which is part of glibc.<br>
<br>
</span>Thanks Robert! I added -lresolv to the link and now the link step is<br>
succeding.<br>
<span class=""><br>
>See the resolver(3) manpage, which is probably in the manpages-dev<br>
>package on Ubuntu 14.<br>
<br>
</span>For the record, I *did* look over that man page, and several others,<br>
before I posted my question. But neither that man page nor any of the<br>
several others I looked at ever said a word about the necessary extra<br>
-l option needed in order to drag in the needed resolver routines.<br>
<span class=""><br>
>This is unrelated to libbind9, which is a different API.<br>
<br>
</span>Well, see, and -that- may perhaps be a problem. I dunno yet. My hope,<br>
of course, is that I have not relied on any of the finer subtleties or<br>
more obscure aspects of libbind in any of my coding, but it may come to<br>
light that I have, and I may in fact end up needing to link to the<br>
real libbind9. I would still like to know how to do that, just in case,<br>
and I am still utterly perplexed and mystified about why the linker<br>
couldn't seem to find libbind9, even when I gave it the explicit path<br>
to the thing via an appropriate -L option.<br>
<br>
I hope somebody will explain to that to me still, because whatever the<br>
answer is to that mystery, it is sure to be highly educational, for me<br>
anyway.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/bind-users</a><br>
</div></div></blockquote></div><br></div>