Subject: Re: compat_solaris
To: Michael <macallan18@earthlink.net>
From: Seth Kurtzberg <seth@cql.com>
List: port-sparc64
Date: 02/06/2005 02:48:32
Michael wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
>>    Hmm, now I get...
>>    Syntax error: ")" unexpected
>>    Apparently ktrace thinks it's a script for some reason. Odd.
>>
>>
>> this may suggest that the dynamic linker isn't being found?  what do you
>> have under /emul/svr4?
>
> the complete /usr/lib, /usr/bin, /usr/ucblib and /usr/openwin/lib from 
> Solaris 9
> I'm pretty sure it can't be the dynamic linker since other binaries 
> like /usr/openwin/bin/xterm just work.

Do an ldd -r and check whether Opera is using a library that none of the 
others use.  That wouldn't be surprising.

> The ktrace doesn't indicate even an attempt to load the dynamic 
> linker, all it says is 'errno 8 Exec format error' and then it loads 
> /bin/sh and apparently tries to feed the binary to it.
> Running Solrais' /usr/bin/sh gives this trace:
> 16197 ktrace   CALL  
> execve(0xffffffffffffc6d6,0xffffffffffffc4d0,0xffffffffffffc4e0)
>  16197 ktrace   NAMI  "/usr/emul/svr4/bin/sh"
>  16197 ktrace   NAMI  "/emul/svr4_32/usr/lib/ld.so.1"
>  16197 ktrace   NAMI  "/emul/svr4_32"
>  16197 ktrace   NAMI  "/emul/svr4_32/usr/lib/ld.so.1"
>  16197 sh       EMUL  "svr4_32"
>  16197 sh       RET   execve JUSTRETURN
>  16197 sh       CALL  getuid_with_euid
>  16197 sh       RET   getuid_with_euid 0
>  16197 sh       CALL  mmap(0,0x2000,7,0x80000102,0xffffffff,0)
>  16197 sh       RET   mmap 1073963008/0x40036000, 8192/0x2000
>  16197 sh       CALL  stat(0x400361fc,0xffffc3d0)
>  16197 sh       NAMI  "/emul/svr4_32/usr/emul/svr4/bin/sh"
>  16197 sh       NAMI  "/usr/emul/svr4/bin/sh"
>  16197 sh       RET   stat 0, 4294951888/0xffffc3d0
>  16197 sh       CALL  open(0x10022783,0,0)
>  16197 sh       NAMI  "/emul/svr4_32/var/ld/ld.config"
>  16197 sh       NAMI  "/var/ld/ld.config"
>  16197 sh       RET   open -1 errno 2 No such file or directory
>  16197 sh       CALL  stat(0x10036f80,0xffffbd0c)
> While opera gives this:
>   9199 ktrace   CALL  
> execve(0xffffffffffffc6b6,0xffffffffffffc4b0,0xffffffffffffc4c0)
>   9199 ktrace   NAMI  "/emul/svr4_32/usr/lib/opera/8.0-20050104.1/opera"
>   9199 ktrace   RET   execve -1 errno 8 Exec format error
>   9199 ktrace   CALL  
> execve(0x405c0220,0xffffffffffffbe60,0xffffffffffffc4c0)
>   9199 ktrace   NAMI  "/bin/sh"
>   9199 ktrace   NAMI  "/libexec/ld.elf_so"
>   9199 sh       EMUL  "netbsd"
> So - what could cause the Exec format error?
>
> ~> file /usr/emul/svr4_32/usr/lib/opera/8.0-20050104.1/opera
> /usr/emul/svr4_32/usr/lib/opera/8.0-20050104.1/opera: ELF 32-bit MSB 
> executable, SPARC, version 1 (SYSV), dynamically linked (uses shared 
> libs), stripped
>
> ~> file /usr/emul/svr4_32/usr/bin/sh
> /usr/emul/svr4_32/usr/bin/sh: ELF 32-bit MSB executable, SPARC, 
> version 1 (SYSV), dynamically linked (uses shared libs), stripped
>
> have fun
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iQEVAwUBQgU+vMpnzkX8Yg2nAQLmoQf9EmQARfdUpRj/rbtOvpVk0Fsh16MmzL7T
> HxpD2sJqdW/grPy3i7E8tlT95jLz/HP5VskidOzBipi09zCD1v6S8ABmHcPxcv2k
> v3vfnDYfz0nbTXesChiDjeeMrdWczNmgi5GaEVJeDXsBbrWv4jc9QqM+H/dTKGud
> MtoAPVgAmUpaSqO+gH5OcUXrzj+J/4ZWoS/U5kKgVgN7+u3l9ql8H6/zaEkyQPV3
> 6ulLcxbDNyhvrgJntgc6j63bDKb5s3jrwdujoz1khNiwSgkrtxnPhmSjmuowtzQO
> ywJrV6ij5MwhuMIYWO7+CK2NmE1VPnbmwGLhUPtpvltxAFGUb+eh9g==
> =EcWd
> -----END PGP SIGNATURE-----
>
>
> !DSPAM:420549d6157642102715126!
>