Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2014 14:18:12 +0000 (UTC)
From:      Georgy Yakovlev <delycid@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Shared object 
Message-ID:  <loom.20141213T151235-68@post.gmane.org>
References:  <636AF4A9-521A-4871-96CF-72C571490A3A@vnode.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20141213T151235-68>