Shared object

Georgy Yakovlev delycid at gmail.com
Sat Dec 13 14:25:07 UTC 2014


Joel Dahl <joel <at> vnode.se> writes:

> 
> Hi,
> 
> I installed 10.1 on a new box. Rebooted. Did a 
> ”pkg install tmux zsh open-vm-tools-nox11”. 
> Added the
> vmware_guestd options to rc.conf. Rebooted again.
> 
> Now I see the following during boot:
> 
> /dev/da0p2: FILE SYSTEM CLEAN; SKIPPING CHECKS
> /dev/da0p2: clean, 3260251 free (771 frags, 407435 blocks, 0.0% fragmentation)
> Mounting local file systems:.
> Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
> Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
> Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
> Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
> Writing entropy file:.
> 
> Eh? What is this?
> 
>> Joel


Hello!

I’ve faced same issue.
Seems it’s because 

rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
…
/etc/rc.d/cleanvar
/etc/rc.d/FILESYSTEMS
/usr/local/etc/rc.d/vmware-kmod <<<< this one
/etc/rc.d/kldxref
/etc/rc.d/kld
/etc/rc.d/addswap
/etc/rc.d/random
/etc/rc.d/postrandom
…

/usr/local/etc/rc.d/vmware-kmod script calls  
checkvm_cmd="/usr/local/bin/vmware-checkvm
which is depends on libglib-2.0.so.0
ldd /usr/local/bin/vmware-checkvm
/usr/local/bin/vmware-checkvm:
	libvmtools.so.0 => /usr/local/lib/libvmtools.so.0 (0x80081e000)
	libkvm.so.6 => /lib/libkvm.so.6 (0x800a96000)
	libcrypt.so.5 => /lib/libcrypt.so.5 (0x800c9e000)
	libthr.so.3 => /lib/libthr.so.3 (0x800ebe000)
	libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x8010e3000) <<<
…


and it’s called before /etc/rc.d/ldconfig

thus /usr/local/etc/rc.d/vmware-kmod cannot be started
because it does not know about $LOCALBASE libs yet

The solution is to modify /usr/local/etc/rc.d/vmware-kmod by adding
# REQUIRE: FILESYSTEMS ldconfig



—
Regards, Georgy.



More information about the freebsd-ports mailing list