Date: Tue, 27 May 2003 13:12:36 +0530 From: "Anurag Chaudhary" <chaudharyanurag@hotmail.com> To: stijn@win.tue.nl Cc: freebsd-questions@freebsd.org Subject: undefined symbols in kld Message-ID: <Law9-F82uOWXLCpaWce00053449@hotmail.com>
next in thread | raw e-mail | index | archive | help
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 used in India and rarely are found its books. thanx Anurag >From: Stijn Hoop <stijn@win.tue.nl> >To: Anurag Chaudhary <chaudharyanurag@hotmail.com> >CC: freebsd-questions@freebsd.org >Subject: Re: undefined symbols in kld >Date: Tue, 27 May 2003 08:52:09 +0200 > >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 > > etc. which are part of libc and also declared in /usr/src/include >directory. > > someone please tell me how to link in these functions. urgent help is > > 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 > >-- >Remember, kids: "Q" is always followed by "U". You can learn more on the >Internet in the Spelling FAQU. > -- James "Kibo" Parry ><< attach3 >> _________________________________________________________________ Race along with NK. The fastest Indian http://server1.msn.co.in/sp03/tataracing/index.asp Feel the thrill!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Law9-F82uOWXLCpaWce00053449>
