From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 30 06:10:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB79A106566B for ; Mon, 30 Nov 2009 06:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6DCC18FC18 for ; Mon, 30 Nov 2009 06:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAU6A1v3051102 for ; Mon, 30 Nov 2009 06:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAU6A17o051101; Mon, 30 Nov 2009 06:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 30 Nov 2009 06:10:01 GMT Resent-Message-Id: <200911300610.nAU6A17o051101@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Scot Hetzel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 839AA106568D for ; Mon, 30 Nov 2009 06:01:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 369548FC0A for ; Mon, 30 Nov 2009 06:01:42 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nAU61flv021293 for ; Mon, 30 Nov 2009 06:01:41 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nAU61fJg021292; Mon, 30 Nov 2009 06:01:41 GMT (envelope-from nobody) Message-Id: <200911300601.nAU61fJg021292@www.freebsd.org> Date: Mon, 30 Nov 2009 06:01:41 GMT From: Scot Hetzel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/141013: [patch] emulators/virtualbox: Fix kernel module loading for vboxnetadp.ko X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2009 06:10:01 -0000 >Number: 141013 >Category: ports >Synopsis: [patch] emulators/virtualbox: Fix kernel module loading for vboxnetadp.ko >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 30 06:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Scot Hetzel >Release: 8.0-Stable >Organization: >Environment: FreeBSD dv8t01 8.0-STABLE FreeBSD 8.0-STABLE #3: Sun Nov 29 21:36:10 CST 2009 root@dv8t01:/usr/obj/usr/src/8.0-REL/sys/GENERIC amd64 >Description: Currently, when loading the vboxnetadp kernel module, you first need to load the vboxnetflt kernel module. When vboxnetadp is loaded first, it produces this error message: dv8t01# kldload vboxnetadp kldload: can't load vboxnetadp: Exec format error The problem is that vboxnetadp.ko expects to find a kernel module named ng_vboxnetflt.ko in the modules path, but no such module exists. There are 2 ways to fix this problem: 1. rename vboxnetflt.ko to ng_vboxnetflt.ko in the KMODDIR 2. Patch src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c to change the MODULE_DEPEND to use vboxnetflt instead of ng_vboxnetflt >How-To-Repeat: install virtualbox, and then kldload vboxnetadp >Fix: The attached patch changes the vboxnetadp.ko to depend on vboxnetflt.ko instead of ng_vboxnetflt.ko. Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/virtualbox/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- Makefile 6 Nov 2009 14:17:06 -0000 1.12 +++ Makefile 30 Nov 2009 05:37:26 -0000 @@ -7,7 +7,7 @@ PORTNAME= virtualbox DISTVERSION= 3.0.51r22902 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= emulators kld MASTER_SITES= http://tmp.chruetertee.ch/ \ http://freebsd.unixfreunde.de/sources/ \ Index: files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c =================================================================== RCS file: files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c diff -N files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c 30 Nov 2009 05:40:36 -0000 @@ -0,0 +1,11 @@ +--- src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c.orig 2009-09-09 14:21:32.000000000 -0500 ++++ src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c 2009-11-29 23:38:21.215714962 -0600 +@@ -92,7 +92,7 @@ + DECLARE_MODULE(vboxnetadp, g_VBoxNetAdpFreeBSDModule, SI_SUB_PSEUDO, SI_ORDER_ANY); + MODULE_VERSION(vboxnetadp, 1); + MODULE_DEPEND(vboxnetadp, vboxdrv, 1, 1, 1); +-MODULE_DEPEND(vboxnetadp, ng_vboxnetflt, 1, 1, 1); ++MODULE_DEPEND(vboxnetadp, vboxnetflt, 1, 1, 1); + + /** + * Module event handler >Release-Note: >Audit-Trail: >Unformatted: