Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 20:20:42 +0000
From:      David O'Brien <obrien@FreeBSD.ORG>
To:        Vinod Kashyap <vkashyap@amcc.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: undefined reference to `memset'
Message-ID:  <20050324202042.GA8469@hub.freebsd.org>
In-Reply-To: <20050324070516.GA43123@cirb503493.alcatel.com.au>
References:  <IDTR9T00.LMF@hadar.amcc.com> <20050324070516.GA43123@cirb503493.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



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