GateD for a sparc running Solaris 7 in 64 bit mode
2007-12-24 19:22:00
running Solaris 7 in "64-bit" mode on a Sun 420?
Have tried building from the source code with both gcc and Sun's C
compiler. Looks like gcc won't compile in 64-bit, just 32-bit?
# file /usr/local/sbin/gated
/usr/local/sbin/gated: ELF 32-bit MSB executable SPARC Version 1,
dynamically linked, not stripped
# ldd -d /usr/local/sbin/gated
libkvm.so.1 => /usr/lib/libkvm.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libnsl.so.1 => /usr/lib/libnsl.so.1
libxnet.so.1 => /usr/lib/libxnet.so.1
libkstat.so.1 => /usr/lib/libkstat.so.1
libelf.so.1 => /usr/lib/libelf.so.1
libc.so.1 => /usr/lib/libc.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
# cat /var/tmp/gated_parse
kvm: /dev/ksyms is not a 32-bit kernel namelist
With Sun's C compiler...
./configure --disable-all --enable-rip --enable-ospf --with-
cc=/opt/WS50/SUNWspr
o/bin/cc --with-cflags="-xarch=v9 -L/usr/lib/sparcv9" --
libdir=/usr/lib/sparcv9
--disable-ripon
...it compiled 64-bit object code but linking to 64-bit libraries
failed with "Wrong machine class."
I believe you need to give explicit directions to the compiler i.e.
xarch=v9 or -mcpu=v9
Also, must link to the libraries in /usr/lib/sparcv9 instead of
just /usr/lib.
Downloaded the gated-snapshot000114-sol7-sparc-local.gz localized
package from www.sunfreeware.com but it also does not work as it was
built 32-bit ELF (ldd shows 32-bit libraries).
Thanks in advance for any help.
Regards,
Jeff
Comments
Got something to say?
You must be logged in to post a comment.

