Configure: Error: C++ Compiler Cannot Create Executables

When attempting to compile the newest version of S.M.A.R.T. Monitoring Tools on a CentOS Linux server I received an error complaining about the C++ compiler not being able to create executables. In the error output below you can see that the configure script complains of not being able to find a suitable compiler so it errors out.

Error Running S.M.A.R.T. Monitoring Tools Configure Script:

[root@dev smartmontools-5.43]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/usr/local/src/smartmontools/smartmontools-5.43':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
[root@dev smartmontools-5.43]#

Again in the output above you can see that the script can’t find g++, c++, etc. So the server doesn’t have a C compiler installed which can be resolved easily by using yum to group install the CentOS Development Tools as shown below. The first output shows the command to run on CentOS Linux to install the predefined set of development tools followed by an expandable output that shows the entire output of the command.

Use YUM To Install Development Tools In CentOS Linux:

[root@dev ~]# yum groupinstall "Development Tools"
Complete Output Of YUM Development Tools Group Install:
[root@dev ~]# yum groupinstall “Development Tools”
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.usc.edu
* extras: mirrors.usc.edu
* rpmforge: mirror.us.leaseweb.net
* updates: mirrors.arpnetworks.com
Setting up Group Process
Checking for new repos for mirrors
Package gcc-4.1.2-52.el5_8.1.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Package 1:pkgconfig-0.21-2.el5.x86_64 already installed and latest version
Package gettext-0.17-1.el5.x86_64 already installed and latest version
Package binutils-2.17.50.0.6-20.el5_8.3.x86_64 already installed and latest version
Package python-ldap-2.2.0-2.1.x86_64 already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package autoconf.noarch 0:2.59-12 set to be updated
–> Processing Dependency: imake for package: autoconf
—> Package automake.noarch 0:1.9.6-2.3.el5 set to be updated
—> Package automake14.noarch 0:1.4p6-13.el5.1 set to be updated
—> Package automake15.noarch 0:1.5-16.el5.2 set to be updated
—> Package automake16.noarch 0:1.6.3-8.el5.1 set to be updated
—> Package automake17.noarch 0:1.7.9-7.el5.2 set to be updated
—> Package bison.x86_64 0:2.3-2.1 set to be updated
—> Package byacc.x86_64 0:1.9-29.2.2 set to be updated
—> Package cscope.x86_64 0:15.5-15.1.el5_3.1 set to be updated
—> Package ctags.x86_64 0:5.6-1.1 set to be updated
—> Package cvs.x86_64 0:1.11.22-11.el5 set to be updated
—> Package dev86.x86_64 0:0.16.17-2.2 set to be updated
—> Package diffstat.x86_64 0:1.41-1.2.3.el5 set to be updated
—> Package dogtail.noarch 0:0.6.1-4.el5 set to be updated
–> Processing Dependency: pyspi >= 0.6.0 for package: dogtail
–> Processing Dependency: xorg-x11-server-Xvfb for package: dogtail
—> Package doxygen.x86_64 1:1.4.7-1.1 set to be updated
—> Package elfutils.x86_64 0:0.137-3.el5 set to be updated
–> Processing Dependency: elfutils-libs-x86_64 = 0.137-3.el5 for package: elfutils
–> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: elfutils
–> Processing Dependency: libdw.so.1(ELFUTILS_0.127)(64bit) for package: elfutils
–> Processing Dependency: libdw.so.1(ELFUTILS_0.126)(64bit) for package: elfutils
–> Processing Dependency: libasm.so.1(ELFUTILS_1.0)(64bit) for package: elfutils
–> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: elfutils
–> Processing Dependency: libdw.so.1()(64bit) for package: elfutils
–> Processing Dependency: libasm.so.1()(64bit) for package: elfutils
—> Package flex.x86_64 0:2.5.4a-41.fc6 set to be updated
—> Package gcc-c++.x86_64 0:4.1.2-52.el5_8.1 set to be updated
–> Processing Dependency: libstdc++-devel = 4.1.2-52.el5_8.1 for package: gcc-c++
—> Package gcc-gfortran.x86_64 0:4.1.2-52.el5_8.1 set to be updated
–> Processing Dependency: libgfortran = 4.1.2-52.el5_8.1 for package: gcc-gfortran
–> Processing Dependency: libgfortran.so.1()(64bit) for package: gcc-gfortran
—> Package gdb.x86_64 0:7.0.1-42.el5.centos set to be updated
—> Package gettext.i386 0:0.17-1.el5 set to be updated
–> Processing Dependency: libgomp.so.1 for package: gettext
–> Processing Dependency: libgomp.so.1(GOMP_1.0) for package: gettext
—> Package indent.x86_64 0:2.2.9-14.fc6 set to be updated
—> Package libtool.x86_64 0:1.5.22-7.el5_4 set to be updated
—> Package ltrace.x86_64 0:0.5-13.45svn.el5_7.12 set to be updated
—> Package oprofile.x86_64 0:0.9.4-20.el5 set to be updated
—> Package patchutils.x86_64 0:0.2.31-2.2.2 set to be updated
—> Package pstack.x86_64 0:1.2-7.2.2 set to be updated
—> Package rcs.x86_64 0:5.7-30.1 set to be updated
—> Package redhat-rpm-config.noarch 0:8.0.45-32.el5.centos set to be updated
—> Package rpm-build.x86_64 0:4.4.2.3-28.el5_8 set to be updated
–> Processing Dependency: xz for package: rpm-build
—> Package splint.x86_64 0:3.1.1-16.el5 set to be updated
—> Package strace.x86_64 0:4.5.18-11.el5_8 set to be updated
—> Package subversion.i386 0:1.6.11-10.el5_8 set to be updated
–> Processing Dependency: libneon.so.25 for package: subversion
–> Processing Dependency: libapr-1.so.0 for package: subversion
–> Processing Dependency: libaprutil-1.so.0 for package: subversion
—> Package subversion.x86_64 0:1.6.11-10.el5_8 set to be updated
—> Package swig.x86_64 0:1.3.29-2.el5 set to be updated
—> Package systemtap.x86_64 0:1.6-7.el5_8 set to be updated
–> Processing Dependency: systemtap-runtime = 1.6-7.el5_8 for package: systemtap
—> Package texinfo.x86_64 0:4.8-14.el5 set to be updated
—> Package valgrind.i386 1:3.5.0-5.el5 set to be updated
—> Package valgrind.x86_64 1:3.5.0-5.el5 set to be updated
–> Running transaction check
—> Package apr.i386 0:1.2.7-11.el5_6.5 set to be updated
—> Package apr-util.i386 0:1.2.7-11.el5_5.2 set to be updated
–> Processing Dependency: libsqlite3.so.0 for package: apr-util
–> Processing Dependency: libpq.so.4 for package: apr-util
—> Package elfutils-libs.x86_64 0:0.137-3.el5 set to be updated
—> Package imake.x86_64 0:1.0.2-3 set to be updated
—> Package libgfortran.x86_64 0:4.1.2-52.el5_8.1 set to be updated
—> Package libgomp.i386 0:4.4.6-3.el5.1 set to be updated
—> Package libstdc++-devel.x86_64 0:4.1.2-52.el5_8.1 set to be updated
updates/filelists_db | 2.2 MB 00:00
—> Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated
—> Package pyspi.x86_64 0:0.6.1-1.el5 set to be updated
—> Package systemtap-runtime.x86_64 0:1.6-7.el5_8 set to be updated
—> Package xorg-x11-server-Xvfb.x86_64 0:1.1.1-48.90.el5 set to be updated
—> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
–> Processing Dependency: xz-libs = 4.999.9-0.3.beta.20091007git.el5 for package: xz
–> Processing Dependency: liblzma.so.0()(64bit) for package: xz
–> Running transaction check
—> Package postgresql-libs.i386 0:8.1.23-5.el5_8 set to be updated
—> Package sqlite.i386 0:3.3.6-5 set to be updated
—> Package xz-libs.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================
Installing:
autoconf noarch 2.59-12 base 647 k
automake noarch 1.9.6-2.3.el5 base 476 k
automake14 noarch 1.4p6-13.el5.1 base 200 k
automake15 noarch 1.5-16.el5.2 base 230 k
automake16 noarch 1.6.3-8.el5.1 base 241 k
automake17 noarch 1.7.9-7.el5.2 base 278 k
bison x86_64 2.3-2.1 base 549 k
byacc x86_64 1.9-29.2.2 base 41 k
cscope x86_64 15.5-15.1.el5_3.1 base 144 k
ctags x86_64 5.6-1.1 base 131 k
cvs x86_64 1.11.22-11.el5 base 738 k
dev86 x86_64 0.16.17-2.2 base 398 k
diffstat x86_64 1.41-1.2.3.el5 base 19 k
dogtail noarch 0.6.1-4.el5 base 172 k
doxygen x86_64 1:1.4.7-1.1 base 2.4 M
elfutils x86_64 0.137-3.el5 base 215 k
flex x86_64 2.5.4a-41.fc6 base 131 k
gcc-c++ x86_64 4.1.2-52.el5_8.1 updates 3.8 M
gcc-gfortran x86_64 4.1.2-52.el5_8.1 updates 3.5 M
gdb x86_64 7.0.1-42.el5.centos updates 2.4 M
gettext i386 0.17-1.el5 base 2.4 M
indent x86_64 2.2.9-14.fc6 base 97 k
libtool x86_64 1.5.22-7.el5_4 base 667 k
ltrace x86_64 0.5-13.45svn.el5_7.12 base 70 k
oprofile x86_64 0.9.4-20.el5 base 2.6 M
patchutils x86_64 0.2.31-2.2.2 base 111 k
pstack x86_64 1.2-7.2.2 base 4.5 k
rcs x86_64 5.7-30.1 base 349 k
redhat-rpm-config noarch 8.0.45-32.el5.centos base 54 k
rpm-build x86_64 4.4.2.3-28.el5_8 updates 303 k
splint x86_64 3.1.1-16.el5 base 1.5 M
strace x86_64 4.5.18-11.el5_8 updates 177 k
subversion i386 1.6.11-10.el5_8 updates 3.1 M
subversion x86_64 1.6.11-10.el5_8 updates 3.2 M
swig x86_64 1.3.29-2.el5 base 2.9 M
systemtap x86_64 1.6-7.el5_8 updates 2.7 M
texinfo x86_64 4.8-14.el5 base 763 k
valgrind i386 1:3.5.0-5.el5 base 20 M
valgrind x86_64 1:3.5.0-5.el5 base 21 M
Installing for dependencies:
apr i386 1.2.7-11.el5_6.5 base 124 k
apr-util i386 1.2.7-11.el5_5.2 base 80 k
elfutils-libs x86_64 0.137-3.el5 base 183 k
imake x86_64 1.0.2-3 base 319 k
libgfortran x86_64 4.1.2-52.el5_8.1 updates 244 k
libgomp i386 4.4.6-3.el5.1 base 72 k
libstdc++-devel x86_64 4.1.2-52.el5_8.1 updates 2.8 M
neon i386 0.25.5-10.el5_4.1 base 101 k
postgresql-libs i386 8.1.23-5.el5_8 updates 197 k
pyspi x86_64 0.6.1-1.el5 base 98 k
sqlite i386 3.3.6-5 base 213 k
systemtap-runtime x86_64 1.6-7.el5_8 updates 215 k
xorg-x11-server-Xvfb x86_64 1.1.1-48.90.el5 base 1.6 M
xz x86_64 4.999.9-0.3.beta.20091007git.el5 base 146 k
xz-libs x86_64 4.999.9-0.3.beta.20091007git.el5 base 95 k

Transaction Summary
==============================================================================================================================================================================================================
Install 54 Package(s)
Upgrade 0 Package(s)

Total download size: 84 M
Is this ok [y/N]: y
Downloading Packages:
(1/54): pstack-1.2-7.2.2.x86_64.rpm | 4.5 kB 00:00
(2/54): diffstat-1.41-1.2.3.el5.x86_64.rpm | 19 kB 00:00
(3/54): byacc-1.9-29.2.2.x86_64.rpm | 41 kB 00:00
(4/54): redhat-rpm-config-8.0.45-32.el5.centos.noarch.rpm | 54 kB 00:00
(5/54): ltrace-0.5-13.45svn.el5_7.12.x86_64.rpm | 70 kB 00:00
(6/54): libgomp-4.4.6-3.el5.1.i386.rpm | 72 kB 00:00
(7/54): apr-util-1.2.7-11.el5_5.2.i386.rpm | 80 kB 00:00
(8/54): xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm | 95 kB 00:00
(9/54): indent-2.2.9-14.fc6.x86_64.rpm | 97 kB 00:00
(10/54): pyspi-0.6.1-1.el5.x86_64.rpm | 98 kB 00:00
(11/54): neon-0.25.5-10.el5_4.1.i386.rpm | 101 kB 00:00
(12/54): patchutils-0.2.31-2.2.2.x86_64.rpm | 111 kB 00:00
(13/54): apr-1.2.7-11.el5_6.5.i386.rpm | 124 kB 00:00
(14/54): flex-2.5.4a-41.fc6.x86_64.rpm | 131 kB 00:00
(15/54): ctags-5.6-1.1.x86_64.rpm | 131 kB 00:00
(16/54): cscope-15.5-15.1.el5_3.1.x86_64.rpm | 144 kB 00:00
(17/54): xz-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm | 146 kB 00:00
(18/54): dogtail-0.6.1-4.el5.noarch.rpm | 172 kB 00:00
(19/54): strace-4.5.18-11.el5_8.x86_64.rpm | 177 kB 00:00
(20/54): elfutils-libs-0.137-3.el5.x86_64.rpm | 183 kB 00:00
(21/54): postgresql-libs-8.1.23-5.el5_8.i386.rpm | 197 kB 00:00
(22/54): automake14-1.4p6-13.el5.1.noarch.rpm | 200 kB 00:00
(23/54): sqlite-3.3.6-5.i386.rpm | 213 kB 00:00
(24/54): elfutils-0.137-3.el5.x86_64.rpm | 215 kB 00:00
(25/54): systemtap-runtime-1.6-7.el5_8.x86_64.rpm | 215 kB 00:00
(26/54): automake15-1.5-16.el5.2.noarch.rpm | 230 kB 00:00
(27/54): automake16-1.6.3-8.el5.1.noarch.rpm | 241 kB 00:00
(28/54): libgfortran-4.1.2-52.el5_8.1.x86_64.rpm | 244 kB 00:00
(29/54): automake17-1.7.9-7.el5.2.noarch.rpm | 278 kB 00:00
(30/54): rpm-build-4.4.2.3-28.el5_8.x86_64.rpm | 303 kB 00:00
(31/54): imake-1.0.2-3.x86_64.rpm | 319 kB 00:00
(32/54): rcs-5.7-30.1.x86_64.rpm | 349 kB 00:00
(33/54): dev86-0.16.17-2.2.x86_64.rpm | 398 kB 00:00
(34/54): automake-1.9.6-2.3.el5.noarch.rpm | 476 kB 00:00
(35/54): bison-2.3-2.1.x86_64.rpm | 549 kB 00:00
(36/54): autoconf-2.59-12.noarch.rpm | 647 kB 00:00
(37/54): libtool-1.5.22-7.el5_4.x86_64.rpm | 667 kB 00:00
(38/54): cvs-1.11.22-11.el5.x86_64.rpm | 738 kB 00:00
(39/54): texinfo-4.8-14.el5.x86_64.rpm | 763 kB 00:00
(40/54): splint-3.1.1-16.el5.x86_64.rpm | 1.5 MB 00:00
(41/54): xorg-x11-server-Xvfb-1.1.1-48.90.el5.x86_64.rpm | 1.6 MB 00:00
(42/54): gdb-7.0.1-42.el5.centos.x86_64.rpm | 2.4 MB 00:00
(43/54): gettext-0.17-1.el5.i386.rpm | 2.4 MB 00:00
(44/54): doxygen-1.4.7-1.1.x86_64.rpm | 2.4 MB 00:00
(45/54): oprofile-0.9.4-20.el5.x86_64.rpm | 2.6 MB 00:00
(46/54): systemtap-1.6-7.el5_8.x86_64.rpm | 2.7 MB 00:00
(47/54): libstdc++-devel-4.1.2-52.el5_8.1.x86_64.rpm | 2.8 MB 00:00
(48/54): swig-1.3.29-2.el5.x86_64.rpm | 2.9 MB 00:00
(49/54): subversion-1.6.11-10.el5_8.i386.rpm | 3.1 MB 00:00
(50/54): subversion-1.6.11-10.el5_8.x86_64.rpm | 3.2 MB 00:00
(51/54): gcc-gfortran-4.1.2-52.el5_8.1.x86_64.rpm | 3.5 MB 00:00
(52/54): gcc-c++-4.1.2-52.el5_8.1.x86_64.rpm | 3.8 MB 00:00
(53/54): valgrind-3.5.0-5.el5.i386.rpm | 20 MB 00:02
(54/54): valgrind-3.5.0-5.el5.x86_64.rpm | 21 MB 00:02
————————————————————————————————————————————————————————————————————–
Total 5.3 MB/s | 84 MB 00:15
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : imake 1/54
Installing : xz-libs 2/54
Installing : xz 3/54
Installing : xorg-x11-server-Xvfb 4/54
Installing : pyspi 5/54
Installing : libgfortran 6/54
Installing : elfutils-libs 7/54
Installing : elfutils 8/54
Installing : gdb 9/54
Installing : apr 10/54
Installing : neon 11/54
Installing : sqlite 12/54
Installing : libgomp 13/54
Installing : postgresql-libs 14/54
Installing : subversion 15/54
Installing : rpm-build 16/54
Installing : gcc-gfortran 17/54
Installing : byacc 18/54
Installing : oprofile 19/54
Installing : strace 20/54
Installing : splint 21/54
Installing : ctags 22/54
Installing : dev86 23/54
Installing : cscope 24/54
Installing : flex 25/54
Installing : ltrace 26/54
Installing : cvs 27/54
Installing : doxygen 28/54
Installing : valgrind 29/54
Installing : indent 30/54
Installing : diffstat 31/54
Installing : swig 32/54
Installing : patchutils 33/54
Installing : texinfo 34/54
Installing : bison 35/54
Installing : rcs 36/54
Installing : autoconf 37/54
Installing : automake 38/54
Installing : libstdc++-devel 39/54
Installing : systemtap-runtime 40/54
Installing : gcc-c++ 41/54
Installing : systemtap 42/54
Installing : libtool 43/54
Installing : automake17 44/54
Installing : pstack 45/54
Installing : dogtail 46/54
Installing : redhat-rpm-config 47/54
Installing : automake14 48/54
Installing : automake15 49/54
Installing : automake16 50/54
Installing : apr-util 51/54
Installing : gettext 52/54
Installing : valgrind 53/54
Installing : subversion 54/54

Installed:
autoconf.noarch 0:2.59-12 automake.noarch 0:1.9.6-2.3.el5 automake14.noarch 0:1.4p6-13.el5.1 automake15.noarch 0:1.5-16.el5.2 automake16.noarch 0:1.6.3-8.el5.1
automake17.noarch 0:1.7.9-7.el5.2 bison.x86_64 0:2.3-2.1 byacc.x86_64 0:1.9-29.2.2 cscope.x86_64 0:15.5-15.1.el5_3.1 ctags.x86_64 0:5.6-1.1
cvs.x86_64 0:1.11.22-11.el5 dev86.x86_64 0:0.16.17-2.2 diffstat.x86_64 0:1.41-1.2.3.el5 dogtail.noarch 0:0.6.1-4.el5 doxygen.x86_64 1:1.4.7-1.1
elfutils.x86_64 0:0.137-3.el5 flex.x86_64 0:2.5.4a-41.fc6 gcc-c++.x86_64 0:4.1.2-52.el5_8.1 gcc-gfortran.x86_64 0:4.1.2-52.el5_8.1 gdb.x86_64 0:7.0.1-42.el5.centos
gettext.i386 0:0.17-1.el5 indent.x86_64 0:2.2.9-14.fc6 libtool.x86_64 0:1.5.22-7.el5_4 ltrace.x86_64 0:0.5-13.45svn.el5_7.12 oprofile.x86_64 0:0.9.4-20.el5
patchutils.x86_64 0:0.2.31-2.2.2 pstack.x86_64 0:1.2-7.2.2 rcs.x86_64 0:5.7-30.1 redhat-rpm-config.noarch 0:8.0.45-32.el5.centos rpm-build.x86_64 0:4.4.2.3-28.el5_8
splint.x86_64 0:3.1.1-16.el5 strace.x86_64 0:4.5.18-11.el5_8 subversion.i386 0:1.6.11-10.el5_8 subversion.x86_64 0:1.6.11-10.el5_8 swig.x86_64 0:1.3.29-2.el5
systemtap.x86_64 0:1.6-7.el5_8 texinfo.x86_64 0:4.8-14.el5 valgrind.i386 1:3.5.0-5.el5 valgrind.x86_64 1:3.5.0-5.el5

Dependency Installed:
apr.i386 0:1.2.7-11.el5_6.5 apr-util.i386 0:1.2.7-11.el5_5.2 elfutils-libs.x86_64 0:0.137-3.el5 imake.x86_64 0:1.0.2-3
libgfortran.x86_64 0:4.1.2-52.el5_8.1 libgomp.i386 0:4.4.6-3.el5.1 libstdc++-devel.x86_64 0:4.1.2-52.el5_8.1 neon.i386 0:0.25.5-10.el5_4.1
postgresql-libs.i386 0:8.1.23-5.el5_8 pyspi.x86_64 0:0.6.1-1.el5 sqlite.i386 0:3.3.6-5 systemtap-runtime.x86_64 0:1.6-7.el5_8
xorg-x11-server-Xvfb.x86_64 0:1.1.1-48.90.el5 xz.x86_64 0:4.999.9-0.3.beta.20091007git.el5 xz-libs.x86_64 0:4.999.9-0.3.beta.20091007git.el5

Complete!
[root@dev ~]#

After the Development Tools group of packages has been installed via YUM you should be able to run the configure script for the S.M.A.R.T. Monitoring Tools without issue as shown in the below example output.

Run S.M.A.R.T. Monitoring Tools Configure Script Without Issue:

[root@dev smartmontools-5.43]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether this is a build from SVN... no
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing getaddrinfo... none required
checking for library containing getdomainname... none required
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking dev/ata/atavar.h usability... no
checking dev/ata/atavar.h presence... no
checking for dev/ata/atavar.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking sys/tweio.h usability... no
checking sys/tweio.h presence... no
checking for sys/tweio.h... no
checking sys/twereg.h usability... no
checking sys/twereg.h presence... no
checking for sys/twereg.h... no
checking sys/tw_osl_ioctl.h usability... no
checking sys/tw_osl_ioctl.h presence... no
checking for sys/tw_osl_ioctl.h... no
checking linux/compiler.h usability... no
checking linux/compiler.h presence... no
checking for linux/compiler.h... no
checking dev/ciss/cissio.h usability... no
checking dev/ciss/cissio.h presence... no
checking for dev/ciss/cissio.h... no
checking for linux/cciss_ioctl.h... yes
checking for ntdddisk.h... no
checking for ddk/ntdddisk.h... no
checking wbemcli.h usability... no
checking wbemcli.h presence... no
checking for wbemcli.h... no
checking for int64_t... yes
checking for uint64_t... yes
checking for getopt_long... yes
checking for regcomp... yes
checking for getdomainname... yes
checking for gethostname... yes
checking for getaddrinfo... yes
checking for gethostbyname... yes
checking for sigset... yes
checking for strtoull... yes
checking for uname... yes
checking for clock_gettime... no
checking for ftime... yes
checking for gettimeofday... yes
checking whether byte ordering is bigendian... no
checking for working snprintf... yes
checking whether g++ supports __attribute__((packed))... yes
checking for systemdsystemunitdir... no
checking for init (rc) directory... ${sysconfdir}/rc.d/init.d
checking for capng_clear in -lcap-ng... no
checking whether to use libcap-ng... no
checking whether os_linux.cpp uses new interface... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
checking whether make sets $(MAKE)... (cached) yes
-----------------------------------------------------------------------------
smartmontools-5.43 configuration:
host operating system:  x86_64-unknown-linux-gnu
C++ compiler:           g++
C compiler:             gcc
preprocessor flags:
C++ compiler flags:     -g -O2 -Wall -W
C compiler flags:       -g -O2
linker flags:
OS specific modules:    os_linux.o cciss.o
binary install path:    /usr/local/sbin
man page install path:  /usr/local/share/man
doc file install path:  /usr/local/share/doc/smartmontools
examples install path:  /usr/local/share/doc/smartmontools/examplescripts
drive database file:    /usr/local/share/smartmontools/drivedb.h
database update script: /usr/local/sbin/update-smart-drivedb
download tools:         curl wget lynx
local drive database:   /usr/local/etc/smart_drivedb.h
smartd config file:     /usr/local/etc/smartd.conf
smartd initd script:    /usr/local/etc/rc.d/init.d/smartd
smartd save files:      [disabled]
smartd attribute logs:  [disabled]
libcap-ng support:      no
SELinux support:        no
-----------------------------------------------------------------------------
[root@dev smartmontools-5.43]#

The above logic should be very similar on all types of Linux and relate to any typical configure script.


List Price: $59.99 USD
New From: $31.49 USD In Stock
Used from: $22.16 USD In Stock


List Price: $59.99 USD
New From: $32.77 USD In Stock
Used from: $1.90 USD In Stock

Share