From owner-freebsd-emulation@FreeBSD.ORG Sun Jul 10 01:41:42 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B998D16A41C for ; Sun, 10 Jul 2005 01:41:42 +0000 (GMT) (envelope-from andy@spadger.best.vwh.net) Received: from rwcrmhc12.comcast.net (rwcrmhc14.comcast.net [216.148.227.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 899DB43D45 for ; Sun, 10 Jul 2005 01:41:42 +0000 (GMT) (envelope-from andy@spadger.best.vwh.net) Received: from spadger.best.vwh.net (c-24-16-37-100.hsd1.wa.comcast.net[24.16.37.100]) by comcast.net (rwcrmhc14) with ESMTP id <2005071001414101400idrl4e>; Sun, 10 Jul 2005 01:41:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spadger.best.vwh.net (Postfix) with ESMTP id AF0C8899 for ; Sat, 9 Jul 2005 18:41:39 -0700 (PDT) X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: emulation@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 09 Jul 2005 18:41:39 -0700 From: Andy Sparrow Message-Id: <20050710014139.AF0C8899@spadger.best.vwh.net> Cc: Subject: VMWare questions/issues? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 10 Jul 2005 01:41:42 -0000 Hi, Has anyone else noticed the following, or is it just me? I recently re-installed VMWare2 and it broke. VMware 2 needs the vmware-any-any-update patch to avoid the AIO VMWare panic loop. However, after patching the VMWare binary with the latest vmware-any-any-update92, it complains to the effect that "0 is less than the required minimum of 32MB for host memory"... Going into the Configuration Editor indeed shows zero bytes host memory detected. Not good. Patching out the MEM-related function calls from the patch1142() function in update.c, re-installing and using the patched patch installer seems to fix the immediate problem - all host memory is detected. However, things are still not right. Sometimes VMware starts up perfectly and runs for hours with no issues; most times, powering up the VM causes an instant hard lock of the machine with the hard drive light locked on solid. I don't recall the older vmware-any-any-update patch doing this, but can only find v92 now. Any ideas as to what else might in the patch set might be incompatible/unnecesary with linux_base-8-8.0.6? There's really not a lot of debugging available - no log entries anywhere, can't break to kernel debugger, nothing. Also, what's the trick to getting networking functional with VMWare3? Neither bridged nor host-only mode seems to work for me - packets go out, but nothing ever comes back in - the exact same setup/inputs to the port works as expected/as it always did with VMWare2... This is all recent UP 4.11-STABLE with linux_base-8-8.0_6. Any help appreciated - this sucks greatly, I paid full-price for VMWare and it's pretty much been bullet-proof for years. I wish OpenOffice cut it for me, but it doesn't. If a send-pr would be helpful, I'd be happy to oblige. Cheers, Andy From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 11 11:01:58 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 423D116A41C for ; Mon, 11 Jul 2005 11:01:58 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E18043D5E for ; Mon, 11 Jul 2005 11:01:57 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6BB1uEH011269 for ; Mon, 11 Jul 2005 11:01:56 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6BB1uqq011263 for emulation@freebsd.org; Mon, 11 Jul 2005 11:01:56 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 11 Jul 2005 11:01:56 GMT Message-Id: <200507111101.j6BB1uqq011263@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 11 Jul 2005 11:01:58 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/22] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i p [2002/04/16] kern/37161 emulation ext2 linux file system, error handling la o [2002/11/07] kern/45023 emulation flexlm does not run with linux-base-7, st o [2003/09/24] kern/57192 emulation linux-ibm-java1.4 freeze o [2004/06/20] kern/68131 emulation java/linux-ibm-jdk14: linux ibm jdk 1.4.1 o [2005/01/25] ports/76644 emulation FreeBSD 5.3 will freeze or crash when run o [2005/02/19] i386/77710 emulation Linux page fault sigcontext information i o [2005/05/05] ports/80679 emulation emulators/linux_base-8: Use ${MACHINE_ARC o [2005/05/09] ports/80837 emulation x11-toolkits/linux-gtk: cannot install by o [2005/05/12] ports/80926 emulation running $PREFIX/etc/rc.d/vmware.sh return o [2005/06/06] kern/81951 emulation [patch] linux emulation: getpriority() re 13 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1999/04/16] i386/11165 emulation IBCS2 don't work correctly with PID_MAX 9 o [2000/12/15] kern/23561 emulation Linux compatibility mode does not support o [2001/08/14] kern/29698 emulation linux ipcs doesn'work o [2002/06/12] kern/39201 emulation ptrace(2) and rfork(RFLINUXTHPN) confuse o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator s [2002/09/06] kern/42466 emulation linux: 'ipc' typ=258 not implemented p [2003/01/22] kern/47349 emulation Fake a sound ioctl (plus linux hook) o [2003/08/21] kern/55835 emulation Linux IPC emulation missing SETALL syscal o [2004/10/19] ports/72865 emulation emulators/vmware3 crashes on 5.3-STABLE o [2004/10/20] kern/72920 emulation linux emulation : path "prefixing" is not o [2004/10/26] kern/73165 emulation [patch] getting rid of COMPAT_43 dependan o [2004/11/10] kern/73777 emulation [patch] linux emulation: root dir special o [2005/03/19] ports/79009 emulation [patch] Some linux ports are incorrectly o [2005/04/07] ports/79655 emulation linux_base-8 fails to install as non-root 15 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 11 18:07:58 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1CC516A41C for ; Mon, 11 Jul 2005 18:07:58 +0000 (GMT) (envelope-from JimBodkins@yahoo.com) Received: from smtp110.mail.sc5.yahoo.com (smtp110.mail.sc5.yahoo.com [66.163.170.8]) by mx1.FreeBSD.org (Postfix) with SMTP id 88B2243D45 for ; Mon, 11 Jul 2005 18:07:58 +0000 (GMT) (envelope-from JimBodkins@yahoo.com) Received: (qmail 86211 invoked from network); 11 Jul 2005 18:07:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:Disposition-Notification-To:X-MimeOLE; b=CAGh1FMrG1S0nA3+ovYMgHd4ewfb7MrUcH4LysOKlEAZnz1IHR8Y2uFT/3+enOMUlL4Dx9EDEvKWk21St5NQhh/XQf6dIraWmXG13QdEJN7VPGxbSh3YK5mLEDGGRQ+QT+r2dOgAjVcx1XNYURHAVnE1TA1eMHGD9FcUrph3fuE= ; Received: from unknown (HELO HomePC) (jimbodkins@68.63.189.183 with login) by smtp110.mail.sc5.yahoo.com with SMTP; 11 Jul 2005 18:07:58 -0000 Message-ID: <000701c58643$71f3a190$6401a8c0@HomePC> From: "Jim Bodkikns \(Dakotacom\)" To: Date: Mon, 11 Jul 2005 11:07:47 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Linking linux libs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 11 Jul 2005 18:07:59 -0000 A linux emulation question. I suspect I know the answer to this, but what about linking to vendor supplied linux libs? (A vendor product that is provided in the form of libraries that are linked into your apps). From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 11 18:32:43 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BAE016A41C for ; Mon, 11 Jul 2005 18:32:43 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6E7D43D49 for ; Mon, 11 Jul 2005 18:32:42 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j6BIWfCJ088933; Mon, 11 Jul 2005 13:32:41 -0500 (CDT) (envelope-from dan) Date: Mon, 11 Jul 2005 13:32:41 -0500 From: Dan Nelson To: "Jim Bodkikns (Dakotacom)" Message-ID: <20050711183241.GH5116@dan.emsphone.com> References: <000701c58643$71f3a190$6401a8c0@HomePC> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c58643$71f3a190$6401a8c0@HomePC> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: freebsd-emulation@freebsd.org Subject: Re: Linking linux libs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 11 Jul 2005 18:32:43 -0000 In the last episode (Jul 11), Jim Bodkikns (Dakotacom) said: > A linux emulation question. > > I suspect I know the answer to this, but what about linking to > vendor supplied linux libs? (A vendor product that is provided in the > form of libraries that are linked into your apps). As long as you compile and link using linux gcc and ld to generate a Linux executable, it'll work. Don't try and link a Linux library into a FreeBSD executable, though, unless the ABI is very simple. For example, a standalone crypto module that takes a buffer and a key would probably work; anything that tries to do any stdio or call libc functions that pass structures won't. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-emulation@FreeBSD.ORG Tue Jul 12 06:33:03 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5420616A41C for ; Tue, 12 Jul 2005 06:33:03 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBF9C43D53 for ; Tue, 12 Jul 2005 06:33:02 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.51 (FreeBSD)) id 1Ds5LS-0000RR-Hq; Tue, 12 Jul 2005 00:57:42 +0400 From: Vladimir Grebenschikov To: Dan Nelson In-Reply-To: <20050711183241.GH5116@dan.emsphone.com> References: <000701c58643$71f3a190$6401a8c0@HomePC> <20050711183241.GH5116@dan.emsphone.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Tue, 12 Jul 2005 00:57:41 +0400 Message-Id: <1121115461.1043.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-emulation@freebsd.org Subject: Re: Linking linux libs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 06:33:03 -0000 =F7 =D0=CE, 11/07/2005 =D7 13:32 -0500, Dan Nelson =D0=C9=DB=C5=D4: > In the last episode (Jul 11), Jim Bodkikns (Dakotacom) said: > > A linux emulation question. > >=20 > > I suspect I know the answer to this, but what about linking to > > vendor supplied linux libs? (A vendor product that is provided in the > > form of libraries that are linked into your apps). >=20 > As long as you compile and link using linux gcc and ld to generate a > Linux executable, it'll work. Don't try and link a Linux library into > a FreeBSD executable, though, unless the ABI is very simple. For > example, a standalone crypto module that takes a buffer and a key would > probably work; anything that tries to do any stdio or call libc > functions that pass structures won't. I have know examples of more complex magic on linking big database linux static library into FreeBSD applications, but it was like black magic with lot of libc compatibility hacks. --=20 Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-emulation@FreeBSD.ORG Tue Jul 12 10:04:14 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.ORG Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F19B16A41C for ; Tue, 12 Jul 2005 10:04:14 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEC6043D45 for ; Tue, 12 Jul 2005 10:04:13 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (gxwfwn@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id j6CA4AQK066705 for ; Tue, 12 Jul 2005 12:04:11 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id j6CA4AhN066704; Tue, 12 Jul 2005 12:04:10 +0200 (CEST) (envelope-from olli) Date: Tue, 12 Jul 2005 12:04:10 +0200 (CEST) Message-Id: <200507121004.j6CA4AhN066704@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG In-Reply-To: <20050711183241.GH5116@dan.emsphone.com> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Linking linux libs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 10:04:14 -0000 Dan Nelson wrote: > Jim Bodkikns (Dakotacom) said: > > I suspect I know the answer to this, but what about linking to > > vendor supplied linux libs? (A vendor product that is provided in the > > form of libraries that are linked into your apps). > > As long as you compile and link using linux gcc and ld to generate a > Linux executable, it'll work. Don't try and link a Linux library into > a FreeBSD executable, though, unless the ABI is very simple. For > example, a standalone crypto module that takes a buffer and a key would > probably work; anything that tries to do any stdio or call libc > functions that pass structures won't. Another possibility is to write a small linux binary (call it a wrapper or a stub), which performs the actual calls to the linux library, and let your real FreeBSD application communicate with that linux stub via one of the well-known interprocess communication mechanisms (socket I/O, pipes, shared memory, signals, SysV messages, whatever). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich From owner-freebsd-emulation@FreeBSD.ORG Tue Jul 12 11:10:16 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F12116A422 for ; Tue, 12 Jul 2005 11:10:14 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96E3843DD6 for ; Tue, 12 Jul 2005 11:09:36 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd18.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1DsIdp-0007sk-00; Tue, 12 Jul 2005 13:09:33 +0200 Received: from Andro-Beta.Leidinger.net (VsIdwwZ6Yet16zVo9UOotUrJsG+8L2hxCpS9dpA4rqv1NQshlipKge@[84.165.198.196]) by fwd18.sul.t-online.de with esmtp id 1DsIdX-1CE6Vs0; Tue, 12 Jul 2005 13:09:15 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j6CB9BAp087691; Tue, 12 Jul 2005 13:09:11 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Tue, 12 Jul 2005 13:09:10 +0200 From: Alexander Leidinger To: vova@fbsd.ru Message-ID: <20050712130910.13936e1d@Magellan.Leidinger.net> In-Reply-To: <1121115461.1043.3.camel@localhost> References: <000701c58643$71f3a190$6401a8c0@HomePC> <20050711183241.GH5116@dan.emsphone.com> <1121115461.1043.3.camel@localhost> X-Mailer: Sylpheed-Claws 1.9.11 (GTK+ 2.6.8; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-ID: VsIdwwZ6Yet16zVo9UOotUrJsG+8L2hxCpS9dpA4rqv1NQshlipKge@t-dialin.net X-TOI-MSGID: 78a13130-a502-4849-bdd4-653e77af71bd Cc: freebsd-emulation@freebsd.org Subject: Re: Linking linux libs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 12 Jul 2005 11:10:16 -0000 On Tue, 12 Jul 2005 00:57:41 +0400 Vladimir Grebenschikov wrote: > __ ____, 11/07/2005 __ 13:32 -0500, Dan Nelson __________: > > In the last episode (Jul 11), Jim Bodkikns (Dakotacom) said: > > > A linux emulation question. > > >=20 > > > I suspect I know the answer to this, but what about linking to > > > vendor supplied linux libs? (A vendor product that is provided in the > > > form of libraries that are linked into your apps). > >=20 > > As long as you compile and link using linux gcc and ld to generate a > > Linux executable, it'll work. Don't try and link a Linux library into > > a FreeBSD executable, though, unless the ABI is very simple. For > > example, a standalone crypto module that takes a buffer and a key would > > probably work; anything that tries to do any stdio or call libc > > functions that pass structures won't. >=20 > I have know examples of more complex magic on linking big database linux > static library into FreeBSD applications, but it was like black magic > with lot of libc compatibility hacks. www/linuxpluginwrapper does something like this. It does it at run- time, not at (static-)link-time. You can also do a little bit of magic (like renaming symbols) with the proprietary object code, like in the lang/icc port. For short: you "just" have to provide the missing symbols at link-time. Bye, Alexander. --=20 Secret hacker rule #11: hackers read manuals. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint =3D C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7