[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 15:18:33 CDT 2018
please see inline comments
On 21/05/18 15:11, Jonathan Patschke wrote:
> On Mon, 21 May 2018, Jerry Kemp wrote:
>
>> 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.
>
> That looks reasonble. Is your gcc the one in /usr/bin or some other gcc? <--yes
/root 503 # which gcc
/bin/gcc
/root 504 # which g++
/bin/g++
/root 505 # /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: /export/home/ulhg/workspace/nightly-evaluation-build/build/i386-evaluation/components/gcc4/gcc-4.9.4/configure
--prefix=/usr/gcc/4.9 --mandir=/usr/gcc/4.9/share/man --bindir=/usr/gcc/4.9/bin --sbindir=/usr/gcc/4.9/sbin
--libdir=/usr/gcc/4.9/lib --infodir=/usr/gcc/4.9/share/info --libexecdir=/usr/gcc/4.9/lib --enable-languages=c,c++,fortran,objc
--enable-shared --enable-initfini-array --disable-rpath --with-system-zlib --with-build-config=no
--with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as
--with-as=/usr/gnu/bin/as --enable-tls 'BOOT_CFLAGS=-g -O2' i386-pc-solaris2.11
Thread model: posix
gcc version 4.9.4 (GCC)
/root 506 # /usr/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: /export/home/ulhg/workspace/nightly-evaluation-build/build/i386-evaluation/components/gcc4/gcc-4.9.4/configure
--prefix=/usr/gcc/4.9 --mandir=/usr/gcc/4.9/share/man --bindir=/usr/gcc/4.9/bin --sbindir=/usr/gcc/4.9/sbin
--libdir=/usr/gcc/4.9/lib --infodir=/usr/gcc/4.9/share/info --libexecdir=/usr/gcc/4.9/lib --enable-languages=c,c++,fortran,objc
--enable-shared --enable-initfini-array --disable-rpath --with-system-zlib --with-build-config=no
--with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as
--with-as=/usr/gnu/bin/as --enable-tls 'BOOT_CFLAGS=-g -O2' i386-pc-solaris2.11
Thread model: posix
gcc version 4.9.4 (GCC)
/root 507 #
>
> I've just spun up a Solaris 11.3 VM and installed gcc, gnu-make, autoconf,
> automake, libtool, and git. I checked out the repository you pointed out
> and got slightly simpler compilation output (mo -M[TDPF] flags).
>
> I then got this from ldd:
>
> jp at ai-vm:~/build/istatd$ ldd istatd
> libsocket.so.1 => /lib/libsocket.so.1
> libnsl.so.1 => /lib/libnsl.so.1
> libxml2.so.2 => /lib/libxml2.so.2
> libkstat.so.1 => /lib/libkstat.so.1
> libstdc++.so.6 => /usr/lib/libstdc++.so.6
> libm.so.2 => /lib/libm.so.2
> libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
> libc.so.1 => /lib/libc.so.1
> libmp.so.2 => /lib/libmp.so.2
> libucrypto.so.1 => /lib/libucrypto.so.1
> libpthread.so.1 => /lib/libpthread.so.1
> libz.so.1 => /lib/libz.so.1
> libelf.so.1 => /lib/libelf.so.1
> libcryptoutil.so.1 => /lib/libcryptoutil.so.1
>
> This makes me think that you have competing libraries/tools installed.
certainly possible.
not sure where the GLIBCXX stuff is originating from
/usr/local/src/i 511 # cd istatd-0.5.8
dns32 /usr/local/src/i/istatd-0.5.8 512 # ldd ./istatd
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libxml2.so.2 => /usr/lib/libxml2.so.2
libkstat.so.1 => /usr/lib/libkstat.so.1
libstdc++.so.6 => /usr/lib/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.20) => (version not found)
Similar to your environment, this is also a recently spun up VM on VirtualBox.
Jerry
More information about the rescue
mailing list