On Mon, Oct 02 2017, Atanas Vladimirov <vl...@bsdbg.net> wrote:
> On 2017-10-02 18:47, Stuart Henderson wrote:
>> On 2017-10-01, Atanas Vladimirov <vl...@bsdbg.net> wrote:
>>> I'm running -current and I'm seeing that error on first boot when
>>> upgrading to a newer snapshot:
>>>
>> ..
>>> em0: DHCPACK from 95.87.227.225 (64:87:88:58:b2:b8)
>>> em0: bound to 95.87.227.232 -- renewal in 300 seconds
>>> ld.so: openvpn: can't load library 'liblzo2.so.1.0'
>>> Killed
>>
>> OpenVPN started here ^^
>>
>>> reordering libraries: done.
>>> starting early daemons: syslogd pflogd nsd unbound ntpd isakmpd npppd.
>>> starting RPC daemons:.
>>> savecore: no core dump
>>> checking quotas: done.
>>> clearing /tmp
>>> kern.securelevel: 0 -> 1
>>> creating runtime link editor directory cache.
>>
>> but ldconfig runs here ^^
>>
>> liblzo2.so.1.0 isn't reachable until the above is run.
>>
>> Try something like "env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib" when
>> starting openvpn from hostname.if.
>>
>> If this used to work, there is a chance that maybe this changed in
>> libexec/ld.so/path.c r1.7.
>
> I'm not sure that I did it in the right way:
>
> ~$ cat /etc/hostname.tun4
> up
> description dn42-w0h
> !env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
> !/usr/local/sbin/openvpn --daemon --config /etc/dn42-w0h.ovpn

This should rather be

!env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib /usr/local/sbin/openvpn --daemon 
--config /etc/dn42-w0h.ovpn

> And after upgrade to the newest snap:
> .......
> _=/usr/bin/env
> INRC=1
> HOME=/
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
> ld.so: openvpn: can't load library 'liblz4.so.2.0'
> Killed
> .......
>
> Thanks.
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to