[yocto] advice on recipe for shared lib mDNSResponder

Andre McCurdy armccurdy at gmail.com
Thu Sep 28 17:44:13 PDT 2017


On Thu, Sep 28, 2017 at 5:11 PM, Andre McCurdy <armccurdy at gmail.com> wrote:
> On Thu, Sep 28, 2017 at 3:30 PM, Paul Eggleton
> <paul.eggleton at linux.intel.com> wrote:
>> Hi Steve,
>>
>> On Friday, 29 September 2017 5:29:32 AM NZDT Steve Pavao wrote:
>>> I was unable to successfully build that recipe here, though.  I’ll check
>>> with the maintainers to ask why.
>>>
>>> All I did was clone the meta-intel-iot-middleware repo, add that layer to
>>> bblayers.conf, and add mdns to IMAGE_INSTALL_append to get this far.
>>
>> FYI the meta-intel-iot-middleware repository is no longer being actively
>> maintained, however coincidentally I am currently in the process of updating
>> and moving the useful pieces elsewhere. mdns wasn't on my list, however I have
>> just tried to fix it up, here is what I have so far:
>>
>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-iot-middleware/commit/?h=paule/mdns-upgrade-1&id=7389dd6b1d3e69a05b8fa62673ba03b2a91073ff
>>
>> Unfortunately I hit a linking issue - the dns-sd binary gets linked to the
>> unversioned libdns_sd.so symlink,
>
> If the lib isn't versioned, what does the symlink point to?

OK, so the lib is versioned (ie there is a libdns_sd.so.1 which the
symlink points to) but the problem is that libdns_sd.so.1 doesn't set
a soname. Fix would be to add:

  -Wl,-soname,libdns_sd.so.1

to the linker command line when libdns_sd.so is linked.



More information about the yocto mailing list