Messages about missing shared libraries...

Bryan Drewery bdrewery at FreeBSD.org
Fri May 29 00:05:41 UTC 2015


On 5/28/2015 6:52 PM, kpneal at pobox.com wrote:
> On Thu, May 28, 2015 at 11:36:24AM -0500, Bryan Drewery wrote:
>> On 5/27/2015 11:09 PM, kpneal at pobox.com wrote:
>>> So, I'm installing a bunch of stuff in a chrooted staging area built
>>> from source. I've got pkg bootstrapped and my /etc/make.conf looks
>>> like this:
>>>
>>> WITH_PKGNG=	yes
>>>
>>> # The former replaces the latter
>>> OPTIONS_UNSET=X11
>>> WITHOUT_X11=yes
>>>
>>>
>>> Now, when I install from /usr/ports (I can never keep the terms straight)
>>> I see during the installation phase messages like this:
>>>
>>> ===>   Registering installation for poudriere-3.1.6
>>> (poudriere-3.1.6) /usr/ports/ports-mgmt/poudriere/work/stage//usr/local/libexec/poudriere/cpdup - required shared library libmd.so.5 not found
>>> (poudriere-3.1.6) /usr/ports/ports-mgmt/poudriere/work/stage//usr/local/libexec/poudriere/cpdup - required shared library libc.so.7 not found
>>>
>>> But ldd shows that the executables _can_ find the libraries. 
>>
>> Try running this inside of the chroot:
>>
>> service ldconfig start
>>
>> Then check if the warnings happen still.
> 
> That seems to have fixed it. Thanks!
> 
> Now, do I need to rebuild ports that were built before and gave the warning
> message? I don't know if pkg was the one requesting the info or not.
> 

No, just tell pkg to rescan for needed shared libraries. 'pkg check -Ba'.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150528/c064bbd4/attachment.sig>


More information about the freebsd-ports mailing list