From owner-freebsd-questions@FreeBSD.ORG Tue May 27 01:00:36 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B183537B401 for ; Tue, 27 May 2003 01:00:36 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73DC343F85 for ; Tue, 27 May 2003 01:00:35 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.9/8.12.9) with ESMTP id h4R839KX006250; Tue, 27 May 2003 10:03:09 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.9/8.12.9/Submit) id h4R8395R006249; Tue, 27 May 2003 10:03:09 +0200 (CEST) Date: Tue, 27 May 2003 10:03:09 +0200 From: Stijn Hoop To: Anurag Chaudhary Message-ID: <20030527080309.GB5269@pcwin002.win.tue.nl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8GpibOaaTibBMecb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! cc: freebsd-questions@freebsd.org Subject: Re: undefined symbols in kld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 08:00:37 -0000 --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 . I suggest judicious use of grep -r /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--