Date: Fri, 10 Aug 2007 12:52:12 -0700 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Yong Rao <yrao@force10networks.com> Cc: freebsd-amd64@freebsd.org Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD Message-ID: <20070810195212.GA3672@eos.sc1.parodius.com> In-Reply-To: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> References: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070810195212.GA3672>