Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2000 20:55:42 +0900 (JST)
From:      Kentaro Inagaki / =?iso-2022-jp?B?GyRCMHAzQBsoQiAbJEI3ckJATzobKEI=?= <inagaki@tg.rim.or.jp>
To:        ports@FreeBSD.org
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: Exec format error: vmware2-2.0.476 and -CURRENT
Message-ID:  <20000511.205542.07639705.inagaki@tg.rim.or.jp>
In-Reply-To: <86bt2d5snj.wl@waterblue.imgsrc.co.jp>
References:  <391955FC.4DCAC51E@whetstonelogic.com> <86bt2d5snj.wl@waterblue.imgsrc.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
----Next_Part(Thu_May_11_20:55:42_2000_213)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi.

Date: Thu, 11 May 2000 18:43:12 +0900
Message-ID: <86bt2d5snj.wl@waterblue.imgsrc.co.jp>

> > patrick:root# /usr/local/etc/rc.d/vmware.sh start
> > kldload: can't load /usr/local/lib/vmware/lib/modules/vmmon_up.ko: Exec
> > format error
> > kldload: can't load /usr/local/lib/vmware/lib/modules/vmnet.ko: Exec
> > format error
> 
> I have same message, too.
> 
> My box is installworld'ed today and vmware2 port is re-installed.
> Why?

Please try to test the following patches.

I reported it to maintainer.
----
Kentaro Inagaki
ZOB Station BBS (TELNET: zmm.zob.ne.jp) zob23368(zob13052)/seraph

----Next_Part(Thu_May_11_20:55:42_2000_213)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="vmware2.patch"

diff -ruNx CVS /usr/ports/emulators/vmware2/Makefile vmware2/Makefile
--- /usr/ports/emulators/vmware2/Makefile	Sun Apr 30 13:01:20 2000
+++ vmware2/Makefile	Tue May  2 00:19:19 2000
@@ -59,6 +59,8 @@
 		VMNET_NETMASK="${VMNET_NETMASK}"
 MAKE_ARGS=	KMODDIR="${VMDIR}/lib/modules"
 
+post-extract:
+	${RM} -rf ${WRKSRC}/vmmon-only/linux
 post-patch:
 	${CP} ${FILESDIR}/Makefile ${WRKSRC}
 	${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile
diff -ruNx CVS /usr/ports/emulators/vmware2/patches/patch-aa vmware2/patches/patch-aa
--- /usr/ports/emulators/vmware2/patches/patch-aa	Thu Jan  1 09:00:00 1970
+++ vmware2/patches/patch-aa	Tue May  2 00:08:58 2000
@@ -0,0 +1,11 @@
+--- vmmon-only/Makefile.FreeBSD.orig	Mon Jan 24 07:29:11 2000
++++ vmmon-only/Makefile.FreeBSD	Tue May  2 00:03:04 2000
+@@ -39,6 +39,8 @@
+ CDEV_MAJOR =	200
+ SRCS=		
+ 
++KMODDEPS=	linux
++
+ INCLUDE = -I$(.CURDIR)/include -I$(.CURDIR)/common -I$(.CURDIR)/freebsd -I$(.CURDIR)/export/include -I/sys
+ 
+ CFLAGS+=${INCLUDE} -DCDEV_MAJOR_=${CDEV_MAJOR} ${SMP_FLAGS}
diff -ruNx CVS /usr/ports/emulators/vmware2/patches/patch-ab vmware2/patches/patch-ab
--- /usr/ports/emulators/vmware2/patches/patch-ab	Thu Jan  1 09:00:00 1970
+++ vmware2/patches/patch-ab	Tue May  2 00:09:17 2000
@@ -0,0 +1,19 @@
+--- vmmon-only/freebsd/driver.c.orig	Mon Jan 24 07:29:19 2000
++++ vmmon-only/freebsd/driver.c	Tue May  2 00:07:43 2000
+@@ -291,7 +291,16 @@
+     return(err);
+ }
+ /* Now declare the module to the system */
++static moduledata_t vmmon_mod = {
++  "vmmon",
++  vmmon_modeevent,
++  0
++};
++DECLARE_MODULE(vmmon, vmmon_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
++MODULE_DEPEND(vmmon, linux, 1, 1, 1);
++/* old style
+ DEV_MODULE(vmmon, vmmon_modeevent, 0);
++*/
+ 
+ /*
+  *----------------------------------------------------------------------
diff -ruNx CVS /usr/ports/emulators/vmware2/patches/patch-ba vmware2/patches/patch-ba
--- /usr/ports/emulators/vmware2/patches/patch-ba	Thu Jan  1 09:00:00 1970
+++ vmware2/patches/patch-ba	Tue May  2 00:12:26 2000
@@ -0,0 +1,10 @@
+--- vmnet-only/freebsd/Makefile.orig	Sun Jan 23 04:30:50 2000
++++ vmnet-only/freebsd/Makefile	Tue May  2 00:10:20 2000
+@@ -34,6 +34,7 @@
+ IFNET?=		192.168.254
+ IFADDR?=	${IFNET}.1
+ 
++KMODDEPS=	linux
+ 
+ INCLUDE = -I${.CURDIR} -I${SYS}
+ 
diff -ruNx CVS /usr/ports/emulators/vmware2/patches/patch-bb vmware2/patches/patch-bb
--- /usr/ports/emulators/vmware2/patches/patch-bb	Thu Jan  1 09:00:00 1970
+++ vmware2/patches/patch-bb	Tue May  2 00:12:40 2000
@@ -0,0 +1,20 @@
+--- vmnet-only/freebsd/vmnet.c.orig	Mon Jan 24 07:29:50 2000
++++ vmnet-only/freebsd/vmnet.c	Tue May  2 00:11:53 2000
+@@ -116,8 +116,16 @@
+  * Now declare the module to the system. 
+  * IMPORTANT: Must be before netgraph node declaration.
+  */
++static moduledata_t vmnet_mod = {
++  "vmnet",
++  vmnet_modeevent,
++  0
++};
++DECLARE_MODULE(vmnet, vmnet_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
++MODULE_DEPEND(vmnet, linux, 1, 1, 1);
++/* old style
+ DEV_MODULE(vmnet, vmnet_modeevent, 0);
+-
++*/
+ 
+ static int vmnet_ifioctl(struct ifnet *, u_long, caddr_t);
+ static void vmnet_ifstart(struct ifnet *);

----Next_Part(Thu_May_11_20:55:42_2000_213)----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000511.205542.07639705.inagaki>