Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2015 17:20:26 -0700
From:      Possnfiffer <possnfiffer@snowboard.com>
To:        Russell Haley <russ.haley@gmail.com>
Cc:        Louis NOMINE <lnomine@sii.fr>, freebsd-doc@freebsd.org
Subject:   Re: Dynamic Kernel Linker compilation issues
Message-ID:  <CAHAPrjBU8VBAVBtgtcYLzKMgZZT8YD04AyD5Q-HdbarUF2seug@mail.gmail.com>
In-Reply-To: <CABx9NuQ-YhORFu8Z%2B5hhWOvjKfEBJf9Z5HyK_vv1ASGAxAmW0A@mail.gmail.com>
References:  <1670418152.5783766.1450276354056.JavaMail.zimbra@toulouse.sii.fr> <CABx9NuQ-YhORFu8Z%2B5hhWOvjKfEBJf9Z5HyK_vv1ASGAxAmW0A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Also, I'm sure you'll find this useful to read through to get a better
understanding of your system. http://www.bsdnow.tv/tutorials/stable-current

On Wed, Dec 16, 2015 at 10:15 AM, Russell Haley <russ.haley@gmail.com>
wrote:

> 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-mai=
l.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 ju=
st
> have to grab a coffee and sit down and read the handbook (which isn't a b=
ad
> 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 usin=
g
> > 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
> do
> > 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"
> _______________________________________________
> 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?CAHAPrjBU8VBAVBtgtcYLzKMgZZT8YD04AyD5Q-HdbarUF2seug>