From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 16:38:16 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EA7D1065670; Thu, 5 Apr 2012 16:38:16 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id C912B8FC0A; Thu, 5 Apr 2012 16:38:15 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q35GdFO0043980; Thu, 5 Apr 2012 11:39:15 -0500 (CDT) Date: Thu, 5 Apr 2012 11:39:15 -0500 (CDT) From: Robert Bonomi Message-Id: <201204051639.q35GdFO0043980@mail.r-bonomi.com> To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org, saeedeh.motlagh@gmail.com In-Reply-To: Cc: Subject: Re: what is the path of kernel build directory? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2012 16:38:16 -0000 saeedeh motlagh wrote: > > hello guys > i want to install the openvswitch 1.4.0 from a linux package. the below > command should be executed: > ./configure --with-linux=/lib/modules/'uname -r '/build > this is a linux command and i should execute the FreeBSD equivalent but i > don't know how to do that. the manual says: > > To build the Linux kernel module, so that you can run the > kernel-based switch, pass the location of the kernel build > directory on --with-linux. > > what is kernel build directory in FreeBSD9 amd64? or how i should execute > this command? If you have to ask, you should *NOT* attempt to build this kernel module on FreeBSD. The kernel, kernel interfaes, etc. are *DIFFERENT* between Linux and FreeBSD. signficicant sourte-code changes will VERY PROBABLY be require to get the module to (a) compile, and (b) run, in a FreeBSD environment. To do _that_ -- modifying the sources -- 'where the build directory is' is a very _minor_ incidental piece of knowlege. If you don't have that incidental knowledge, is is virtually certain, you don't have the skill set to do the required source modifications. Executive summary -- this is a DDT issue. DDT ==> on't o hat!!