Date: Tue, 27 May 2003 10:03:09 +0200 From: Stijn Hoop <stijn@win.tue.nl> To: Anurag Chaudhary <chaudharyanurag@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: undefined symbols in kld Message-ID: <20030527080309.GB5269@pcwin002.win.tue.nl> In-Reply-To: <Law9-F82uOWXLCpaWce00053449@hotmail.com> References: <Law9-F82uOWXLCpaWce00053449@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--8GpibOaaTibBMecb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 27, 2003 at 01:12:36PM +0530, Anurag Chaudhary wrote: > ok i got that. > but why it's not linking my code to the kernel static library. > do i need to pass some option in makefile or something else. > I havn't seen such problems in linux. > Actually I am porting a device driver from linux to freebsd 5.0 > I can not arrange the book @ this instant because freebsd is alsmost not= =20 > used in India and rarely are found its books. Note that not all libc functions are in that library; most notably, I can't find references to the functions you mentioned. Although I'm not a kernel programmer myself, I did find out the following by grepping the sources: - you might want to try tsleep(9) instead of usleep(). I don't know whether there is a function that specifically uses some set time value. - there is a memcpy() prototype in sys/systm.h, although I cannot find the implementation in /usr/src/sys, strangely enough. - memset() is apparently a macro defined in <sys/libkern.h>. I suggest judicious use of grep -r <symbol> /usr/src/sys, if you run into more undefined symbol errors. HTH, --Stijn --=20 My server has more fans than Britney. -- Steve Warwick, from a posting at questions@freebsd.org --8GpibOaaTibBMecb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+0xu9Y3r/tLQmfWcRAo+BAJ4w6utpUU+yVnIkwIuKDzuX9q5AFACfWVA7 DcraU6NjV2Tx0+gAm+JMQmI= =Xjlc -----END PGP SIGNATURE----- --8GpibOaaTibBMecb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030527080309.GB5269>