From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 14 07:14:53 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BD64BD59 for ; Mon, 14 Jan 2013 07:14:53 +0000 (UTC) (envelope-from lehis2000@mail.ru) Received: from fallback5.mail.ru (fallback5.mail.ru [94.100.176.59]) by mx1.freebsd.org (Postfix) with ESMTP id 40AEF7A0 for ; Mon, 14 Jan 2013 07:14:53 +0000 (UTC) Received: from smtp39.i.mail.ru (smtp39.i.mail.ru [94.100.177.99]) by fallback5.mail.ru (mPOP.Fallback_MX) with ESMTP id 3FA8FCC01C94 for ; Mon, 14 Jan 2013 11:14:51 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=K9hLGeoZX8xjP5RznafQUhJncqkdYEEZx0MPuMyS3TA=; b=XYyE2VeOMhePds0W+FIPuF1LXivFiqdvrhtf6f6tQXHvQOO1Bve3IG3QDy4qjK4wU26uAWfwO1RmRDLiK4XunEiySSNnAIghpKzdehtQGzqd9rCktnJL/HzIwYc1r2bo; Received: from [91.217.137.251] (port=6089 helo=work-book.lehis.ru) by smtp39.i.mail.ru with esmtpa (envelope-from ) id 1TueFn-0004Y2-LI; Mon, 14 Jan 2013 11:14:43 +0400 Message-ID: <50F3B06B.1080700@mail.ru> Date: Mon, 14 Jan 2013 11:14:51 +0400 From: "Alexey V. Panfilov" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Re: Can't load vboxnetflt.ko after update virtualbox to 4.2.6 References: <50EE63A4.9030509@mail.ru> <50EEF943.2020507@mail.ru> In-Reply-To: <50EEF943.2020507@mail.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: Ok X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2013 07:14:53 -0000 10.01.2013 21:24, Alexey V. Panfilov wrote: > 10.01.2013 17:14, Rusty Nejdl wrote: >> On 2013-01-10 00:45, Alexey V. Panfilov wrote: >>> Hi. >>> >>> After update virtualbox from 4.1.22 to 4.2.6 vboxnetflt module can't >>> load: >>> >>> [work-book]# /usr/local/etc/rc.d/vboxnet start >>> /usr/local/etc/rc.d/vboxnet: WARNING: Can't load vboxnetflt module. >>> >>> And /var/log/messages contains >>> >>> Jan 10 10:36:06 work-book kernel: link_elf: symbol ng_free_item undefined >>> >>> >>> With 4.1.22 all works fine. >>> >>> Some additional info: >>> >>> FreeBSD work-book.lehis.ru 8.3-STABLE FreeBSD 8.3-STABLE #4: Thu Nov 8 >>> 14:38:26 MSK 2012 >>> root@work-book.lehis.ru:/usr/obj/usr/src/sys/BOOK-8-STABLE i386 >>> >>> Build options for virtualbox-ose-kmod: >>> >>> ===> The following configuration options are available for >>> virtualbox-ose-kmod-4.2.6: >>> DEBUG=on: Debug symbols, additional logs and assertions >>> VIMAGE=off: VIMAGE virtual networking support >>> >>> Please, say direction for resolve this issue. >>> >>> Thanks. >> >> The general reason this occurs is because of a mismatch of your kernel >> and your kernel module. > > I understood that :) , but how I can detect what was mismatch (what > module should be loaded or compiled within kernel)... > >> Try rebuilding your kernel and rebooting and it >> will likely load as that has worked for me in the past and I did not >> have problems loading this time. > > You're right, man! Something goes wrong on my notebook and it has > unsynced src and binary. > > So, I csup'ed to current, built and install new world and kernel, > rebuilt virtualbox-ose-kmod and now I'm happy - vbox works fine. > > Thanks for show right direction, Rusty! > >> However, I am running on 9.1 amd64 so >> I am on a different platform for you so I haven't tried to duplicate. >> >> Rusty Nejdl > > Story has continued: during upgrade vbox to 4.2.6 on another server I found next strange thing: If virtualbox-ose-kmod built with sets debug option then vboxnetflt.ko loads fine. If debug was unchecked - vboxnetflt.ko can't loads with error "link_elf: symbol ng_free_item undefined" in messages -- Best regards, Alexey V. Panfilov From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 14 11:06:39 2013 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 576DE3EC for ; Mon, 14 Jan 2013 11:06:39 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 31514622 for ; Mon, 14 Jan 2013 11:06:39 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0EB6dWE086225 for ; Mon, 14 Jan 2013 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0EB6cQV086223 for emulation@FreeBSD.org; Mon, 14 Jan 2013 11:06:38 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Jan 2013 11:06:38 GMT Message-Id: <201301141106.r0EB6cQV086223@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Subject: Current problem reports assigned to emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2013 11:06:39 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/175159 emulation www/linux-f10-flashplugin11 is vulnerable 1 problem total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 14 11:06:45 2013 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 828D848B for ; Mon, 14 Jan 2013 11:06:45 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 66BD3637 for ; Mon, 14 Jan 2013 11:06:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0EB6jfS086353 for ; Mon, 14 Jan 2013 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0EB6iPh086351 for freebsd-emulation@FreeBSD.org; Mon, 14 Jan 2013 11:06:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Jan 2013 11:06:44 GMT Message-Id: <201301141106.r0EB6iPh086351@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2013 11:06:45 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/174933 emulation if_nameindex fail in linuxulator enviroment o ports/169988 emulation [PATCH] Update sysutils/linux-procps to 3.2.7; also up o ports/169896 emulation [patch] audio/linux-f10-alsa-lib: use OSS plugin by de o kern/169814 emulation [linux] ptrace is broken in Linux emulation o kern/169805 emulation [linux] utime() syscall does not work in linuxulator o kern/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp a bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux] path "prefixing" is not done on unix domain so o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 34 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 14 11:47:40 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6DC30BBD for ; Mon, 14 Jan 2013 11:47:40 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1.freebsd.org (Postfix) with ESMTP id F36BAB5E for ; Mon, 14 Jan 2013 11:47:39 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id gi11so2872760lbb.33 for ; Mon, 14 Jan 2013 03:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=/D5bOa8/6xThwRBK6CettUqwR0otsCouqbFNHWzvw0w=; b=nlseQfcopTsWuBzNbmeFNSKJvaT21Mn5zE3boa9PxZwx6ZrEPsQ3wtEn5B3ds5gKIy tmN51v4zQcuh4MdvyQQHVteCcnvOshcCEI+ccSV7ph/JrsG75hXkVUn0rzUwR9hsVo2m 2BEsZU8+0U8T7Lm7yD+5sTHCInUgSdSVmTHwXpuxzQHbpPvekysiRxArnZ6+/0bhyWcs gLtfAU5HWpYcDz2CTzQ9OF/RPHsOXwOfF4wuNr0ZXsn3nnxHeTJtIojSo7J8B2otvp9v jQ4rYwn/Gja9NM2I1hrwr5SzU6w2XdbFn74SQyYPVwpmxAJxHVTIUheh2BJ4Tz7JepUA CuOQ== X-Received: by 10.112.16.106 with SMTP id f10mr35061759lbd.1.1358164052792; Mon, 14 Jan 2013 03:47:32 -0800 (PST) Received: from [192.168.1.130] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPS id n7sm5204882lbg.3.2013.01.14.03.47.31 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jan 2013 03:47:32 -0800 (PST) Message-ID: <50F3F052.4060407@gmail.com> Date: Mon, 14 Jan 2013 13:47:30 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 MIME-Version: 1.0 To: freebsd-emulation@FreeBSD.org Subject: vboxnet fails to start fully: VBoxRT.so misses libiconv.so Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2013 11:47:40 -0000 Hi all. On my host vboxnet says when booting: Shared object "libiconv.so.3" not found, required by "VBoxRT.so" This is possibly is because of trying to bring up host-only interfaces with VBoxManage. Maybe this is beacause we try bring them up before network, and network takes place before ldconfig? -- Sphinx of black quartz, judge my vow. From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 15 01:36:17 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B027C9E0; Tue, 15 Jan 2013 01:36:17 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 5826EA40; Tue, 15 Jan 2013 01:36:17 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r0F1aFIA086128; Mon, 14 Jan 2013 18:36:15 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r0F1aFIx086125; Mon, 14 Jan 2013 18:36:15 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 14 Jan 2013 18:36:15 -0700 (MST) From: Warren Block To: =?ISO-8859-15?Q?Bernhard_Fr=F6hlich?= Subject: Re: VirtualBox kernel modules In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="3512871622-1044595091-1358213775=:86014" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 14 Jan 2013 18:36:15 -0700 (MST) Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 01:36:17 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3512871622-1044595091-1358213775=:86014 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 11 Jan 2013, Bernhard Fröhlich wrote: > On Fri, Jan 11, 2013 at 4:19 PM, Brandon Gooch > wrote: >> On Thu, Jan 10, 2013 at 10:31 PM, Warren Block wrote: >> >>> On Thu, 10 Jan 2013, Ryan Stone wrote: >>> >>> As I recall, a make installkernel will first mv /boot/kernel >>>> /boot/kernel.old >>>> >>>> Should ports put modules in /boot/modules to avoid this kind of thing? >>> >>> I thought so, but the Porter's Handbook doesn't say anything about it. >>> multimedia/cuse4bsd-kmod installs a module there. > > I think this is an unwanted side effect. In fact I changed the defintion of > where the kernel module should be installed in virtualbox-ose-kmod/Makefile > from KMODDIR=/boot/modules to KMODDIR?=/boot/modules to allow > overwriting the KMODDIR in case you want to have a non default directory > for your kernel modules (like in a jail). > > I haven't found yet where KMODDIR is set to /boot/kernel but it obviously is > defined somewhere. I'm also not sure if that is really a virtualbox > problem or if > we better should fix that in Mk and set KMODDIR or create a new variable for > ports kernel modules. > > In the meantime overwriting KMODDIR to /boot/modules in your make.conf > should help. Except that if you set KMODDIR=/boot/modules, then all the OS kernel modules are put there also. And building or installing the kernel still wipes out that directory and the Virtualbox modules. --3512871622-1044595091-1358213775=:86014-- From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 15 05:57:19 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 907039F3 for ; Tue, 15 Jan 2013 05:57:19 +0000 (UTC) (envelope-from emul-jfbml@snkmail.com) Received: from sneak2.sneakemail.com (sneak2.sneakemail.com [38.113.6.65]) by mx1.freebsd.org (Postfix) with SMTP id 39F7ABEA for ; Tue, 15 Jan 2013 05:57:19 +0000 (UTC) Received: (qmail 10089 invoked from network); 15 Jan 2013 05:57:08 -0000 Received: from unknown (HELO localhost.localdomain) (192.168.0.1) by sneak2.sneakemail.com with SMTP; 15 Jan 2013 05:57:08 -0000 Received: from 206.168.13.214 by mail.sneakemail.com with SMTP; 15 Jan 2013 05:57:08 -0000 Received: (sneakemail censored 3084-1358229427-578562 #2); 15 Jan 2013 05:57:08 -0000 Received: (sneakemail censored 3084-1358229427-578562 #1); 15 Jan 2013 05:57:08 -0000 Date: Mon, 14 Jan 2013 22:57:03 -0700 (MST) Message-ID: <3084-1358229427-578562@sneakemail.com> From: "John Hein" To: freebsd-emulation@freebsd.org To: Warren Block , , "Bernhard Fr=?utf-8?q?=c3=b6?=hlich" , "Brandon Gooch" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: VirtualBox kernel modules In-Reply-To: References: <12834-1357944221-165573@sneakemail.com> X-Mailer: Perl5 Mail::Internet v X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 05:57:19 -0000 Warren Block wrote at 00:22 -0700 on Jan 12, 2013: > On Fri, 11 Jan 2013, John Hein wrote: > > It's in /usr/share/mk/bsd.own.mk (which is included early by make(1) - > > due to bsd.own.mk inclusion in /usr/shar/mk/bsd.port.mk)... > > > > ..if defined(MODULES_WITH_WORLD) > > KMODDIR?= /boot/modules > > ..else > > KMODDIR?= /boot/kernel > > ..endif > > > > And from make.conf(5) ... > > > > MODULES_WITH_WORLD > > (bool) Set to build modules with the system instead of the > > kernel. > > > > Not the best named knob for the KMODDIR adjustment. > > The explanation makes no sense to me. It doesn't really mean build, > it's a choice of where the new modules will be installed. > > MODULES_WITH_WORLD > (bool) Set to install modules in the /boot/modules directory. > Unset to install modules in the /boot/kernel directory along > with the FreeBSD kernel. > > It really should be inverted and the variable named MODULES_WITH_KERNEL. Well, that's not the only place it's used (see the rest of my email). But, yes, the name (and explanation) are misleading if you are considering installation location. The current usage of that knob is used to determine _when_ the modules are built as much as where they go (that's probably why the comment uses 'build'). Using it for ports builds probably isn't right since it was invented to be used during buildworld/buildkernel/install*. Ports really wants to have its own default KMODDIR, but it's made difficult since its current default value defined so early... putting a default 'KMODDIR?= /boot/modules' at the top of bsd.port.mk is too late. Using .undef KMODDIR in b.p.m. seems hacky, but it [mostly] works without having to resort to using knobs intended for the buildworld system (and avoids having to set it globally in /etc/make.conf which would affect buildworld/kernel). It also allows command line or environment override. Index: bsd.port.mk =================================================================== --- bsd.port.mk (revision 310372) +++ bsd.port.mk (working copy) @@ -1140,6 +1140,8 @@ # by individual Makefiles or local system make configuration. PORTSDIR?= /usr/ports LOCALBASE?= /usr/local +.undef KMODDIR +KMODDIR?= /boot/modules LINUXBASE?= /compat/linux DISTDIR?= ${PORTSDIR}/distfiles _DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} However, it prevents the user from being able to define it in /etc/make.conf if he wanted to. That's bad for POLA. This patch to bsd.own.mk would work in all the above cases and allow all but a few individual ports to stop defining KMODDIR... --- /usr/share/mk/bsd.own.mk.orig 2012-05-04 09:03:42.000000000 -0600 +++ /usr/share/mk/bsd.own.mk 2013-01-14 22:43:37.000000000 -0700 @@ -126,7 +126,7 @@ BINMODE?= 555 NOBINMODE?= 444 -.if defined(MODULES_WITH_WORLD) +.if defined(BSDPORTMK) || defined(MODULES_WITH_WORLD) KMODDIR?= /boot/modules .else KMODDIR?= /boot/kernel From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 15 06:36:57 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 83A5D75A; Tue, 15 Jan 2013 06:36:57 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx1.freebsd.org (Postfix) with ESMTP id BADDEF02; Tue, 15 Jan 2013 06:36:56 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hq4so1940709wib.14 for ; Mon, 14 Jan 2013 22:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; bh=plOg10JuOyR5Y9IXYw8wSMTQWHzyVov7OG799HnjZHQ=; b=fwID/imHk1QYzI5tN3I0lxroKGnrFt5KhuZ1Abe4myUZ4/CbtBolQzLvdNtJ1LIWXs EwwVLOvJriGu0UOAZ3LH+1Doxmf9lFsariSUL6dNB1v6qTyWfZWq39FoNDIGohQsphTO 11JsA2/X1vOQavQ5ByG8fW1+CjV6QMZn7+/lvvAiGaz3fD/L1yXNylUsnnxAM8gP7uN3 4A8Ik8rktDtS2f/3takASSimSkU+4KqQZx81QsDhWT7wkYVUy4c8h3h2OpeLL50TjZGM /vnADnIgknLm9RCpYEDDS0tgBzE7fFk074thbwRbqBF00EsPsZzEMBua4q1HIu43UFUz tnPg== X-Received: by 10.180.90.106 with SMTP id bv10mr1529243wib.12.1358231809864; Mon, 14 Jan 2013 22:36:49 -0800 (PST) Received: from dragon.dg (41-135-148-131.dsl.mweb.co.za. [41.135.148.131]) by mx.google.com with ESMTPS id g2sm2222159wiy.0.2013.01.14.22.36.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 14 Jan 2013 22:36:48 -0800 (PST) From: David Naylor To: freebsd-emulation@freebsd.org, freebsd-questions@freebsd.org Subject: Wine-fbsd64 updated to 1.5.21 (32bit Wine for 64bit FreeBSD) Date: Tue, 15 Jan 2013 08:36:33 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.9.1; amd64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1501262.ZeeYvjAjy2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201301150836.40046.naylor.b.david@gmail.com> X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 06:36:57 -0000 --nextPart1501262.ZeeYvjAjy2 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Packages [1] for wine-fbsd64-1.5.21 have been uploaded to mediafire [2]. T= he=20 packages for FreeBSD 10 use the pkgng [3] format. =20 Please read the installation messages, if you use the nVidia graphics drive= r,=20 for further information. =20 =46AQ =2D-- Q: Wine crashing when launching some 3D programs (aka games) A: This appears to be some clash with software however I have not been able= to=20 isolate where the problem is occurring (wine, ports, world, kernel, i386,=20 amd64). A possible solution in to try upgrading, or downgrading, software= =20 used however I have not been able to fix the problem with my attempts. If = you=20 find a solution please email me, or post the solution on the mailing list. Q: wine: failed to initialize: / usr/local/lib32/wine/ntdll.dll.so: Undefin= ed symbol "_ThreadRuneLocale" A: This problem is specific to FreeBSD-9.0, please either stick with=20 wine-1.5.10 or update to a newer version of FreeBSD (-STABLE or 9.1). =20 Apologies for the inconvenience. =20 Q: Creating pkgng packages for FreeBSD-9 A: When there is no demand for FreeBSD-8 packages I'll create additional pk= gng=20 packages for FreeBSD-9. Since it is possible to install the existing pkg=20 packages in a pkgng environment (which I do) this is not a high priority. = =20 Q: Wine doesn't run (properly) with a clang built world A: Clang was compiling i386 on a 16-byte boundary while gcc was using a 4-b= yte=20 boundary. To fix, recompile world after ensuring your sources include=20 http://beta.freshbsd.org/commit/freebsd/r242835 or the relevant MFC. =20 Regards, David [1] MD5 (wine-1.5.x-freebsd8/wine-fbsd64-1.5.21,1.tbz) =3D=20 cfe91a668242a5f8fea5f395adda4e15 MD5 (wine-1.5.x-freebsd9/wine-fbsd64-1.5.21.1.txz) =3D=20 43fbfd9e4882f4098f62c57f15474ed9 MD5 (wine-1.5.x-freebsd10/wine-fbsd64-1.5.21,1.txz) =3D=20 63cca726e420be570485d173e8ce12f5 [2] http://www.mediafire.com/wine_fbsd64 [3] http://wiki.freebsd.org/pkgng --nextPart1501262.ZeeYvjAjy2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEABECAAYFAlD0+PgACgkQUaaFgP9pFrKR1wCfTmudonRrD7/iHbuPmN5+mzW9 sgMAn20uZc5AnzD344YijjOvKiCKg/8v =baAV -----END PGP SIGNATURE----- --nextPart1501262.ZeeYvjAjy2-- From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 15 15:57:31 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 89C8269 for ; Tue, 15 Jan 2013 15:57:31 +0000 (UTC) (envelope-from soeren.schroeder@gmail.com) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx1.freebsd.org (Postfix) with ESMTP id 3A8871CD for ; Tue, 15 Jan 2013 15:57:30 +0000 (UTC) Received: by mail-vb0-f47.google.com with SMTP id e21so262536vbm.20 for ; Tue, 15 Jan 2013 07:57:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type:content-transfer-encoding; bh=j2leVPut8gdcydZ87RZKy3LzXa2XX+P62XgVZZmVha0=; b=Jvvl6Nh7U3XHU0n0g7VoAZ3hLX9dcPBblCrUjLAC9Apdg7QSFFIKqNDJBbw/KCxCkP BYWRkphmYyH1LiZ5WhJeCxvY/YMKXZtxboEnb+TWIe91vVF5ch8ZV5nbNNUpWyTgMsNP cki5xTCvVmEUnF/tAsgGdux27u5LWyuUV0BdA5KP7o6DP2YQ+LMoBKz22y6OfG3zb/t+ zArjYwtk1484D4O5xRowGnmqZgHP70c6Bm817FHgtAvFRAlrEjsyOgRp2Ctdk0svyOTt cvmaGwDEoKIAqt9qe0NfJ5bf/aM7zXmNPreM3uDrzNdgAHJz0pN63fM2Inyg+8scXNDH VQBw== MIME-Version: 1.0 Received: by 10.52.98.73 with SMTP id eg9mr91578321vdb.18.1358265450381; Tue, 15 Jan 2013 07:57:30 -0800 (PST) Sender: soeren.schroeder@gmail.com Received: by 10.58.49.199 with HTTP; Tue, 15 Jan 2013 07:57:30 -0800 (PST) Date: Tue, 15 Jan 2013 16:57:30 +0100 X-Google-Sender-Auth: srIGTk2JCvAneh5QVkl_IJp7WFM Message-ID: Subject: VNC in virtualbox-ose-4.2.6 From: =?ISO-8859-1?Q?S=F8ren_Schr=F8der?= To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sch@chaos.dk List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 15:57:31 -0000 Greetings. I have been using Virtualbox for headless servers for some time and is very pleased with it. Since I run the servers headless, I use VNC for console on the servers. I'm running virtualbox-ose-4.1.18 on 9.0-RELEASE amd64, and I start my servers with /usr/local/bin/VBoxHeadless --startvm someserver --vnc --vncport 5901 --vncpass=3Dsomepass Im now building a new box, and installed 4.2.6 on 9.1-RELEASE amd64 I've made my first guest, via the X11 GUI, and it works. But I cannot get VNC running in headless. I installed from ports, and enabled VNC option [root@foo /var/db/ports/virtualbox-ose]# cat options # This file is auto-generated by 'make config'. # Options for virtualbox-ose-4.2.6 _OPTIONS_READ=3Dvirtualbox-ose-4.2.6 _FILE_COMPLETE_OPTIONS_LIST=3DDBUS DEBUG GUESTADDITIONS NLS PULSEAUDIO QT4 UDPTUNNEL VDE VNC WEBSERVICE X11 OPTIONS_FILE_SET+=3DDBUS OPTIONS_FILE_UNSET+=3DDEBUG OPTIONS_FILE_UNSET+=3DGUESTADDITIONS OPTIONS_FILE_SET+=3DNLS OPTIONS_FILE_UNSET+=3DPULSEAUDIO OPTIONS_FILE_SET+=3DQT4 OPTIONS_FILE_SET+=3DUDPTUNNEL OPTIONS_FILE_SET+=3DVDE OPTIONS_FILE_SET+=3DVNC OPTIONS_FILE_SET+=3DWEBSERVICE OPTIONS_FILE_SET+=3DX11 /usr/local/bin/VBoxHeadless --startvm someserver --vnc --vncport 5901 --vncpass=3Dsomepass Oracle VM VirtualBox Headless Interface 4.2.6_OSE (C) 2008-2013 Oracle Corporation All rights reserved. VBoxHeadless: error: Unknown option: '--vnc' Usage: -s, -startvm, --startvm Start given VM (required argument) -v, -vrde, --vrde on|off|config Enable (default) or disable the VR= DE server or don't change the setting -e, -vrdeproperty, --vrdeproperty Set a VRDE property: "TCP/Ports" - comma-separated list of ports the VRDE server can bind to. Use a dash between two port numbers to specify a rang= e "TCP/Address" - interface IP the VRDE server will bind to --settingspw Specify the settings password --settingspwfile Specify a file containing the settings password -c, -capture, --capture Record the VM screen output to a f= ile -w, --width Frame width when recording -h, --height Frame height when recording -r, --bitrate Recording bit rate when recording -f, --filename File name when recording. The codec used will be chosen based on the file extension it seems VNC is now in "extpacks", and it seems like its "usable" VBoxManage list extpacks Password: Extension Packs: 1 Pack no. 0: VNC Version: 4.2.6_OSE Revision: 82870 Edition: Description: VNC plugin module VRDE Module: VBoxVNC Usable: true Why unusable: but I cannot figure how to make console via VNC in 4.2 Any pointers ? -- S=F8ren Schr=F8der. Obey Gravity - It's the law ! From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 15 16:06:39 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 510554CA for ; Tue, 15 Jan 2013 16:06:39 +0000 (UTC) (envelope-from edho@myconan.net) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id AD426270 for ; Tue, 15 Jan 2013 16:06:38 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id hn14so283267wib.3 for ; Tue, 15 Jan 2013 08:06:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=myconan.net; s=myconan; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=d+2jxOmNl97dcIwtLcD8HOIC0GNjJdU3+pjezBE+68E=; b=IJgTOIA1MPWnKUV8b1Y90R4JvUtLfxwuI5U0zQBHQrD24C/eNgfHM1TiN9lgnjr+FP rKI/trRAR0409Q9wdG03kbYHcx5QFu+h9DooTUazv3tOvNYMI0xkbpw7sSEQIj5JEhbu T19LLZLq2aq2PBE62pbKd0k/4xasrGl5KoICM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=d+2jxOmNl97dcIwtLcD8HOIC0GNjJdU3+pjezBE+68E=; b=U3rXA4R3cFvo9lNyY8GMXhz5OUp5f0sXRJDqe+YFUKPFlUepX5QehB2/by3R/NGlOu iQDz3TQ12gr12e7k+AjhVX2YbFpyRZpR2iclTs35Fa1t7ZUOnKAly9eK0PKS4fPfQgqv Sk6wapvYXW8gJDmrsoVVTqZd92jlV/aj0LhxziLEuHpAmX+MxOMibl54A3fuWG1WO9hd ZVextEH5htl6T3vNY8dbNj+ygtjB3smJMrbQ8x0wwA7bfw5mkSSWdMTGZ9I+gaZF3jad xVnIR1pR5PeAuUJ6Qu17Hy7J4+rwOr5AYbgHSbwyD+WOF+fhRZ7A7rQ47jgM7JUAhrHF GquQ== X-Received: by 10.180.86.36 with SMTP id m4mr4624334wiz.5.1358265997271; Tue, 15 Jan 2013 08:06:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.167.70 with HTTP; Tue, 15 Jan 2013 08:06:07 -0800 (PST) In-Reply-To: References: From: Edho Arief Date: Tue, 15 Jan 2013 23:06:07 +0700 Message-ID: Subject: Re: VNC in virtualbox-ose-4.2.6 To: sch@chaos.dk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmO8e4NcRfshbdXejYZu/UTDHGmJKyzXvmwckXaavsOz7Cv8cQANeSrbcPs13eeOSQ8glBn Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 16:06:39 -0000 On Tue, Jan 15, 2013 at 10:57 PM, S=C3=B8ren Schr=C3=B8der w= rote: > > VBoxManage list extpacks > Password: > Extension Packs: 1 > Pack no. 0: VNC > Version: 4.2.6_OSE > Revision: 82870 > Edition: > Description: VNC plugin module > VRDE Module: VBoxVNC > Usable: true > Why unusable: > > but I cannot figure how to make console via VNC in 4.2 > > Any pointers ? > This also costed me few hours googling and few recompiles to find this: https://forums.virtualbox.org/viewtopic.php?f=3D31&t=3D50085 and this http://lists.freebsd.org/pipermail/freebsd-ports/2012-September/07= 8427.html From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 15 23:29:35 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A4BC0354 for ; Tue, 15 Jan 2013 23:29:35 +0000 (UTC) (envelope-from soeren.schroeder@gmail.com) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx1.freebsd.org (Postfix) with ESMTP id 63FD225A for ; Tue, 15 Jan 2013 23:29:35 +0000 (UTC) Received: by mail-vc0-f176.google.com with SMTP id fo13so731271vcb.7 for ; Tue, 15 Jan 2013 15:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BiAd1cRmUKYGYn8484vELtuPzoODcLNOUWXDoTsNojY=; b=S0fuJ6aMDZ8q9UwcV0jBPBkxG34NsjFmaj4QEfpaxioFM1TSRDXHGbRdW6oGrgrCkO mUl+P83nMqlsc7VZTWDlw5NuFBRvftsC8FQBU5uemhAf4pOISDQZcrLjCZXBtvBK8wHB A/hLWibglxsajW3f0Y9iuU0sncKWE2ZEqhxmHinse4HJ5Owbiku33VCKI3n3BixqDHm6 CtngVLh5+F772pAbwJwGeQnnd+3gHF5M5IC5s514MqmYax7YfT4kGhq8I80GG+3y9ych aIazWXBpgVnNEoPtHRI9+/M72mN8Jn8NsvHbB5gncWCXfgqZMLDJVWlzedBwIYQfkn5M cccQ== MIME-Version: 1.0 Received: by 10.220.156.193 with SMTP id y1mr28685309vcw.56.1358292568884; Tue, 15 Jan 2013 15:29:28 -0800 (PST) Sender: soeren.schroeder@gmail.com Received: by 10.58.49.199 with HTTP; Tue, 15 Jan 2013 15:29:28 -0800 (PST) In-Reply-To: References: Date: Wed, 16 Jan 2013 00:29:28 +0100 X-Google-Sender-Auth: fXdgx4Xz8fET_hgiMWBU6cSlTwM Message-ID: Subject: Re: VNC in virtualbox-ose-4.2.6 From: =?ISO-8859-1?Q?S=F8ren_Schr=F8der?= To: Edho Arief Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sch@chaos.dk List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 23:29:35 -0000 On Tue, Jan 15, 2013 at 5:06 PM, Edho Arief wrote: > > This also costed me few hours googling and few recompiles to find this: > > https://forums.virtualbox.org/viewtopic.php?f=3D31&t=3D50085 > > and this http://lists.freebsd.org/pipermail/freebsd-ports/2012-September/= 078427.html Thanks for these excelent pointers. Just what I needed. A small recap for future googlers VNC implementation is changed from 4.1 to 4.2. No more --vnc option in 4.2. to enable VNC in 4.2, stil check the VNC option in "make config" before building the port, and then do (for a vm called test1): VBoxManage setproperty vrdeextpack VNC VBoxManage modifyvm test1 --vrdeproperty VNCPassword=3Dsomepass VBoxManage modifyvm test1 --vrdeauthlibrary null VBoxManage modifyvm test1 --vrdeport 5901 VBoxHeadless --startvm test1 if moving from a 4.1 installation and using the rc.conf way of starting vms, remove the "--vnc --vncport 5901 --vncpass=3Dsomepass" from vboxheadless_test1_flags getting rid of the --vncpass option was nice. Everyone with access to ps could see the password. Now the cleartext password is stored in the test1.vbox control file (with -rw------- rights) some google bait: FreeBSD Virtualbox 4.2 VNC howto enable vnc console headl= ess --=20 S=F8ren Schr=F8der. Obey Gravity - It's the law ! From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 17 12:47:29 2013 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2B08EF05 for ; Thu, 17 Jan 2013 12:47:29 +0000 (UTC) (envelope-from kaltheat@zoho.com) Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.95]) by mx1.freebsd.org (Postfix) with ESMTP id 02439AA8 for ; Thu, 17 Jan 2013 12:47:28 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:message-id:subject:mime-version:content-type:user-agent:sender; b=pILhh4KJrt7dm3ahzlyU0omWbAtjON/Bw4oOmCfe8Ote9kOyaydJOXUawKQNgQgd0w1uNlfZ5Pvq 0wL9n9UhLXHMCPsxI6JnffDWRMgvPSWNnFd+2zwMFYOKhUlOIB+l Received: from mail.zoho.com by mx.zohomail.com with SMTP id 135842684232560.815269574354716; Thu, 17 Jan 2013 04:47:22 -0800 (PST) Received: from [86.103.156.32] by mail.zoho.com with HTTP;Thu, 17 Jan 2013 04:47:22 -0800 (PST) Date: Thu, 17 Jan 2013 13:47:22 +0100 From: kaltheat To: Message-ID: <1538765501.70966.1358426842277.JavaMail.sas1@[172.29.249.242]> Subject: VirtualBox kernel modules location MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Sender: kaltheat@zoho.com X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 12:47:29 -0000 Hi, is there a reason why VirtualBox kernel modules are located in /boot/kernel/ and not in /boot/modules/ ? I installed a custom kernel into a different directory than /boot/kernel using KODIR and after it worked I removed old kernel directory and placed the new one to /boot/kernel. And some days later I wondered why I can't load VirtualBox kernel modules ... It's no big deal, but it revealed above question. Regards, kaltheat From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 17 12:48:59 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 98331FAC for ; Thu, 17 Jan 2013 12:48:59 +0000 (UTC) (envelope-from kaltheat@zoho.com) Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.95]) by mx1.freebsd.org (Postfix) with ESMTP id 838F5AC1 for ; Thu, 17 Jan 2013 12:48:59 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent:sender; b=Vj6p8K2JtfJ/3VvZPfjOGEdR4iroFxbG8GE19U1GwMcGff492OFVVW1kBFS96NO/QBiE19PRvQNY B0Ofn8Cc4unLS65CBpcbGAVg3HPSmvZFlLb0eVIFU3oHqG90cRT9 Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1358426939322467.24860377771483; Thu, 17 Jan 2013 04:48:59 -0800 (PST) Received: from [86.103.156.32] by mail.zoho.com with HTTP;Thu, 17 Jan 2013 04:48:59 -0800 (PST) Date: Thu, 17 Jan 2013 13:48:59 +0100 From: kaltheat To: Message-ID: <238176590.71361.1358426939273.JavaMail.sas1@[172.29.249.242]> In-Reply-To: <1538765501.70966.1358426842277.JavaMail.sas1@[172.29.249.242]> References: <1538765501.70966.1358426842277.JavaMail.sas1@[172.29.249.242]> Subject: Re: VirtualBox kernel modules location MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Sender: kaltheat@zoho.com X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 12:48:59 -0000 ---- On Thu, 17 Jan 2013 13:47:22 +0100 kaltheat wrote ---- > > > Hi, > > is there a reason why VirtualBox kernel modules are located in /boot/kernel/ and not in /boot/modules/ ? > > I installed a custom kernel into a different directory than /boot/kernel using KODIR and after it worked I removed old kernel directory and placed the new one to /boot/kernel. And some days later I wondered why I can't load VirtualBox kernel modules ... It's no big deal, but it revealed above question. > > Regards, > kaltheat > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" > Sorry for the noise, at this moment I'm seeing that there is a discussion going on dealing with this topic ... From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 18 15:28:30 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 635EBB50; Fri, 18 Jan 2013 15:28:30 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (lrosenman-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3ad::2]) by mx1.freebsd.org (Postfix) with ESMTP id 19E05FD3; Fri, 18 Jan 2013 15:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=xeBTeOUYjd3wEfxbYiuV5wf9fCAwc7CoG6pxgLGyiHQ=; b=jlvWyhXvGckM0UUf8xL8Vy4LYaU2qf5NVAGqRM4WpWlygF27nCMc4u/pawRooGiNwxD1XXWD+8H2G7+C8pw4fO93E9L41ETWtDAeAHnWuEvaOzFlD99+pzMXiJ7VmZUMJbbPB3r3AsxeovTd25qffiSeF5ZsVBZ2Fy2Xr92Iq5I=; Received: from localhost.lerctr.org ([127.0.0.1]:40876 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpa (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1TwDro-0000oB-OP; Fri, 18 Jan 2013 09:28:29 -0600 Received: from [32.97.110.60] by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Fri, 18 Jan 2013 09:28:28 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Jan 2013 09:28:28 -0600 From: Larry Rosenman To: Andriy Gapon Subject: Re: My panic in amd64/pmap In-Reply-To: <6f1d46304fbcc6e32f51109f6ab4c60d@webmail.lerctr.org> References: <38def6b37be1a3128fb1b64595e9044e@webmail.lerctr.org> <50F95964.6060706@FreeBSD.org> <6f1d46304fbcc6e32f51109f6ab4c60d@webmail.lerctr.org> Message-ID: X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/0.8.4 X-Spam-Score: -2.9 (--) X-LERCTR-Spam-Score: -2.9 (--) X-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001 X-LERCTR-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001 Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, freebsd-amd64@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2013 15:28:30 -0000 On 2013-01-18 09:09, Larry Rosenman wrote: > On 2013-01-18 08:17, Andriy Gapon wrote: >> on 17/01/2013 21:50 Larry Rosenman said the following: >>> I've now seen this panic: >>> pmap_insert_pt_page: pindex already inserted >>> >>> on 9.1-RELEASE, 9.1-STABLE, and 10.0-CURRENT >>> >>> I've got vmcore's from the 9.1-STABLE and 10.0-CURRENT VM's >>> available >>> as well as sources. >>> >>> I have the core.txt.* files available at: >>> http://www.lerctr.org/~ler/core.txt.0 (10.0) >>> http://www.lerctr.org/~ler/core.txt.2 (9.1-S) >>> >>> I'm not sure what other debug info you need. >>> >>> I can provide SSH access to both VM's as well as the host. >>> >>> These are all in VirtualBox 4.2.6 VM's >>> >>> Any help would be appreciated. >> >> Hmm, I wonder if VirtualBox is hitting the same popcnt bug that was >> fixed in qemu... >> >> Could you please try a patch from here >> >> http://thread.gmane.org/gmane.comp.emulators.qemu/174532/focus=174567 >> ? >> >> It should be applied to src/recompiler/target-i386/translate.c, make >> sure that it >> goes to a section marked as 'case 0x1b8: /* SSE4.2 popcnt */'. > > Should this be on the host or the guest? Never mind, it's in VirtualBox itself. The line is at ~~line 8020 in the same file. I've patched it and am recompiling VirtualBox. If I don't see the panic for a few days, I'll submit a PR. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 18 23:20:23 2013 Return-Path: Delivered-To: emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3B8E1159; Fri, 18 Jan 2013 23:20:23 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 1808CD6B; Fri, 18 Jan 2013 23:20:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0INKMlp046626; Fri, 18 Jan 2013 23:20:22 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0INKMYk046622; Fri, 18 Jan 2013 23:20:22 GMT (envelope-from edwin) Date: Fri, 18 Jan 2013 23:20:22 GMT Message-Id: <201301182320.r0INKMYk046622@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, emulation@FreeBSD.org From: edwin@FreeBSD.org Subject: Re: ports/175422: www/linux-f10-flashplugin11: update to 11.2r202.261 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2013 23:20:23 -0000 Synopsis: www/linux-f10-flashplugin11: update to 11.2r202.261 Responsible-Changed-From-To: freebsd-ports-bugs->emulation Responsible-Changed-By: edwin Responsible-Changed-When: Fri Jan 18 23:20:22 UTC 2013 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=175422 From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 19 04:54:57 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6D8E9F41 for ; Sat, 19 Jan 2013 04:54:57 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 26DD3A3F for ; Sat, 19 Jan 2013 04:54:56 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TwQSP-0008Rz-1Z for freebsd-emulation@freebsd.org; Sat, 19 Jan 2013 05:55:05 +0100 Received: from c-98-227-43-96.hsd1.il.comcast.net ([98.227.43.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Jan 2013 05:55:05 +0100 Received: from ctyz1999 by c-98-227-43-96.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Jan 2013 05:55:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Craig Wiesen Subject: Re: vboxnet fails to start fully: VBoxRT.so misses libiconv.so Date: Sat, 19 Jan 2013 04:50:06 +0000 (UTC) Lines: 43 Message-ID: References: <50F3F052.4060407@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 98.227.43.96 (Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 04:54:57 -0000 Volodymyr Kostyrko gmail.com> writes: > > Hi all. > > On my host vboxnet says when booting: > > Shared object "libiconv.so.3" not found, required by "VBoxRT.so" > > This is possibly is because of trying to bring up host-only interfaces > with VBoxManage. > > Maybe this is beacause we try bring them up before network, and network > takes place before ldconfig? > I ran into this too. Here is a patch I came up with for /usr/ports/emulators/virtualbox-ose-kmod/files/vboxnet.in It moves the /usr/local/etc/rc.d/vboxnet script execution to after networking and ldconfig paths have been set up. (as you thought) Index: vboxnet.in =================================================================== --- vboxnet.in (revision 310569) +++ vboxnet.in (working copy) @@ -4,8 +4,7 @@ # # PROVIDE: vboxnet -# REQUIRE: FILESYSTEMS -# BEFORE: netif +# REQUIRE: FILESYSTEMS NETWORKING ldconfig # KEYWORD: nojail # From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 19 09:36:58 2013 Return-Path: Delivered-To: emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 032DCC49; Sat, 19 Jan 2013 09:36:58 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D00DE273; Sat, 19 Jan 2013 09:36:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0J9avJV072377; Sat, 19 Jan 2013 09:36:57 GMT (envelope-from ehaupt@freefall.freebsd.org) Received: (from ehaupt@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0J9avMF072373; Sat, 19 Jan 2013 10:36:57 +0100 (CET) (envelope-from ehaupt) Date: Sat, 19 Jan 2013 10:36:57 +0100 (CET) Message-Id: <201301190936.r0J9avMF072373@freefall.freebsd.org> To: rene@FreeBSD.org, ehaupt@FreeBSD.org, emulation@FreeBSD.org From: ehaupt@FreeBSD.org Subject: Re: ports/175422: www/linux-f10-flashplugin11: update to 11.2r202.261 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 09:36:58 -0000 Synopsis: www/linux-f10-flashplugin11: update to 11.2r202.261 State-Changed-From-To: open->closed State-Changed-By: ehaupt State-Changed-When: Sat Jan 19 10:36:57 CET 2013 State-Changed-Why: Committed, thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=175422 From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 19 09:40:01 2013 Return-Path: Delivered-To: emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 518B9CA7 for ; Sat, 19 Jan 2013 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 28DEA287 for ; Sat, 19 Jan 2013 09:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0J9e1xB072479 for ; Sat, 19 Jan 2013 09:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0J9e12s072477; Sat, 19 Jan 2013 09:40:01 GMT (envelope-from gnats) Date: Sat, 19 Jan 2013 09:40:01 GMT Message-Id: <201301190940.r0J9e12s072477@freefall.freebsd.org> To: emulation@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: ports/175422: commit references a PR X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 09:40:01 -0000 The following reply was made to PR ports/175422; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/175422: commit references a PR Date: Sat, 19 Jan 2013 09:36:54 +0000 (UTC) Author: ehaupt Date: Sat Jan 19 09:36:46 2013 New Revision: 310639 URL: http://svnweb.freebsd.org/changeset/ports/310639 Log: Update to 11.2r202.261 PR: 175422 Submitted by: rene Modified: head/www/linux-f10-flashplugin11/Makefile head/www/linux-f10-flashplugin11/distinfo Modified: head/www/linux-f10-flashplugin11/Makefile ============================================================================== --- head/www/linux-f10-flashplugin11/Makefile Sat Jan 19 08:28:47 2013 (r310638) +++ head/www/linux-f10-flashplugin11/Makefile Sat Jan 19 09:36:46 2013 (r310639) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= flashplugin -PORTVERSION= 11.2r202.258 +PORTVERSION= 11.2r202.261 CATEGORIES= www multimedia linux MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/pdc/${PORTVERSION:C/r/\./}/:plugin \ LOCAL/nox:suplib Modified: head/www/linux-f10-flashplugin11/distinfo ============================================================================== --- head/www/linux-f10-flashplugin11/distinfo Sat Jan 19 08:28:47 2013 (r310638) +++ head/www/linux-f10-flashplugin11/distinfo Sat Jan 19 09:36:46 2013 (r310639) @@ -1,4 +1,4 @@ -SHA256 (flashplugin/11.2r202.258/install_flash_player_11_linux.i386.tar.gz) = 6c9a0414b1d7be2b8675267e3b699747a75fa85a663a6ecdaeb72cedf4a6b3cc -SIZE (flashplugin/11.2r202.258/install_flash_player_11_linux.i386.tar.gz) = 6917577 -SHA256 (flashplugin/11.2r202.258/linux-f10-flashsupport-9.0.1.i386.tar.gz) = 4a309b1a326bd2212cc72480628659e5a7fd61d9e0572cb7350c206f030955bf -SIZE (flashplugin/11.2r202.258/linux-f10-flashsupport-9.0.1.i386.tar.gz) = 3455 +SHA256 (flashplugin/11.2r202.261/install_flash_player_11_linux.i386.tar.gz) = c66d4a25f9f3c4598b1c1802e862430e3598aa6910aeda220c607483798b67f0 +SIZE (flashplugin/11.2r202.261/install_flash_player_11_linux.i386.tar.gz) = 6917481 +SHA256 (flashplugin/11.2r202.261/linux-f10-flashsupport-9.0.1.i386.tar.gz) = 4a309b1a326bd2212cc72480628659e5a7fd61d9e0572cb7350c206f030955bf +SIZE (flashplugin/11.2r202.261/linux-f10-flashsupport-9.0.1.i386.tar.gz) = 3455 _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 19 16:26:17 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ABF0D614; Sat, 19 Jan 2013 16:26:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 745D02AD; Sat, 19 Jan 2013 16:26:17 +0000 (UTC) Received: from ralph.baldwin.cx (c-68-39-198-164.hsd1.de.comcast.net [68.39.198.164]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D1A8CB918; Sat, 19 Jan 2013 11:26:16 -0500 (EST) From: John Baldwin To: emulation@freebsd.org Subject: [PATCH] Properly handle Linux TCP socket options Date: Sat, 19 Jan 2013 11:26:13 -0500 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201301191126.13257.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Sat, 19 Jan 2013 11:26:16 -0500 (EST) Cc: net@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 16:26:17 -0000 The current setsockopt() wrapper for the Linux ABI claims that Linux and FreeBSD use the same values for TCP socket options. This is true for TCP_NODELAY and TCP_MAXSEG but not for any other options. This patch adds a mapping routine for TCP options similar to that used for other socket option levels. I believe this mapping to be correct in terms of which FreeBSD options have the same semantics as Linux options based on comparing code in the two kernels, but I'm not 100% certain about TCP_MD5SIG since the Linux code that it maps to is not as clear (it calls some function pointer and it is not clear if it is accepting a simple boolean value similar to FreeBSD's). Also, almost all of the socket stuff in the linux.h headers appears to be identical and at least some of it are in MI headers in Linux (such as the TCP options). It seems to me that a lot of that should move into linux_socket.h instead. Index: amd64/linux32/linux.h =================================================================== --- amd64/linux32/linux.h (revision 245225) +++ amd64/linux32/linux.h (working copy) @@ -725,6 +725,13 @@ #define LINUX_IP_ADD_MEMBERSHIP 35 #define LINUX_IP_DROP_MEMBERSHIP 36 +#define LINUX_TCP_NODELAY 1 +#define LINUX_TCP_MAXSEG 2 +#define LINUX_TCP_KEEPIDLE 4 +#define LINUX_TCP_KEEPINTVL 5 +#define LINUX_TCP_KEEPCNT 6 +#define LINUX_TCP_MD5SIG 14 + struct l_sockaddr { l_ushort sa_family; char sa_data[14]; Index: compat/linux/linux_socket.c =================================================================== --- compat/linux/linux_socket.c (revision 245225) +++ compat/linux/linux_socket.c (working copy) @@ -56,6 +56,7 @@ #include #include #include +#include #ifdef INET6 #include #include @@ -326,6 +327,27 @@ } static int +linux_to_bsd_tcp_sockopt(int opt) +{ + + switch (opt) { + case LINUX_TCP_NODELAY: + return (TCP_NODELAY); + case LINUX_TCP_MAXSEG: + return (TCP_MAXSEG); + case LINUX_TCP_KEEPIDLE: + return (TCP_KEEPIDLE); + case LINUX_TCP_KEEPINTVL: + return (TCP_KEEPINTVL); + case LINUX_TCP_KEEPCNT: + return (TCP_KEEPCNT); + case LINUX_TCP_MD5SIG: + return (TCP_MD5SIG); + } + return (-1); +} + +static int linux_to_bsd_msg_flags(int flags) { int ret_flags = 0; @@ -1496,8 +1518,7 @@ name = linux_to_bsd_ip_sockopt(args->optname); break; case IPPROTO_TCP: - /* Linux TCP option values match BSD's */ - name = args->optname; + name = linux_to_bsd_tcp_sockopt(args->optname); break; default: name = -1; Index: i386/linux/linux.h =================================================================== --- i386/linux/linux.h (revision 245225) +++ i386/linux/linux.h (working copy) @@ -701,6 +701,13 @@ #define LINUX_IP_ADD_MEMBERSHIP 35 #define LINUX_IP_DROP_MEMBERSHIP 36 +#define LINUX_TCP_NODELAY 1 +#define LINUX_TCP_MAXSEG 2 +#define LINUX_TCP_KEEPIDLE 4 +#define LINUX_TCP_KEEPINTVL 5 +#define LINUX_TCP_KEEPCNT 6 +#define LINUX_TCP_MD5SIG 14 + struct l_sockaddr { l_ushort sa_family; char sa_data[14]; -- John Baldwin