Subject: Re: 32bit SunOS binaries on sparc64
To: matthew green <mrg@eterna.com.au>
From: Grant Beattie <grant@grunta.com>
List: port-sparc64
Date: 09/17/2001 14:55:41
On Mon, Sep 17, 2001 at 02:31:35PM +1000, matthew green wrote:

>    tinkerbell# /usr/local/netscape-4.08/netscape
>    res_init: socket: Protocol not supported
>    Error: Can't open display: grunta:0.0
>    tinkerbell# /usr/local/netscape-4.75/netscape
>    res_init: socket: Protocol not supported
>    Error: Can't open display: grunta:0.0

also tried using the ip, and turning off dns completely, in case that
was screwing things .. same result :(

>    and from the kernel:
>    
>    Alignment error: dsfsr=00000000:00800005 dsfar=0:fffffff7 isfsr=00000000:00000000 pc=1000a668
>    Alignment error: pid=10005 comm=netscape dsfsr=00000000:00800005 dsfar=0:fffffff7 isfsr=00000000:00000000 pc=1000a668
> 
> "what does ktrace/kdump say?"

Here's the interesting bit before it dies (the whole thing was 3000+
lines)..

 10283 netscape CALL  open(0x40a8682c,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/local/netscape-4.08/./talkback/talkback.so"
 10283 netscape NAMI  "/usr/local/netscape-4.08/./talkback/talkback.so"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  getrlimit(0x5,0xffffb4d0)
 10283 netscape RET   getrlimit 0
 10283 netscape CALL  socket(0x2,0x2,0)
 10283 netscape RET   socket -1 errno 120 Protocol not supported
 10283 netscape CALL  open(0x40e6bd60,0,0x1b6)
 10283 netscape NAMI  "/emul/svr4_32/etc/netconfig"
 10283 netscape NAMI  "/emul/svr4_32"
 10283 netscape NAMI  "/emul/svr4_32/etc/netconfig"
 10283 netscape RET   open 8
 10283 netscape CALL  fstat64(0x8,0xffffacf0)
 10283 netscape RET   fstat64 0
 10283 netscape CALL  ioctl(0x8,_IO('T',0x1,0),0xffffac7c)
 10283 netscape RET   ioctl -1 errno 25 Inappropriate ioctl for device
 10283 netscape CALL  read(0x8,0xc8e634,0x400)
 10283 netscape GIO   fd 8 read 537 bytes
       "#	$NetBSD: netconfig,v 1.1 1997/11/13 03:02:06 thorpej Exp $
	#
	# SVR4 Network configuration file
	#
	# service name	       fl family   proto device         library
	udp       tpi_clts     v  inet     udp   /dev/udp       -
	tcp       tpi_cots_ord v  inet     tcp   /dev/tcp       -
	rawip     tpi_raw      -  inet     -     /dev/rawip     -
	ticlts    tpi_clts     v  loopback -     /dev/ticlts    straddr.so
	ticotsord tpi_cots_ord v  loopback -     /dev/ticotsord straddr.so
	ticots    tpi_cots     v  loopback -     /dev/ticots    straddr.so
       "
 10283 netscape RET   read 537/0x219
 10283 netscape CALL  read(0x8,0xc8e634,0x400)
 10283 netscape RET   read 0
 10283 netscape CALL  llseek(0x8,0,0,0x1)
 10283 netscape RET   llseek 537/0x219
 10283 netscape CALL  llseek(0x8,0,0,0)
 10283 netscape RET   llseek 0
 10283 netscape CALL  read(0x8,0xc8e634,0x400)
 10283 netscape GIO   fd 8 read 537 bytes
       "#	$NetBSD: netconfig,v 1.1 1997/11/13 03:02:06 thorpej Exp $
	#
	# SVR4 Network configuration file
	#
	# service name	       fl family   proto device         library
	udp       tpi_clts     v  inet     udp   /dev/udp       -
	tcp       tpi_cots_ord v  inet     tcp   /dev/tcp       -
	rawip     tpi_raw      -  inet     -     /dev/rawip     -
	ticlts    tpi_clts     v  loopback -     /dev/ticlts    straddr.so
	ticotsord tpi_cots_ord v  loopback -     /dev/ticotsord straddr.so
	ticots    tpi_cots     v  loopback -     /dev/ticots    straddr.so
       "
 10283 netscape RET   read 537/0x219
 10283 netscape CALL  read(0x8,0xc8e634,0x400)
 10283 netscape RET   read 0
 10283 netscape CALL  llseek(0x8,0,0,0x1)
 10283 netscape RET   llseek 537/0x219
 10283 netscape CALL  close(0x8)
 10283 netscape RET   close 0
 10283 netscape CALL  stat(0xcc6598,0xffffb374)
 10283 netscape NAMI  "/emul/svr4_32/dev/tcp"
 10283 netscape NAMI  "/emul/svr4_32"
 10283 netscape NAMI  "/emul/svr4_32/dev/tcp"
 10283 netscape RET   stat 0
 10283 netscape CALL  socket(0x2,0x2,0)
 10283 netscape RET   socket 8
 10283 netscape CALL  setsockopt(0x8,0x6,0x1,0xffffb4cc,0x4)
 10283 netscape RET   setsockopt -1 errno 22 Invalid argument
 10283 netscape CALL  setsockopt(0x8,0xffff,0x8,0xffffb4c8,0x4)
 10283 netscape RET   setsockopt 0
 10283 netscape CALL  open64(0x40fb4600,0,0)
 10283 netscape NAMI  "/emul/svr4_32/etc/.name_service_door"
 10283 netscape NAMI  "/etc/.name_service_door"
 10283 netscape RET   open64 -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x40fb48ec,0,0x1b6)
 10283 netscape NAMI  "/emul/svr4_32/etc/nsswitch.conf"
 10283 netscape NAMI  "/emul/svr4_32"
 10283 netscape NAMI  "/emul/svr4_32/etc/nsswitch.conf"
 10283 netscape RET   open 9
 10283 netscape CALL  fstat64(0x9,0xffff8ee8)
 10283 netscape RET   fstat64 0
 10283 netscape CALL  ioctl(0x9,_IO('T',0x1,0),0xffff8e74)
 10283 netscape RET   ioctl -1 errno 25 Inappropriate ioctl for device
 10283 netscape CALL  read(0x9,0xc8ff54,0x400)
 10283 netscape GIO   fd 9 read 301 bytes
       "#	$NetBSD: nsswitch.conf,v 1.1 1997/11/13 03:02:06 thorpej Exp $
	#
	# Name service switch file
	#
	hosts:      dns files
	networks:   files
	protocols:  files
	ethers:     files
	rpc:        files
	netmasks:   files	
	bootparams: files
	services:   files
	#
	passwd:     files
	group:      files
	netgroup:   files
       "
 10283 netscape RET   read 301/0x12d
 10283 netscape CALL  read(0x9,0xc8ff54,0x400)
 10283 netscape RET   read 0
 10283 netscape CALL  llseek(0x9,0,0,0x1)
 10283 netscape RET   llseek 301/0x12d
 10283 netscape CALL  close(0x9)
 10283 netscape RET   close 0
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/opt/local/lib/nss_dns.so.1"
 10283 netscape NAMI  "/opt/local/lib/nss_dns.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/local/lib/nss_dns.so.1"
 10283 netscape NAMI  "/usr/local/lib/nss_dns.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/opt/net/lib/nss_dns.so.1"
 10283 netscape NAMI  "/opt/net/lib/nss_dns.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/openwin/lib/nss_dns.so.1"
 10283 netscape NAMI  "/usr/openwin/lib/nss_dns.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/lib/nss_dns.so.1"
 10283 netscape NAMI  "/emul/svr4_32"
 10283 netscape NAMI  "/emul/svr4_32/usr/lib/nss_dns.so.1"
 10283 netscape RET   open 9
 10283 netscape CALL  fstat(0x9,0xffff8e54)
 10283 netscape RET   fstat 0
 10283 netscape CALL  mmap(0,0x2000,0x5,0x80000002,0x9,0)
 10283 netscape RET   mmap 1084784640/0x40a88000
 10283 netscape CALL  mmap(0,0x12000,0x5,0x80000002,0x9,0)
 10283 netscape RET   mmap 1090912256/0x41060000
 10283 netscape CALL  mmap(0x41070000,0x1ac8,0x7,0x80000012,0x9,0)
 10283 netscape RET   mmap 1090977792/0x41070000
 10283 netscape CALL  munmap(0x41062000,0xe000)
 10283 netscape RET   munmap 0
 10283 netscape CALL  memcntl(0x41060000,0xe00,0x4,0x3,0,0)
 10283 netscape RET   memcntl 0
 10283 netscape CALL  close(0x9)
 10283 netscape RET   close 0
 10283 netscape CALL  munmap(0x40a88000,0x2000)
 10283 netscape RET   munmap 0
 10283 netscape CALL  getpid
 10283 netscape RET   getpid 10283/0x282b
 10283 netscape CALL  socket(0x2,0x1,0)
 10283 netscape RET   socket -1 errno 120 Protocol not supported
 10283 netscape CALL  stat(0xcc6580,0xffff891c)
 10283 netscape NAMI  "/emul/svr4_32/dev/udp"
 10283 netscape NAMI  "/emul/svr4_32"
 10283 netscape NAMI  "/emul/svr4_32/dev/udp"
 10283 netscape RET   stat 0
 10283 netscape CALL  socket(0x2,0x1,0)
 10283 netscape RET   socket -1 errno 120 Protocol not supported
 10283 netscape CALL  write(0x2,0x40ec0fa8,0x10)
 10283 netscape GIO   fd 2 wrote 16 bytes
       "res_init: socket"
 10283 netscape RET   write 16/0x10
 10283 netscape CALL  write(0x2,0x40fb496c,0x2)
 10283 netscape GIO   fd 2 wrote 2 bytes
       ": "
 10283 netscape RET   write 2
 10283 netscape CALL  write(0x2,0x40fb152b,0x16)
 10283 netscape GIO   fd 2 wrote 22 bytes
       "Protocol not supported"
 10283 netscape RET   write 22/0x16
 10283 netscape CALL  write(0x2,0x40fb4970,0x1)
 10283 netscape GIO   fd 2 wrote 1 bytes
       "
       "
 10283 netscape RET   write 1
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/opt/local/lib/nss_files.so.1"
 10283 netscape NAMI  "/opt/local/lib/nss_files.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/local/lib/nss_files.so.1"
 10283 netscape NAMI  "/usr/local/lib/nss_files.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/opt/net/lib/nss_files.so.1"
 10283 netscape NAMI  "/opt/net/lib/nss_files.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/openwin/lib/nss_files.so.1"
 10283 netscape NAMI  "/usr/openwin/lib/nss_files.so.1"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  open(0x10030624,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/lib/nss_files.so.1"
 10283 netscape NAMI  "/emul/svr4_32"
 10283 netscape NAMI  "/emul/svr4_32/usr/lib/nss_files.so.1"
 10283 netscape RET   open 9
 10283 netscape CALL  fstat(0x9,0xffff8e54)
 10283 netscape RET   fstat 0
 10283 netscape CALL  mmap(0,0x2000,0x5,0x80000002,0x9,0)
 10283 netscape RET   mmap 1084784640/0x40a88000
 10283 netscape CALL  mmap(0,0x14000,0x5,0x80000002,0x9,0)
 10283 netscape RET   mmap 1090985984/0x41072000
 10283 netscape CALL  munmap(0x41072000,0x14000)
 10283 netscape RET   munmap 0
 10283 netscape CALL  mmap(0x41072000,0x24000,0x5,0x80000002,0x9,0)
 10283 netscape RET   mmap 1090985984/0x41072000
 10283 netscape CALL  munmap(0x41072000,0xe000)
 10283 netscape RET   munmap 0
 10283 netscape CALL  mmap(0x41080000,0x14000,0x5,0x80000012,0x9,0)
 10283 netscape RET   mmap 1091043328/0x41080000
 10283 netscape CALL  mmap(0x41092000,0x1d2c,0x7,0x80000012,0x9,0x2000)
 10283 netscape RET   mmap 1091117056/0x41092000
 10283 netscape CALL  munmap(0x41084000,0xe000)
 10283 netscape RET   munmap 0
 10283 netscape CALL  memcntl(0x41080000,0x15d0,0x4,0x3,0,0)
 10283 netscape RET   memcntl 0
 10283 netscape CALL  close(0x9)
 10283 netscape RET   close 0
 10283 netscape CALL  munmap(0x40a88000,0x2000)
 10283 netscape RET   munmap 0
 10283 netscape CALL  open(0x410837d0,0,0x1b6)
 10283 netscape NAMI  "/emul/svr4_32/etc/hosts"
 10283 netscape NAMI  "/etc/hosts"
 10283 netscape RET   open 9
 10283 netscape CALL  fstat64(0x9,0xffff8e40)
 10283 netscape RET   fstat64 0
 10283 netscape CALL  ioctl(0x9,_IO('T',0x1,0),0xffff8dcc)
 10283 netscape RET   ioctl -1 errno 25 Inappropriate ioctl for device
 10283 netscape CALL  read(0x9,0xc8ffbc,0x400)
 10283 netscape GIO   fd 9 read 543 bytes
       "#	$NetBSD: hosts,v 1.6 2000/08/15 09:33:05 itojun Exp $
	#
	# Host Database
	# This file should contain the addresses and aliases
	# for local hosts that share this file.
	# It is used only for "ifconfig" and other operations
	# before the nameserver is started.
	#
	#
	::1			localhost
	127.0.0.1		localhost
	#
	# RFC 1918 specifies that these networks are "internal".
	# 10.0.0.0	10.255.255.255
	# 172.16.0.0	172.31.255.255
	# 192.168.0.0	192.168.255.255
	#
	# Added by NetBSD sysinst
	#
	127.0.0.1	localhost
	192.168.211.70	tinkerbell tinkerbell
       "
 10283 netscape RET   read 543/0x21f
 10283 netscape CALL  read(0x9,0xc8ffbc,0x400)
 10283 netscape RET   read 0
 10283 netscape CALL  llseek(0x9,0,0,0x1)
 10283 netscape RET   llseek 543/0x21f
 10283 netscape CALL  close(0x9)
 10283 netscape RET   close 0
 10283 netscape CALL  close(0x8)
 10283 netscape RET   close 0
 10283 netscape CALL  open(0x40c7e1f0,0,0)
 10283 netscape NAMI  "/emul/svr4_32/usr/openwin/lib/X11/XtErrorDB"
 10283 netscape NAMI  "/usr/openwin/lib/X11/XtErrorDB"
 10283 netscape RET   open -1 errno 2 No such file or directory
 10283 netscape CALL  write(0x2,0x40c7e272,0x7)
 10283 netscape GIO   fd 2 wrote 7 bytes
       "Error: "
 10283 netscape RET   write 7
 10283 netscape CALL  write(0x2,0xffffafb0,0x1c)
 10283 netscape GIO   fd 2 wrote 28 bytes
       "Can't open display: grunta:0"
 10283 netscape RET   write 28/0x1c
 10283 netscape CALL  write(0x2,0x40fc9644,0x1)
 10283 netscape GIO   fd 2 wrote 1 bytes
       "
       "
 10283 netscape RET   write 1
 10283 netscape CALL  llseek(0,0,0,0x1)
 10283 netscape RET   llseek 189310/0x2e37e
 10283 netscape CALL  exit(0x1)