ld.so: openvpn: can't load library 'liblzo2.so.1.0'

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
Hi,

I'm running -current and I'm seeing that error on first boot when
upgrading to a newer snapshot:

$ doas dmesg -s
Automatic boot in progress: starting file system checks.
/dev/sd2a (4f0020f200943c3c.a): file system is clean; not checking
/dev/sd2d (4f0020f200943c3c.d): file system is clean; not checking
/dev/sd2e (4f0020f200943c3c.e): file system is clean; not checking
/dev/sd2f (4f0020f200943c3c.f): file system is clean; not checking
/dev/sd2g (4f0020f200943c3c.g): file system is clean; not checking
/dev/sd2h (4f0020f200943c3c.h): file system is clean; not checking
/dev/sd2i (4f0020f200943c3c.i): file system is clean; not checking
setting tty flags
pf enabled
net.inet.ip.forwarding: 0 -> 1
net.pipex.enable: 0 -> 1
hw.perfpolicy: manual -> auto
net.inet.ip.ifq.maxlen: 2048 -> 1024
net.inet.tcp.mssdflt: 512 -> 1440
kern.nosuidcoredump: 1 -> 3
kern.seminfo.semmni: 10 -> 60
kern.seminfo.semmns: 60 -> 1024
starting network
em0: DHCPDISCOVER - interval 1
em0: DHCPOFFER from 95.87.227.225 (64:87:88:58:b2:b8)
em0: DHCPREQUEST to 255.255.255.255
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
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.
preserving editor files.
running rc.sysmerge
starting network daemons: sshd bgpd ifstated dhcpd smtpd slowcgi httpd
ftpproxy tftpd spamd spamlogd.
running rc.firsttime
Path to firmware: http://firmware.openbsd.org/firmware/6.2/
Updating: vmm-firmware-1.10.2p4
Checking for available binary patches... done.
starting package daemons: postgresql mysqld php56_fpm squid cvsyncd
symon symux smokeping smokeping_fcgi clamd freshclam upsd upsmon.
starting local daemons: cron.
Sun Oct  1 12:44:46 EEST 2017

If I execute `doas sh /etc/netstart tun4` the tunnel starts normally.
The error is missing when I do a reboot, but if I upgrade to a newer
snapshot it appears once on first boot.
If you need more info just ask.
Thanks.

$ cat /etc/hostname.tun4
up
description dn42-w0h
!/usr/local/sbin/openvpn --daemon --config /etc/dn42-w0h.ovpn

$ doas cat /etc/dn42-w0h.ovpn
mode p2p
remote de-fra1.netrik.de
lport 50108
rport 50108
proto udp
dev-type tun
dev tun4
tun-ipv6
<secret>.....</secret>
comp-lzo
persist-key
#persist-tun
cipher aes-256-cbc
user _openvpn
group _openvpn
ifconfig 172.20.3.1 172.22.232.1
ifconfig-ipv6 fe80::d524/64 fe80::6472
status /tmp/dn42-openvpn-w0h.status
log-append /tmp/dn42-openvpn-w0h.log

$ mount
/dev/sd2a on / type ffs (local, softdep)
/dev/sd2d on /var type ffs (local, nodev, nosuid)
/dev/sd2e on /usr type ffs (local, nodev, softdep)
/dev/sd2f on /usr/X11R6 type ffs (local, nodev, softdep)
/dev/sd2g on /usr/local type ffs (local, nodev, wxallowed, softdep)
/dev/sd2h on /usr/src type ffs (local, nodev, nosuid, softdep)
/dev/sd2i on /home type ffs (local, nodev, nosuid, softdep)
mfs:84122 on /tmp type mfs (asynchronous, local, nodev, nosuid,
size=4194304 512-blocks)
mfs:48256 on /usr/obj type mfs (asynchronous, local, nodev, nosuid,
size=4194304 512-blocks)
mfs:58559 on /usr/xobj type mfs (asynchronous, local, nodev, nosuid,
size=4194304 512-blocks)

$ dmesg
OpenBSD 6.2 (GENERIC.MP) #123: Sat Sep 30 22:51:56 MDT 2017
     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8544153600 (8148MB)
avail mem = 8278192128 (7894MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb5a0 (56 entries)
bios0: vendor American Megatrends Inc. version "2.2" date 02/20/2015
bios0: Supermicro X9SCL/X9SCM
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SPMI SSDT SSDT EINJ
ERST HEST BERT
acpi0: wakeup devices UAR1(S4) UAR2(S4) P0P1(S4) USB1(S4) USB2(S4)
USB3(S4) USB4(S4) USB5(S4) USB6(S4) USB7(S4) PXSX(S4) RP0$
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.36 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE$
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2400363240 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.02 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE$
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 2 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 92 degC
acpitz1 at acpi0: critical temperature is 92 degC
"INT3F0D" at acpi0 not configured
"IPI0001" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD01
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2400, 2300, 2200, 2100, 2000,
1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x05: msi, address
00:25:90:55:c5:5f
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 2
int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:25:90:55:c5:5e
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 2
int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci3 at ppb2 bus 3
vga1 at pci3 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel C204 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi,
AHCI 1.3
ahci0: port 1: 3.0Gb/s
ahci0: port 2: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 1 lun 0: <ATA, WDC WD5003ABYX-0, 01.0> SCSI3
0/direct fixed naa.50014ee05841e02e
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
sd1 at scsibus1 targ 2 lun 0: <ATA, WDC WD5003AZEX-0, 80.0> SCSI3
0/direct fixed naa.50014ee0ae548fe0
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic
2 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: at30ts00
spdmem0 at iic0 addr 0x51: 8GB DDR3 SDRAM ECC PC3-12800 with thermal
sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: console
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0xa30/8: NCT6776F
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics
Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr$
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics
Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr$
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct
fixed
sd2: 476937MB, 512 bytes/sector, 976767473 sectors
root on sd2a (4f0020f200943c3c.a) swap on sd2b dump on sd2b

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Stuart Henderson
On 2017-10-01, Atanas Vladimirov <[hidden email]> 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.


Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
On 2017-10-02 18:47, Stuart Henderson wrote:

> On 2017-10-01, Atanas Vladimirov <[hidden email]> 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

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.

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Jeremie Courreges-Anglas-2
On Mon, Oct 02 2017, Atanas Vladimirov <[hidden email]> wrote:

> On 2017-10-02 18:47, Stuart Henderson wrote:
>> On 2017-10-01, Atanas Vladimirov <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
On 2017-10-02 21:54, Jeremie Courreges-Anglas wrote:

> On Mon, Oct 02 2017, Atanas Vladimirov <[hidden email]> wrote:
>> On 2017-10-02 18:47, Stuart Henderson wrote:
>>> On 2017-10-01, Atanas Vladimirov <[hidden email]> 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

Thank you. I'll wait for a newer snapshot and will let you know the
result.

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Stuart Henderson
> The error is missing when I do a reboot

Oh, I missed this bit before... That's rather unexpected. Please set
LD_DEBUG= in the environment as well (or instead?) and see if you get
anything useful from the output there (there will be a couple of screens
full, but should fit within the dmesg -s buffer).

You might be out of luck for new snapshots for a little while..


Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
On 2017-10-03 02:35, Stuart Henderson wrote:
>> The error is missing when I do a reboot
>
> Oh, I missed this bit before... That's rather unexpected. Please set
> LD_DEBUG= in the environment as well (or instead?) and see if you get
> anything useful from the output there (there will be a couple of
> screens
> full, but should fit within the dmesg -s buffer).
>
> You might be out of luck for new snapshots for a little while..

Hello Stuart,
Here is the relevant output (regular reboot) of `dmesg -s` with the
following in /etc/hostname.tun4

-------------------
up
description dn42-w0h
!env LD_DEBUG= /usr/local/sbin/openvpn --daemon --config
/etc/dn42-w0h.ovpn
-------------------

After the reboot `tun4` is up and running. Is there a way to "simulate"
or force a reboot as when I do an upgrade and boot for "first time" the
new snapshot.
Thanks.

rtld loading: 'openvpn'
exe load offset:  0x13aa47200000
  flags /usr/local/sbin/openvpn = 0x0
head /usr/local/sbin/openvpn
obj /usr/local/sbin/openvpn has /usr/local/sbin/openvpn as head
examining: '/usr/local/sbin/openvpn'
loading: liblz4.so.2.0 required by /usr/local/sbin/openvpn
  flags /usr/local/lib/liblz4.so.2.0 = 0x0
obj /usr/local/lib/liblz4.so.2.0 has /usr/local/sbin/openvpn as head
loading: libcrypto.so.42.0 required by /usr/local/sbin/openvpn
  flags /usr/lib/libcrypto.so.42.0 = 0x0
obj /usr/lib/libcrypto.so.42.0 has /usr/local/sbin/openvpn as head
loading: libc.so.90.0 required by /usr/local/sbin/openvpn
  flags /usr/lib/libc.so.90.0 = 0x0
obj /usr/lib/libc.so.90.0 has /usr/local/sbin/openvpn as head
loading: liblzo2.so.1.0 required by /usr/local/sbin/openvpn
  flags /usr/local/lib/liblzo2.so.1.0 = 0x0
obj /usr/local/lib/liblzo2.so.1.0 has /usr/local/sbin/openvpn as head
loading: libssl.so.44.1 required by /usr/local/sbin/openvpn
  flags /usr/lib/libssl.so.44.1 = 0x0
obj /usr/lib/libssl.so.44.1 has /usr/local/sbin/openvpn as head
linking dep /usr/local/lib/liblzo2.so.1.0 as child of
/usr/local/sbin/openvpn
linking dep /usr/local/lib/liblz4.so.2.0 as child of
/usr/local/sbin/openvpn
linking dep /usr/lib/libssl.so.44.1 as child of /usr/local/sbin/openvpn
linking dep /usr/lib/libcrypto.so.42.0 as child of
/usr/local/sbin/openvpn
linking dep /usr/lib/libc.so.90.0 as child of /usr/local/sbin/openvpn
examining: '/usr/local/lib/liblzo2.so.1.0'
examining: '/usr/local/lib/liblz4.so.2.0'
examining: '/usr/lib/libssl.so.44.1'
loading: libcrypto.so.42.0 required by /usr/lib/libssl.so.44.1
linking dep /usr/lib/libcrypto.so.42.0 as child of
/usr/lib/libssl.so.44.1
examining: '/usr/lib/libcrypto.so.42.0'
examining: '/usr/lib/libc.so.90.0'
  flags /usr/libexec/ld.so = 0x0
obj /usr/libexec/ld.so has /usr/local/sbin/openvpn as head
protect start RELRO = 0x13ad41183f78 in /usr/lib/libc.so.90.0
protect end RELRO = 0x13ad41186000 in /usr/lib/libc.so.90.0
protect start RELRO = 0x13acf6e24bb8 in /usr/lib/libcrypto.so.42.0
protect end RELRO = 0x13acf6e40000 in /usr/lib/libcrypto.so.42.0
protect start RELRO = 0x13aca9cae048 in /usr/lib/libssl.so.44.1
protect end RELRO = 0x13aca9cb1000 in /usr/lib/libssl.so.44.1
protect start RELRO = 0x13ace69e3cb0 in /usr/local/lib/liblz4.so.2.0
protect end RELRO = 0x13ace69e4000 in /usr/local/lib/liblz4.so.2.0
protect start RELRO = 0x13acf7ddbc78 in /usr/local/lib/liblzo2.so.1.0
protect end RELRO = 0x13acf7ddc000 in /usr/local/lib/liblzo2.so.1.0
protect start RELRO = 0x13aa474b0348 in /usr/local/sbin/openvpn
protect end RELRO = 0x13aa474b1ff0 in /usr/local/sbin/openvpn
         Start            End              Type Open Ref GrpRef Name
         000013aa47200000 000013aa474b3000 exe  1    0   0      
/usr/local/sbin/openvpn
         000013acf7bae000 000013acf7ddd000 rlib 0    1   0      
/usr/local/lib/liblzo2.so.1.0
         000013ace67cd000 000013ace69e5000 rlib 0    1   0      
/usr/local/lib/liblz4.so.2.0
         000013aca9a60000 000013aca9cb5000 rlib 0    1   0      
/usr/lib/libssl.so.44.1
         000013acf6a74000 000013acf6e48000 rlib 0    2   0      
/usr/lib/libcrypto.so.42.0
         000013ad40eba000 000013ad41199000 rlib 0    1   0      
/usr/lib/libc.so.90.0
         000013ad24000000 000013ad24000000 rtld 0    1   0      
/usr/libexec/ld.so
symcache lookups 342 hits 0 ratio 0% hits
dynamic loading done, success.
tib new=0x13ac4d612a00
setting environ 0x13ad24212530@/usr/libexec/ld.so[0x13ac72660800] from
0x13ad24212530
setting __progname 0x13ad24212538@/usr/libexec/ld.so[0x13ac72660800]
from 0x13ad24212538
doing ctors obj 0x13acd564b000 @0x13acf7bae2e0:
[/usr/local/lib/liblzo2.so.1.0]
doing ctors obj 0x13acd564b400 @0x13ace67cd2e0:
[/usr/local/lib/liblz4.so.2.0]
doing ctors obj 0x13ac72660c00 @0x13acf6a742e0:
[/usr/lib/libcrypto.so.42.0]
doing ctors obj 0x13ac72660400 @0x13aca9a602e0:
[/usr/lib/libssl.so.44.1]
entry point: 0x13aa47201870

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
Hi,
This is the output after upgrading to the newest snapshot (03.10.2017)

rtld loading: 'openvpn'
exe load offset:  0x1023ea700000
  flags /usr/local/sbin/openvpn = 0x0
head /usr/local/sbin/openvpn
obj /usr/local/sbin/openvpn has /usr/local/sbin/openvpn as head
examining: '/usr/local/sbin/openvpn'
loading: libc.so.90.0 required by /usr/local/sbin/openvpn
  flags /usr/lib/libc.so.90.0 = 0x0
obj /usr/lib/libc.so.90.0 has /usr/local/sbin/openvpn as head
loading: libcrypto.so.42.0 required by /usr/local/sbin/openvpn
  flags /usr/lib/libcrypto.so.42.0 = 0x0
obj /usr/lib/libcrypto.so.42.0 has /usr/local/sbin/openvpn as head
loading: libssl.so.44.1 required by /usr/local/sbin/openvpn
  flags /usr/lib/libssl.so.44.1 = 0x0
obj /usr/lib/libssl.so.44.1 has /usr/local/sbin/openvpn as head
loading: liblzo2.so.1.0 required by /usr/local/sbin/openvpn
ld.so: openvpn: can't load library 'liblzo2.so.1.0'
Killed


And on next reboot everything is fine:

rtld loading: 'openvpn'
exe load offset:  0xce509500000
  flags /usr/local/sbin/openvpn = 0x0
head /usr/local/sbin/openvpn
obj /usr/local/sbin/openvpn has /usr/local/sbin/openvpn as head
examining: '/usr/local/sbin/openvpn'
loading: libcrypto.so.42.0 required by /usr/local/sbin/openvpn
  flags /usr/lib/libcrypto.so.42.0 = 0x0
obj /usr/lib/libcrypto.so.42.0 has /usr/local/sbin/openvpn as head
loading: liblzo2.so.1.0 required by /usr/local/sbin/openvpn
  flags /usr/local/lib/liblzo2.so.1.0 = 0x0
obj /usr/local/lib/liblzo2.so.1.0 has /usr/local/sbin/openvpn as head
loading: libc.so.90.0 required by /usr/local/sbin/openvpn
  flags /usr/lib/libc.so.90.0 = 0x0
obj /usr/lib/libc.so.90.0 has /usr/local/sbin/openvpn as head
loading: liblz4.so.2.0 required by /usr/local/sbin/openvpn
  flags /usr/local/lib/liblz4.so.2.0 = 0x0
obj /usr/local/lib/liblz4.so.2.0 has /usr/local/sbin/openvpn as head
loading: libssl.so.44.1 required by /usr/local/sbin/openvpn
  flags /usr/lib/libssl.so.44.1 = 0x0
obj /usr/lib/libssl.so.44.1 has /usr/local/sbin/openvpn as head
linking dep /usr/local/lib/liblzo2.so.1.0 as child of
/usr/local/sbin/openvpn
linking dep /usr/local/lib/liblz4.so.2.0 as child of
/usr/local/sbin/openvpn
linking dep /usr/lib/libssl.so.44.1 as child of /usr/local/sbin/openvpn
linking dep /usr/lib/libcrypto.so.42.0 as child of
/usr/local/sbin/openvpn
linking dep /usr/lib/libc.so.90.0 as child of /usr/local/sbin/openvpn
examining: '/usr/local/lib/liblzo2.so.1.0'
examining: '/usr/local/lib/liblz4.so.2.0'
examining: '/usr/lib/libssl.so.44.1'
loading: libcrypto.so.42.0 required by /usr/lib/libssl.so.44.1
linking dep /usr/lib/libcrypto.so.42.0 as child of
/usr/lib/libssl.so.44.1
examining: '/usr/lib/libcrypto.so.42.0'
examining: '/usr/lib/libc.so.90.0'
  flags /usr/libexec/ld.so = 0x0
obj /usr/libexec/ld.so has /usr/local/sbin/openvpn as head
protect start RELRO = 0xce741923f78 in /usr/lib/libc.so.90.0
protect end RELRO = 0xce741926000 in /usr/lib/libc.so.90.0
protect start RELRO = 0xce7c455fbb8 in /usr/lib/libcrypto.so.42.0
protect end RELRO = 0xce7c457b000 in /usr/lib/libcrypto.so.42.0
protect start RELRO = 0xce7e7530048 in /usr/lib/libssl.so.44.1
protect end RELRO = 0xce7e7533000 in /usr/lib/libssl.so.44.1
protect start RELRO = 0xce7af2e8cb0 in /usr/local/lib/liblz4.so.2.0
protect end RELRO = 0xce7af2e9000 in /usr/local/lib/liblz4.so.2.0
protect start RELRO = 0xce7b6059c78 in /usr/local/lib/liblzo2.so.1.0
protect end RELRO = 0xce7b605a000 in /usr/local/lib/liblzo2.so.1.0
protect start RELRO = 0xce5097b0348 in /usr/local/sbin/openvpn
protect end RELRO = 0xce5097b1ff0 in /usr/local/sbin/openvpn
         Start            End              Type Open Ref GrpRef Name
         00000ce509500000 00000ce5097b3000 exe  1    0   0      
/usr/local/sbin/openvpn
         00000ce7b5e2c000 00000ce7b605b000 rlib 0    1   0      
/usr/local/lib/liblzo2.so.1.0
         00000ce7af0d2000 00000ce7af2ea000 rlib 0    1   0      
/usr/local/lib/liblz4.so.2.0
         00000ce7e72e2000 00000ce7e7537000 rlib 0    1   0      
/usr/lib/libssl.so.44.1
         00000ce7c41af000 00000ce7c4583000 rlib 0    2   0      
/usr/lib/libcrypto.so.42.0
         00000ce74165a000 00000ce741939000 rlib 0    1   0      
/usr/lib/libc.so.90.0
         00000ce783000000 00000ce783000000 rtld 0    1   0      
/usr/libexec/ld.so
symcache lookups 342 hits 0 ratio 0% hits
dynamic loading done, success.
tib new=0xce7c954cd00
setting environ 0xce783212000@/usr/libexec/ld.so[0xce771dfc800] from
0xce783212000
setting __progname 0xce783212008@/usr/libexec/ld.so[0xce771dfc800] from
0xce783212008
doing ctors obj 0xce7622e4c00 @0xce7b5e2c2e0:
[/usr/local/lib/liblzo2.so.1.0]
doing ctors obj 0xce7951d1c00 @0xce7af0d22e0:
[/usr/local/lib/liblz4.so.2.0]
doing ctors obj 0xce7622e4400 @0xce7c41af2e0:
[/usr/lib/libcrypto.so.42.0]
doing ctors obj 0xce7622e4800 @0xce7e72e22e0: [/usr/lib/libssl.so.44.1]
entry point: 0xce509501870

# dmesg
OpenBSD 6.2 (GENERIC.MP) #134: Tue Oct  3 21:22:29 MDT 2017
     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8544153600 (8148MB)
avail mem = 8278179840 (7894MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb5a0 (56 entries)
bios0: vendor American Megatrends Inc. version "2.2" date 02/20/2015
bios0: Supermicro X9SCL/X9SCM
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SPMI SSDT SSDT EINJ
ERST HEST BERT
acpi0: wakeup devices UAR1(S4) UAR2(S4) P0P1(S4) USB1(S4) USB2(S4)
USB3(S4) USB4(S4) USB5(S4) USB6(S4) USB7(S4) PXSX(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) RP03(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.35 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2400350600 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.01 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 2 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 92 degC
acpitz1 at acpi0: critical temperature is 92 degC
"INT3F0D" at acpi0 not configured
"IPI0001" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD01
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2400, 2300, 2200, 2100, 2000,
1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x05: msi, address
00:25:90:55:c5:5f
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 2
int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:25:90:55:c5:5e
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 2
int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci3 at ppb2 bus 3
vga1 at pci3 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel C204 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi,
AHCI 1.3
ahci0: port 1: 3.0Gb/s
ahci0: port 2: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 1 lun 0: <ATA, WDC WD5003ABYX-0, 01.0> SCSI3
0/direct fixed naa.50014ee05841e02e
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
sd1 at scsibus1 targ 2 lun 0: <ATA, WDC WD5003AZEX-0, 80.0> SCSI3
0/direct fixed naa.50014ee0ae548fe0
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic
2 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: at30ts00
spdmem0 at iic0 addr 0x51: 8GB DDR3 SDRAM ECC PC3-12800 with thermal
sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: console
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0xa30/8: NCT6776F
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics
Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics
Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct
fixed
sd2: 476937MB, 512 bytes/sector, 976767473 sectors
root on sd2a (4f0020f200943c3c.a) swap on sd2b dump on sd2b

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
Hi,

Bringing up an old thread to let you know that the problem is still
present in -current snapshot.
Shall I send a proper bug report to bugs@?
Thanks.

starting network
em0: bound to 95.87.227.232 from 95.87.227.225 (64:87:88:58:b2:b8)
ld.so loading: 'openvpn'
exe load offset:  0x1288d0300000
  flags /usr/local/sbin/openvpn = 0x0
head /usr/local/sbin/openvpn
obj /usr/local/sbin/openvpn has /usr/local/sbin/openvpn as head
examining: '/usr/local/sbin/openvpn'
loading: libc.so.92.3 required by /usr/local/sbin/openvpn
  flags /usr/lib/libc.so.92.3 = 0x0
obj /usr/lib/libc.so.92.3 has /usr/local/sbin/openvpn as head
loading: libcrypto.so.42.7 required by /usr/local/sbin/openvpn
  flags /usr/lib/libcrypto.so.42.7 = 0x0
obj /usr/lib/libcrypto.so.42.7 has /usr/local/sbin/openvpn as head
loading: libssl.so.44.8 required by /usr/local/sbin/openvpn
  flags /usr/lib/libssl.so.44.8 = 0x0
obj /usr/lib/libssl.so.44.8 has /usr/local/sbin/openvpn as head
loading: liblz4.so.2.0 required by /usr/local/sbin/openvpn
ld.so: openvpn: can't load library 'liblz4.so.2.0'
Killed
reordering libraries: done.

# dmesg

OpenBSD 6.3-beta (GENERIC.MP) #26: Fri Mar  2 22:56:04 MST 2018
     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8544153600 (8148MB)
avail mem = 8278175744 (7894MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb5a0 (56 entries)
bios0: vendor American Megatrends Inc. version "2.2" date 02/20/2015
bios0: Supermicro X9SCL/X9SCM
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SPMI SSDT SSDT EINJ
ERST HEST BERT
acpi0: wakeup devices UAR1(S4) UAR2(S4) P0P1(S4) USB1(S4) USB2(S4)
USB3(S4) USB4(S4) USB5(S4) USB6(S4) USB7(S4) PXSX(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) RP03(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.33 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 2400013797 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400.03 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 2400017759 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 2 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 92 degC
acpitz1 at acpi0: critical temperature is 92 degC
"INT3F0D" at acpi0 not configured
"IPI0001" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD01
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
acpivout at acpivideo0 not configured
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2400, 2300, 2200, 2100, 2000,
1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x05: msi, address
00:25:90:55:c5:5f
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 2
int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:25:90:55:c5:5e
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 2
int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci3 at ppb2 bus 3
vga1 at pci3 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel C204 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi,
AHCI 1.3
ahci0: port 1: 3.0Gb/s
ahci0: port 2: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 1 lun 0: <ATA, WDC WD5003ABYX-0, 01.0> SCSI3
0/direct fixed naa.50014ee05841e02e
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
sd1 at scsibus1 targ 2 lun 0: <ATA, WDC WD5003AZEX-0, 80.0> SCSI3
0/direct fixed naa.50014ee0ae548fe0
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic
2 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: at30ts00
spdmem0 at iic0 addr 0x51: 8GB DDR3 SDRAM ECC PC3-12800 with thermal
sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: console
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0xa30/8: NCT6776F
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics
Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics
Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct
fixed
sd2: 476937MB, 512 bytes/sector, 976767473 sectors
root on sd2a (4f0020f200943c3c.a) swap on sd2b dump on sd2b

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Stuart Henderson
On 2018-03-05, Atanas Vladimirov <[hidden email]> wrote:
> Hi,
>
> Bringing up an old thread to let you know that the problem is still
> present in -current snapshot.

Did you try jca's suggestion?

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




Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Atanas Vladimirov
On 2018-03-05 13:35, Stuart Henderson wrote:

> On 2018-03-05, Atanas Vladimirov <[hidden email]> wrote:
>> Hi,
>>
>> Bringing up an old thread to let you know that the problem is still
>> present in -current snapshot.
>
> Did you try jca's suggestion?
>
> !env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib /usr/local/sbin/openvpn
> --daemon --config /etc/dn42-w0h.ovpn

Yes, with jca's suggestion it's working as it should.

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Jiri B-2
In reply to this post by Atanas Vladimirov
On Mon, Mar 05, 2018 at 01:14:05PM +0200, Atanas Vladimirov wrote:
> Hi,
>
> Bringing up an old thread to let you know that the problem is still present
> in -current snapshot.
> Shall I send a proper bug report to bugs@?
> Thanks.

No, why?

Works as expected, you start OpenVPN too early, thus you need
that workaround.

> starting network
> em0: bound to 95.87.227.232 from 95.87.227.225 (64:87:88:58:b2:b8)
> ld.so loading: 'openvpn'
> [...]
> loading: liblz4.so.2.0 required by /usr/local/sbin/openvpn
> ld.so: openvpn: can't load library 'liblz4.so.2.0'
> Killed
> reordering libraries: done.

See...:

# egrep -n '(sh /etc/netstart$|/sbin/ldconfig)' /etc/rc
439:sh /etc/netstart
564:if [[ -x /sbin/ldconfig ]]; then

Thus, /var/run/ld.so.hints does not exist in time when you
start OpenVPN.

Jiri

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Stuart Henderson
On 2018-03-05, Jiri B <[hidden email]> wrote:

> On Mon, Mar 05, 2018 at 01:14:05PM +0200, Atanas Vladimirov wrote:
>> Hi,
>>
>> Bringing up an old thread to let you know that the problem is still present
>> in -current snapshot.
>> Shall I send a proper bug report to bugs@?
>> Thanks.
>
> No, why?
>
> Works as expected, you start OpenVPN too early, thus you need
> that workaround.

Well, not really, because that is exactly one of the methods the
pkg-readme suggests and it used to work.


Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Jeremie Courreges-Anglas-2
On Mon, Mar 05 2018, Stuart Henderson <[hidden email]> wrote:

> On 2018-03-05, Jiri B <[hidden email]> wrote:
>> On Mon, Mar 05, 2018 at 01:14:05PM +0200, Atanas Vladimirov wrote:
>>> Hi,
>>>
>>> Bringing up an old thread to let you know that the problem is still present
>>> in -current snapshot.
>>> Shall I send a proper bug report to bugs@?
>>> Thanks.
>>
>> No, why?
>>
>> Works as expected, you start OpenVPN too early, thus you need
>> that workaround.
>
> Well, not really, because that is exactly one of the methods the
> pkg-readme suggests and it used to work.

My guess is that ld.so throws away the library cache if it finds that
it's stale, and thus can't know where liblzo2/liblz4 are to be found.
The easy fix would be to make ld.so search in /usr/local by default, but
I'm not sure this would be accepted.  So I just documented the
LD_LIBRARY_PATH hack in the README instead.

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

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Jiri B-2
On Tue, Mar 06, 2018 at 01:51:04PM +0100, Jeremie Courreges-Anglas wrote:
> On Mon, Mar 05 2018, Stuart Henderson <[hidden email]> wrote:
> My guess is that ld.so throws away the library cache if it finds that
> it's stale, and thus can't know where liblzo2/liblz4 are to be found.
> The easy fix would be to make ld.so search in /usr/local by default, but
> I'm not sure this would be accepted.  So I just documented the
> LD_LIBRARY_PATH hack in the README instead.

There's no ld.so.hints as we rm -rf /var/run content:

# cat -n /etc/rc | egrep "(ldconfig|netstart|/var/run)"
   439  sh /etc/netstart
   450                  sh /etc/netstart pfsync0
   463  (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
   467  dmesg >/var/run/dmesg.boot
   483  rm -f /var/run/ypbind.lock
   564  if [[ -x /sbin/ldconfig ]]; then
   568          ldconfig $shlib_dirs

Anyway, thanks for ports doc update.

Jiri

Reply | Threaded
Open this post in threaded view
|

Re: ld.so: openvpn: can't load library 'liblzo2.so.1.0'

Jeremie Courreges-Anglas-2
On Tue, Mar 06 2018, Jiri B <[hidden email]> wrote:
> On Tue, Mar 06, 2018 at 01:51:04PM +0100, Jeremie Courreges-Anglas wrote:
>> On Mon, Mar 05 2018, Stuart Henderson <[hidden email]> wrote:
>> My guess is that ld.so throws away the library cache if it finds that
>> it's stale, and thus can't know where liblzo2/liblz4 are to be found.
>> The easy fix would be to make ld.so search in /usr/local by default, but
>> I'm not sure this would be accepted.  So I just documented the
>> LD_LIBRARY_PATH hack in the README instead.
>
> There's no ld.so.hints as we rm -rf /var/run content:

The problem is about running openvpn from hostname.if, and as shown
below /var/run pruning happens after /etc/netstat.

> # cat -n /etc/rc | egrep "(ldconfig|netstart|/var/run)"
>    439  sh /etc/netstart
>    450                  sh /etc/netstart pfsync0
>    463  (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
>    467  dmesg >/var/run/dmesg.boot
>    483  rm -f /var/run/ypbind.lock
>    564  if [[ -x /sbin/ldconfig ]]; then
>    568          ldconfig $shlib_dirs
>
> Anyway, thanks for ports doc update.
>
> Jiri
>
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

signature.asc (849 bytes) Download Attachment