LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   open-vm-tools-stable-10.0.5 install problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/open-vm-tools-stable-10-0-5-install-problem-4175567071/)

anak_bawang 01-22-2016 02:11 AM

open-vm-tools-stable-10.0.5 install problem
 
Hi everyone.

I've build LFS & BLFS on VMWare.
Some problem while building Open VM Tools.

LFS version : 7.7-systemd
BLFS version : svn 2015-08-05 systemd edition
Open VM Tools version 10.0.5

Code:

tar -xf open-vm-tools-stable-10.0.5.tar.gz
cd open-vm-tools-stable-10.0.5
cd open-vm-tools
autoreconf -fi

./configure --prefix=/usr --disable-static --without-xmlsecurity --without-xerces --disable-vgauth --without-kernel-modules

make

sudo make install

Output problem while running install
Code:

Making install in libhgfs
make[1]: Entering directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
make[2]: Entering directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
 /bin/mkdir -p '/usr/lib'
 /bin/sh ../libtool  --mode=install /usr/bin/install -c  libhgfs.la '/usr/lib'
libtool: warning: relinking 'libhgfs.la'
libtool: install: (cd /sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs; /bin/sh "/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libtool"  --tag CC --mode=relink gcc -g -O2 -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wl,-z,defs -Wl,-lc -L/usr/lib -o libhgfs.la -rpath /usr/lib libhgfs_la-hgfslib.lo ../lib/hgfs/libHgfs.la ../lib/hgfsHelper/libHgfsHelper.la ../lib/hgfsServer/libHgfsServer.la ../lib/hgfsUri/libHgfsUri.la ../lib/hgfsServerManagerGuest/libHgfsServerManagerGuest.la ../lib/hgfsServerPolicyGuest/libHgfsServerPolicyGuest.la -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 /sources/open-vm-tools-stable-10.0.5/open-vm-tools/libvmtools/libvmtools.la -lglib-2.0 )
libtool: relink: gcc -shared  -fPIC -DPIC  .libs/libhgfs_la-hgfslib.o  -Wl,--whole-archive ../lib/hgfs/.libs/libHgfs.a ../lib/hgfsHelper/.libs/libHgfsHelper.a ../lib/hgfsServer/.libs/libHgfsServer.a ../lib/hgfsUri/.libs/libHgfsUri.a ../lib/hgfsServerManagerGuest/.libs/libHgfsServerManagerGuest.a ../lib/hgfsServerPolicyGuest/.libs/libHgfsServerPolicyGuest.a -Wl,--no-whole-archive  -L/usr/lib -lgthread-2.0 -lvmtools -ldnet -ldl -lrt -lcrypt -licui18n -licuuc -licudata -lssl -lcrypto -lglib-2.0 -lpcre -lpthread  -g -O2 -Wl,-z -Wl,defs -Wl,-lc -pthread  -pthread -Wl,-soname -Wl,libhgfs.so.0 -o .libs/libhgfs.so.0.0.0
/usr/bin/ld: cannot find -ldnet
collect2: error: ld returned 1 exit status
libtool:  error: error: relink 'libhgfs.la' with the above command before installing it
Makefile:473: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
Makefile:647: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
Makefile:506: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Please help.

huffdad 01-22-2016 03:41 AM

I have not personally encountered this error, but maybe this LFS support thread applies to your situation, or maybe use it as a starting point for investigation.

http://lists.linuxfromscratch.org/pi...er/011778.html

Keith Hedger 01-22-2016 03:13 PM

Quote:

Originally Posted by anak_bawang (Post 5484990)
Hi everyone.

I've build LFS & BLFS on VMWare.
Some problem while building Open VM Tools.

LFS version : 7.7-systemd
BLFS version : svn 2015-08-05 systemd edition
Open VM Tools version 10.0.5

Code:

tar -xf open-vm-tools-stable-10.0.5.tar.gz
cd open-vm-tools-stable-10.0.5
cd open-vm-tools
autoreconf -fi

./configure --prefix=/usr --disable-static --without-xmlsecurity --without-xerces --disable-vgauth --without-kernel-modules

make

sudo make install

Output problem while running install
Code:

Making install in libhgfs
make[1]: Entering directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
make[2]: Entering directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
 /bin/mkdir -p '/usr/lib'
 /bin/sh ../libtool  --mode=install /usr/bin/install -c  libhgfs.la '/usr/lib'
libtool: warning: relinking 'libhgfs.la'
libtool: install: (cd /sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs; /bin/sh "/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libtool"  --tag CC --mode=relink gcc -g -O2 -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wl,-z,defs -Wl,-lc -L/usr/lib -o libhgfs.la -rpath /usr/lib libhgfs_la-hgfslib.lo ../lib/hgfs/libHgfs.la ../lib/hgfsHelper/libHgfsHelper.la ../lib/hgfsServer/libHgfsServer.la ../lib/hgfsUri/libHgfsUri.la ../lib/hgfsServerManagerGuest/libHgfsServerManagerGuest.la ../lib/hgfsServerPolicyGuest/libHgfsServerPolicyGuest.la -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 /sources/open-vm-tools-stable-10.0.5/open-vm-tools/libvmtools/libvmtools.la -lglib-2.0 )
libtool: relink: gcc -shared  -fPIC -DPIC  .libs/libhgfs_la-hgfslib.o  -Wl,--whole-archive ../lib/hgfs/.libs/libHgfs.a ../lib/hgfsHelper/.libs/libHgfsHelper.a ../lib/hgfsServer/.libs/libHgfsServer.a ../lib/hgfsUri/.libs/libHgfsUri.a ../lib/hgfsServerManagerGuest/.libs/libHgfsServerManagerGuest.a ../lib/hgfsServerPolicyGuest/.libs/libHgfsServerPolicyGuest.a -Wl,--no-whole-archive  -L/usr/lib -lgthread-2.0 -lvmtools -ldnet -ldl -lrt -lcrypt -licui18n -licuuc -licudata -lssl -lcrypto -lglib-2.0 -lpcre -lpthread  -g -O2 -Wl,-z -Wl,defs -Wl,-lc -pthread  -pthread -Wl,-soname -Wl,libhgfs.so.0 -o .libs/libhgfs.so.0.0.0
/usr/bin/ld: cannot find -ldnet
collect2: error: ld returned 1 exit status
libtool:  error: error: relink 'libhgfs.la' with the above command before installing it
Makefile:473: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
Makefile:647: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/sources/open-vm-tools-stable-10.0.5/open-vm-tools/libhgfs'
Makefile:506: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Please help.

MAke sure this library is instaled and available.

anak_bawang 01-24-2016 08:59 PM

I do have libdnet.

When I checked libdnet installation files, there is no *.so files.

libdnet -> libdnet.1.0.1
libdnet.1 -> libdnet.1.0.1
libdnet.1.0.1

so, I created symbolic link

libdnet.so -> libdnet.1.0.1

and solved the problem.

Thanks for you all.


All times are GMT -5. The time now is 10:42 AM.