From owner-freebsd-stable@FreeBSD.ORG Wed Mar 23 21:49:03 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC4D416A4CE; Wed, 23 Mar 2005 21:49:03 +0000 (GMT) Received: from hadar.amcc.com (hadar.amcc.com [192.195.69.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E16443D41; Wed, 23 Mar 2005 21:49:03 +0000 (GMT) (envelope-from vkashyap@amcc.com) Received: from mailhost01.amcc.com ([192.195.69.30]) by hadar.amcc.com (Netscape Messaging Server 4.15) with SMTP id IDTR9T00.LMF; Wed, 23 Mar 2005 13:49:05 -0800 Received: (from vkashyap-pc [10.66.6.61]) by mailhost01.amcc.com (SMSSMTP 4.0.0.59) with SMTP id M2005032313524120160 ; Wed, 23 Mar 2005 13:52:41 -0800 From: "Vinod Kashyap" To: freebsd-amd64@freebsd.org, freebsd-stable@freebsd.org Date: Wed, 23 Mar 2005 13:48:04 -0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 51114 (9.0.6627) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: Subject: undefined reference to `memset' X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 21:49:04 -0000 If any kernel module has the following, or a similar line in it: ----- char x[100] =3D {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); ----- Adding CFLAGS+=3D-fbuiltin, or CFLAGS+=3D-fno-builtin to /sys/conf/Makefile= .amd64 does not help. Anyone knows what's happening? Thanks, Vinod.