From owner-freebsd-amd64@FreeBSD.ORG Thu Mar 24 20:20:42 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 664) id E207416A4CF; Thu, 24 Mar 2005 20:20:42 +0000 (GMT) Date: Thu, 24 Mar 2005 20:20:42 +0000 From: David O'Brien To: Vinod Kashyap Message-ID: <20050324202042.GA8469@hub.freebsd.org> References: <20050324070516.GA43123@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050324070516.GA43123@cirb503493.alcatel.com.au> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.11-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-amd64@freebsd.org Subject: Re: undefined reference to `memset' X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 20:20:43 -0000 On Thu, Mar 24, 2005 at 06:05:17PM +1100, Peter Jeremy wrote: > On Wed, 2005-Mar-23 13:48:04 -0800, Vinod Kashyap wrote: > >If any kernel module has the following, or a similar line in it: > >----- > >char x[100] = {0}; > >----- > >building of the GENERIC kernel on FreeBSD 5 -STABLE for amd64 > >as of 03/19/05, fails with the following message at the time of linking: > >"undefined reference to `memset'". > > > >The same problem is not seen on i386. > > > >The problem goes away if the above line is changed to: > >----- > >char x[100]; > >memset(x, 0, 100); > >----- > > Can you post a complete (compilable) example please. Vinod can you please post a complete compilable example? It is impossible to get anything done about your issue without stand alone test code. -- -- David (obrien@FreeBSD.org)