Date: Wed, 16 Dec 2015 09:15:40 -0800 From: Russell Haley <russ.haley@gmail.com> To: Louis NOMINE <lnomine@sii.fr> Cc: freebsd-doc@freebsd.org Subject: Re: Dynamic Kernel Linker compilation issues Message-ID: <CABx9NuQ-YhORFu8Z%2B5hhWOvjKfEBJf9Z5HyK_vv1ASGAxAmW0A@mail.gmail.com> In-Reply-To: <1670418152.5783766.1450276354056.JavaMail.zimbra@toulouse.sii.fr> References: <1670418152.5783766.1450276354056.JavaMail.zimbra@toulouse.sii.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi There, This is just my personal opinion, but I find these kinds of questions are better answered on the forums or in one of the mailing lists available at https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources-mail.= html. Searching information like this out can be frustrating, you will wind up doing the dance of google, manpages (https://www.freebsd.org/cgi/man.cgi) and the handbooks (https://www.freebsd.org/docs.html). disclaimer: I'm only a little further ahead than you are, but I worked through this problem too. Anyway, your project will need to link to kernel source (as stated in the error) to build your pseudo (sudo?) driver. You will need to fetch the source code using subversion. This is in the handbook but it's a little scattered: https://www.freebsd.org/doc/handbook/updating-upgrading.html https://www.freebsd.org/doc/handbook/svn.html https://www.freebsd.org/doc/handbook/kernelconfig.html Again, the dance goes: 1) google: "Build freebsd from source". If nothing found: go to 2. 2) Search the FreeBSD website. The search isn't great so sometimes you just have to grab a coffee and sit down and read the handbook (which isn't a bad thing really). 3) Then manpages for specifics about each command. Good luck, Russ On Wed, Dec 16, 2015 at 6:32 AM, Louis NOMINE <lnomine@sii.fr> wrote: > Hi, > > I'm currently working on a project where I need to create a PCI device > driver that can work on freeBSD. In order to learn how o do so I'm using > the doccuentation I've found on your website ( > https://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbas= ics-kld.html > ) > > I have created both files (source code and the makefile). when I try to d= o > a make operation I get the following error : > > make: "/usr/share/mk/bsd.kmod.mk" line 12: Unable to locate the kernel > source tree. Set SYSDIR to override. > > I'm using PCBSD 10 and I don't know how to solve my problem. > > Do you know how to help me ? > > Thanks in advance, > > Regards, > > Louis Nomin=C3=A9 > > > _______________________________________________ > freebsd-doc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-doc > To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABx9NuQ-YhORFu8Z%2B5hhWOvjKfEBJf9Z5HyK_vv1ASGAxAmW0A>