Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Jun 1995 18:38:18 -0700
From:      "Justin T. Gibbs" <gibbs@freefall.cdrom.com>
To:        Amancio Hasty <hasty@star-gate.com>
Cc:        freebsd-hackers@freefall.cdrom.com
Subject:   Re: netscape and current? 
Message-ID:  <199506040138.SAA03471@freefall.cdrom.com>
In-Reply-To: Your message of "Sat, 03 Jun 95 15:41:51 PDT." <199506032241.PAA00985@star-gate.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>
> netscape  http://www.omt.com
>/usr/X11R6/bin/netscape: Exec format error. Wrong Architecture.
>
>So whats up?
>
>	Tnks,
>	Amancio

This is a problem with COMPAT_LINUX.  This fixed it for me:


Index: imgact_aout.c
===================================================================
RCS file: /usr/cvs/src/sys/kern/imgact_aout.c,v
retrieving revision 1.13
diff -c -r1.13 imgact_aout.c
*** 1.13	1995/05/30 08:05:17
--- imgact_aout.c	1995/06/03 19:40:44
***************
*** 57,66 ****
  	/*
  	 * Linux and *BSD binaries look very much alike,
  	 * only the machine id is different:
! 	 * 0x64 for Linux, 0x86 for *BSD.
  	 */
! 	if (((a_out->a_magic >> 16) & 0xff) != 0x86)
! 		return -1;
  #endif /* COMPAT_LINUX */
  
  	/*
--- 57,67 ----
  	/*
  	 * Linux and *BSD binaries look very much alike,
  	 * only the machine id is different:
! 	 * 0x64 for Linux, 0x86 for *BSD, 0x00 for BSDI.
  	 */
! 	if (((a_out->a_magic >> 16) & 0xff) != 0x86 &&
! 	    ((a_out->a_magic >> 16) & 0xff) != 0)
!                 return -1;
  #endif /* COMPAT_LINUX */
  
  	/*
--
Justin T. Gibbs
==============================================
TCS Instructional Group - Programmer/Analyst 1
  Cory | Po | Danube | Volga | Parker | Torus
==============================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506040138.SAA03471>