From owner-freebsd-doc@freebsd.org Wed Dec 16 17:15:41 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 D9E0BA49942 for ; Wed, 16 Dec 2015 17:15:41 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (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 9C0841E44 for ; Wed, 16 Dec 2015 17:15:41 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x233.google.com with SMTP id a189so30209182vkh.2 for ; Wed, 16 Dec 2015 09:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aqTQFqYSv6r4TwvEpceH4zpBaJgToOcjVMHvDUEy/5U=; b=KTb3DZ21iFMV70cHuVfIs3bka7wAKygdJgqAT2UEe0IfrRKI3iT7RsS0xRD0UdLAiR hOQUT0CcsvRY9yJ2sjProBqVmPFqMCIjksTpz/Is9QPay41I8QYGXsgEXVjeY2G0fSOy S+2tBFEQ9f9z7Ijk1TGwe9Kzb/+sd5LeH+DS80vC7mYYkvaXjxLxdSsPPuLaRt2NVn/s NxWcaveXh2SU6hnICUwWX/f4cN7WCMVLD2hRrHSxEIiwtosglPsVAzYdSN1y84IQYTO/ PXXiJmkeKbh5emsbdhl2+oeG8Q/uWYPXEgVN+wTUdQMcun7wAvFocoWq6LzO6028gwX2 W9yg== MIME-Version: 1.0 X-Received: by 10.31.192.12 with SMTP id q12mr35317529vkf.96.1450286140359; Wed, 16 Dec 2015 09:15:40 -0800 (PST) Received: by 10.31.47.137 with HTTP; Wed, 16 Dec 2015 09:15:40 -0800 (PST) In-Reply-To: <1670418152.5783766.1450276354056.JavaMail.zimbra@toulouse.sii.fr> References: <1670418152.5783766.1450276354056.JavaMail.zimbra@toulouse.sii.fr> Date: Wed, 16 Dec 2015 09:15:40 -0800 Message-ID: Subject: Re: Dynamic Kernel Linker compilation issues From: Russell Haley To: Louis NOMINE Cc: 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: Wed, 16 Dec 2015 17:15:41 -0000 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 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"