[rescue] istatd part - Re: problems compiling istatd and/or Bjango istatserverlinux on Solaris 11.3

Jerry Kemp sun.mail.list47 at oryx.us
Mon May 21 14:22:23 CDT 2018

breaking this into (2) parts, an istatd part, and a Bjango istatserverlinux part for easier readability.


here is a copy-n-paste of the compile.  I don't see LD being called, so I am presuming that it is the latter suggestion.

The complete compile process here:
/usr/local/src/i/istatd-0.5.8 593 # make
make  all-recursive
Making all in probes
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT kstat.o -MD -MP -MF .deps/kstat.Tpo -c -o kstat.o kstat.c
mv -f .deps/kstat.Tpo .deps/kstat.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT swapctl.o -MD -MP -MF .deps/swapctl.Tpo -c -o swapctl.o 
mv -f .deps/swapctl.Tpo .deps/swapctl.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT procfs.o -MD -MP -MF .deps/procfs.Tpo -c -o procfs.o procfs.c
mv -f .deps/procfs.Tpo .deps/procfs.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT getloadavg.o -MD -MP -MF .deps/getloadavg.Tpo -c -o 
getloadavg.o getloadavg.c
mv -f .deps/getloadavg.Tpo .deps/getloadavg.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT statfs.o -MD -MP -MF .deps/statfs.Tpo -c -o statfs.o statfs.c
mv -f .deps/statfs.Tpo .deps/statfs.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT kvm.o -MD -MP -MF .deps/kvm.Tpo -c -o kvm.o kvm.c
mv -f .deps/kvm.Tpo .deps/kvm.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT sysctl.o -MD -MP -MF .deps/sysctl.Tpo -c -o sysctl.o sysctl.c
mv -f .deps/sysctl.Tpo .deps/sysctl.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT lm_sensors3.o -MD -MP -MF .deps/lm_sensors3.Tpo -c -o 
lm_sensors3.o lm_sensors3.c
mv -f .deps/lm_sensors3.Tpo .deps/lm_sensors3.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT lm_sensors4.o -MD -MP -MF .deps/lm_sensors4.Tpo -c -o 
lm_sensors4.o lm_sensors4.c
mv -f .deps/lm_sensors4.Tpo .deps/lm_sensors4.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT qnap_temp.o -MD -MP -MF .deps/qnap_temp.Tpo -c -o 
qnap_temp.o qnap_temp.c
mv -f .deps/qnap_temp.Tpo .deps/qnap_temp.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT perfstat.o -MD -MP -MF .deps/perfstat.Tpo -c -o perfstat.o 
mv -f .deps/perfstat.Tpo .deps/perfstat.Po
rm -f libprobes.a
ar cru libprobes.a kstat.o swapctl.o  procfs.o getloadavg.o statfs.o  kvm.o sysctl.o lm_sensors3.o  lm_sensors4.o qnap_temp.o 
ranlib libprobes.a
Making all in libfslabel
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT fslabel.o -MD -MP -MF .deps/fslabel.Tpo -c -o fslabel.o 
mv -f .deps/fslabel.Tpo .deps/fslabel.Po
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT ext.o -MD -MP -MF .deps/ext.Tpo -c -o ext.o ext.c
mv -f .deps/ext.Tpo .deps/ext.Po
rm -f libfslabel.a
ar cru libfslabel.a fslabel.o ext.o
ranlib libfslabel.a
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -I/usr/include/libxml2  -g -O2 -MT fsident.o -MD -MP -MF .deps/fsident.Tpo -c -o fsident.o 
mv -f .deps/fsident.Tpo .deps/fsident.Po
gcc  -g -O2  -rdynamic -o fsident fsident.o libfslabel.a -lsocket -lnsl  -lxml2 -lkstat
Making all in .
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT conf.o -MD -MP -MF .deps/conf.Tpo -c -o conf.o conf.cpp
mv -f .deps/conf.Tpo .deps/conf.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT argument.o -MD -MP -MF .deps/argument.Tpo -c -o argument.o 
mv -f .deps/argument.Tpo .deps/argument.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT switchboard.o -MD -MP -MF .deps/switchboard.Tpo -c -o 
switchboard.o switchboard.cpp
mv -f .deps/switchboard.Tpo .deps/switchboard.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT socket.o -MD -MP -MF .deps/socket.Tpo -c -o socket.o socket.cpp
mv -f .deps/socket.Tpo .deps/socket.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT socketset.o -MD -MP -MF .deps/socketset.Tpo -c -o socketset.o 
mv -f .deps/socketset.Tpo .deps/socketset.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT clientset.o -MD -MP -MF .deps/clientset.Tpo -c -o clientset.o 
mv -f .deps/clientset.Tpo .deps/clientset.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT isr.o -MD -MP -MF .deps/isr.Tpo -c -o isr.o isr.cpp
mv -f .deps/isr.Tpo .deps/isr.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT daemon.o -MD -MP -MF .deps/daemon.Tpo -c -o daemon.o daemon.cpp
mv -f .deps/daemon.Tpo .deps/daemon.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT stats.o -MD -MP -MF .deps/stats.Tpo -c -o stats.o stats.cpp
mv -f .deps/stats.Tpo .deps/stats.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT token.o -MD -MP -MF .deps/token.Tpo -c -o token.o token.cpp
mv -f .deps/token.Tpo .deps/token.Po
g++ -DHAVE_CONFIG_H -I.    -Wall -I/usr/include/libxml2  -g -O2 -MT utility.o -MD -MP -MF .deps/utility.Tpo -c -o utility.o utility.cpp
mv -f .deps/utility.Tpo .deps/utility.Po
g++  -g -O2  -rdynamic  -o istatd main.o conf.o argument.o  switchboard.o socket.o socketset.o  clientset.o isr.o daemon.o  stats.o 
token.o utility.o probes/libprobes.a libfslabel/libfslabel.a -lsocket -lnsl  -lxml2 -lkstat
Making all in resource
/usr/local/src/i/istatd-0.5.8 594 #

On 21/05/18 13:59, Jonathan Patschke wrote:
> On Mon, 21 May 2018, Jerry Kemp wrote:
>> dns32 /usr/local/src/i/istatd-0.5.8 580 # ldd ./istatd
>>        libstdc++.so.6 =>        /usr/lib/libstdc++.so.6
>>        libstdc++.so.6 (GLIBCXX_3.4.20) =>       (version not found)
> During the build, is it using ld as LD, or is it using g++?  The Solaris
> linker is occasionally simplistic, but the gcc toolchain should know how
> to pass the right magic biscuit to the linker proper.

More information about the rescue mailing list