From owner-freebsd-doc@freebsd.org Thu Dec 17 00:20:27 2015 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2594A49823 for ; Thu, 17 Dec 2015 00:20:27 +0000 (UTC) (envelope-from possnfiffer@snowboard.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9577D1F10 for ; Thu, 17 Dec 2015 00:20:27 +0000 (UTC) (envelope-from possnfiffer@snowboard.com) Received: by mail-ig0-x235.google.com with SMTP id mv3so1853143igc.0 for ; Wed, 16 Dec 2015 16:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowboard-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tT/r6fU9l9r1ohBpM5Ovt2a8RRPWeSBufys7DRkUdzk=; b=M23cDhKZJDU1yyAvtjDINAZGsnTg2VngSqTiWfQPAqwODwFZw8vybz1MuxTnSqZ0Ed 3CPGbsUI9iPuusccyUyeGCifaHk2pYzdVoHQdwXzHGSlxLmUvIMLJ1bQssTBexsJWB01 8kBPperg3zR4u5WqTVJCvGrO2ZHb1qOaMK9Db7Muu4vpd//8Klrm8RFW0bA2xlHAzVIl oACWlGe8Wveu7Dq9Y8a4vR90fkjkwvGGiqUCG+oreBZmED2HORYk3+Cy7YnQXkLDSE7m Tu+RzRlVUjYhnDOr8/eDwiAei72Scawhmc6pYnM9Y+ru20HoJ/zBnnLvInmK81xiRX77 GA1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=tT/r6fU9l9r1ohBpM5Ovt2a8RRPWeSBufys7DRkUdzk=; b=EckV5Q3HHe1RWL5vcX8rGihLUtaTvxkUQzHNz8MbrYz6E/Zvybvu4esqojQgP8rBtR jD6oPlQdZRUUsrVawG69NWgrQT731yps0bO0gZMowMB7aFnlDWELzVlA7DO3NfAdglF7 G8L277nXoThYUK0v2V/0YXFTbDS2+I3Qh8f73kyVGgo3v0MX2v0k3FhPx7D3iQPHf5O2 dZ7I4yFvNARVA6L9MMQq/JhbD9DwBQaUB3KGtIBM2ZB6x1IMOEhk+88cw7g4mbC6yeXl TQdL5U+QAmLaANwZXDYAm8RetTghd8D2yaZZsSpY9pGlzRWZ61aT9N35N41sjzd6fUnJ BGdg== X-Gm-Message-State: ALoCoQnarCk25NHrLw1FDmgoY0SL7VUh871AihAAuv3LOzmhAWm/iu/HfHRi7WNDVgohlS9usejnRYFhP85OSd28zSNcNGMNxA== MIME-Version: 1.0 X-Received: by 10.51.17.39 with SMTP id gb7mr690270igd.54.1450311626280; Wed, 16 Dec 2015 16:20:26 -0800 (PST) Received: by 10.36.204.133 with HTTP; Wed, 16 Dec 2015 16:20:26 -0800 (PST) In-Reply-To: References: <1670418152.5783766.1450276354056.JavaMail.zimbra@toulouse.sii.fr> Date: Wed, 16 Dec 2015 17:20:26 -0700 Message-ID: Subject: Re: Dynamic Kernel Linker compilation issues From: Possnfiffer To: Russell Haley Cc: Louis NOMINE , freebsd-doc@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 00:20:28 -0000 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 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 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" >