Subject: Re: COMPAT_FREEBSD problem
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 11/15/2002 20:34:31
In article <20021115155537.GA269@glen.takilma.net>,
 <collver1@attbi.com> wrote:

1. ktrace it
2. add debugging printfs to exec_elf32.c

christos

>I have a static linked FreeBSD 4.2 binary that doesn't run under
>NetBSD/i386 v1.6 with COMPAT_FREEBSD.  Can anyone give me some hints how to
>troubleshoot it?
>
>Thanks...
>
>$ uname -a
>NetBSD glen 1.6 NetBSD 1.6 (GLEN) #0: Fri Nov 15 07:43:55 PST 2002
>root@glen:/usr/src/sys/arch/i386/compile/GLEN i386
>
>$ strings /netbsd | grep FREEBSD
>_CFG_options \011COMPAT_FREEBSD\011# binary compatibility with FreeBSD
>
>$ ls -l example
>-r-xr-xr-x  1 ben  users  135952 Nov 15 07:48 example
>
>$ file example
>example: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
>FreeBSD 4.2, statically linked, stripped
>
>$ ./example
>./example: 1: Syntax error: "(" unexpected