Compile issue on Solaris 10 - insecure interpreter ELF


#1

We have Solaris Environment here at work…

Installing Nagios 3.02in s sparse root zone.
[blockquote]
ap2# echo $PATH
/usr/local/bin:/usr/sbin:/usr/bin:/usr/sfw/bin
ap2# uname -a
SunOS sm1ap2 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T200
[/blockquote]

3.02 compiles and builds on the T200 but it produces a bad binary…
I have narrowed it down to this
[blockquote]
ap2# ldd /opt/nagios/bin/nagios
ldd: /opt/nagios/bin/nagios: file has insecure interpreter ELF
[/blockquote]
I have a good binary (compiled on another system)
so I now know what I am missing…
[blockquote]
sm1ap2# ldd nagios/bin/nagios
libm.so.2 => /lib/libm.so.2
libpthread.so.1 => /lib/libpthread.so.1
libdl.so.1 => /lib/libdl.so.1
librt.so.1 => /lib/librt.so.1
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
libc.so.1 => /lib/libc.so.1
libaio.so.1 => /lib/libaio.so.1
libmd.so.1 => /lib/libmd.so.1
/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/libmd_psr.so.1
[/blockquote]
SunFreeWare packages
– binutils-2.17
– gd-2.0.35
– libiconv-1.9.2
– freetype-2.3.1
– make-3.81
– libtool-1.5.24
– libintl (3.4.0)
– gcc-3.4.6

Much Thx
tk


#2

The issue is with the make install command it strips too much information from the compiled binaries…

Running ldd on the compiled nagios binary does work…

I added coreutils packaged to replace the default install but still no joy…