From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 10 20:09:25 2007 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 326E416A418 for ; Fri, 10 Aug 2007 20:09:25 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 201A613C478 for ; Fri, 10 Aug 2007 20:09:24 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 121811CC02B; Fri, 10 Aug 2007 12:52:12 -0700 (PDT) Date: Fri, 10 Aug 2007 12:52:12 -0700 From: Jeremy Chadwick To: Yong Rao Message-ID: <20070810195212.GA3672@eos.sc1.parodius.com> Mail-Followup-To: Yong Rao , freebsd-amd64@freebsd.org References: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-amd64@freebsd.org Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 20:09:25 -0000 On Fri, Aug 10, 2007 at 12:37:56PM -0700, Yong Rao wrote: > The compiling passed without any problem. But while I do kldload the > module, we got problem. > kldload: can't load ./pnicdrv.ko: Exec format error > > kldload: Unsupported file type > kldload: unexpected relocation type 7 > link_elf: symbol strcpy undefined > > What the problem is? I've seen this happen on RELENG_6 amd64 (in other modules) when COMPAT_IA32 is missing from the kernel config. Taken from my own amd64 box: # Needed for accf_http.ko for sure. May be other stuff that needs this too. # We need this regardless of NO_LIB32=true in make.conf being used or not. options COMPAT_IA32 # Compatible with i386 binaries -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |