Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 08:52: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:  <20030527065208.GA5269@pcwin002.win.tue.nl>
In-Reply-To: <Law9-F92fPefLJGWSa10004f3eb@hotmail.com>
References:  <Law9-F92fPefLJGWSa10004f3eb@hotmail.com>

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

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 27, 2003 at 12:13:01PM +0530, Anurag Chaudhary wrote:
> I hav made a kld. but it is not loading saying no such file or directory.
> I traced down the problem and found that symbols usleep, memset, memcpy=
=20
> etc. which are part of libc and also declared in /usr/src/include directo=
ry.
> someone please tell me how to link in these functions. urgent help is=20
> required

Well you can't just use libc functions in kernel space -- this is a
basic premise of kernel programming. Some of the standard libc functions
are 'emulated' as you will in the kernel internal static library, sources
of which are found in /usr/src/sys/libkern. Might I suggest you read up
on kernel programming a bit, for example by reading Kirk McKusick's 4.4BSD
Internals book?

--Stijn

--=20
Remember, kids: "Q" is always followed by "U". You can learn more on the
Internet in the Spelling FAQU.
		-- James "Kibo" Parry

--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+0wsYY3r/tLQmfWcRAsgDAKCZ5xNVUxankrE7iPfa2PYZ/1LtkACeLWzD
0vHqaX71sgyOZk0SHuqlYsk=
=U6d9
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--



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