Page MenuHomeDevCentral

Compile statically smartmontools
Closed, InvalidPublic

Description

VMWare EXSi includes smartd, but not the full smartmontools suite, let's see if we can compile it statically.

For rsync, that works: http://www.virtuallyghetto.com/2011/02/how-to-compile-statically-linked-rsync.html / http://www.kickinass.net/vmware-esxi-5-1-rsync-3-0-9-statically-linked-binary-erstellen/

Related Objects

Event Timeline

Build process

Local workstation
$ tar xzf ~/Downloads/smartmontools-6.5.tar.gz
$ cd smartmontools-6.5/
$ ./configure --without-nvme-devicescan
$ make CFLAGS="-static" EXEEXT="-static"
$ strip smartctl-static
$ scp smartctl-static stormshear.nasqueron.org:

First run

Stormshear
$ ./smartctl-static 
./smartctl-static: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by ./smartctl-static)
./smartctl-static: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./smartctl-static)
./smartctl-static: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./smartctl-static)
./smartctl-static: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./smartctl-static)
./smartctl-static: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./smartctl-static)