Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2005 13:48:04 -0800
From:      "Vinod Kashyap" <vkashyap@amcc.com>
To:        freebsd-amd64@freebsd.org, freebsd-stable@freebsd.org
Subject:   undefined reference to `memset'
Message-ID:  <IDTR9T00.LMF@hadar.amcc.com>

next in thread | raw e-mail | index | archive | help

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.




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