From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 10 20:26:53 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 E225F16A418 for ; Fri, 10 Aug 2007 20:26:53 +0000 (UTC) (envelope-from yrao@force10networks.com) Received: from mx.force10networks.com (corp.force10networks.com [64.186.164.204]) by mx1.freebsd.org (Postfix) with ESMTP id C58F913C4D0 for ; Fri, 10 Aug 2007 20:26:53 +0000 (UTC) (envelope-from yrao@force10networks.com) Received: from mx.force10networks.com ([10.11.0.216]) by mx.force10networks.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 10 Aug 2007 13:27:28 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 10 Aug 2007 13:27:25 -0700 Message-ID: <9E2742C54E161041A53F36F9A8DC31BE324966@EXCH-CLUSTER-04.force10networks.com> In-Reply-To: <20070810195212.GA3672@eos.sc1.parodius.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: kldload issue: "Exec format error" with amd64 FreeBSD Thread-Index: AcfbiAeFU7WWkytFSwGjYW4vok+H6AABFdIA References: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> <20070810195212.GA3672@eos.sc1.parodius.com> From: "Yong Rao" To: "Jeremy Chadwick" X-OriginalArrivalTime: 10 Aug 2007 20:27:28.0061 (UTC) FILETIME=[DEA506D0:01C7DB8C] 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:26:54 -0000 Hi Jeremy, Thanks for your email. I checked the kernel configuration file we used. I noticed that the options COMPAT_IA32 was included in that file.=20 Thanks, Yong Rao MTS Force10 Networks Inc. San Jose, CA 95134 www.force10networks.com -----Original Message----- From: Jeremy Chadwick [mailto:koitsu@FreeBSD.org]=20 Sent: Friday, August 10, 2007 12:52 PM To: Yong Rao Cc: freebsd-amd64@FreeBSD.org Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD 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 >=20 > kldload: Unsupported file type > kldload: unexpected relocation type 7 > link_elf: symbol strcpy undefined >=20 > 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=3Dtrue in make.conf being used or not. options COMPAT_IA32 # Compatible with i386 binaries --=20 | 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 |