From owner-freebsd-emulation Mon Feb 21 0:44:35 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from fwse.teligent.se (gateway.teligent.se [194.17.198.3]) by hub.freebsd.org (Postfix) with SMTP id EAB1837C208 for ; Mon, 21 Feb 2000 00:44:31 -0800 (PST) (envelope-from jakob@teligent.se) Date: Mon, 21 Feb 2000 09:44:29 +0100 (CET) To: freebsd-emulation@freebsd.org Subject: VMware problems MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Message-ID: Reply-To: alvermark@teligent.se From: Jakob Alvermark Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi. I've just installed the port for VMware 2.0 beta.=20 It does not start, I'm getting these lines on the console: Host version 2.2.12.0.0 Cannot load elf section 5 for splash screen. GUIX failed to create splash screen Cannot load elf section 6 for splash screen. Cannot load elf section 8 for splash screen. Cannot load elf section 9 for splash screen. VT: Redirecting kernel output to /dev/tty1 PowerOn GuestOSId =3D 0x5004=20 Monitor controlFlags set to 0x1808d Loading separate monitor And when I click the "Power On" button I get a windows saying "Could not open /usr/local/lib/vmware/lib/vmm (No such file or directory)." I deinstall it and reinstall vmware-1.1.2, I get same message in a window, and on the vmware console I get: ----------- Error: Cannot open vmware executable file. Possibly an installation error? Cannot create splash screen ----------- ----------- Error: Cannot open vmware executable file. Possibly an installation error? Cannot create splash screen ----------- Any ideas what's wrong? TIA, =09Jakob Alvermark ------------------------------------------------------- Teligent AB, P.O. Box 213, S-149 23 Nyn=E4shamn, Sweden =20 Telephone +46-(0)8 520 660 00 * Fax +46-(0)8 520 193 36=20 Direct +46-(0)8 520 660 32=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 1:46:16 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from miles.lambdawerks.org (miles.lambdawerks.org [207.115.75.96]) by hub.freebsd.org (Postfix) with ESMTP id 7182C37B960 for ; Mon, 21 Feb 2000 01:46:14 -0800 (PST) (envelope-from reggie@lambdawerks.org) Received: from trane (trane.lambdawerks.org [207.115.81.170]) by miles.lambdawerks.org (8.9.3/8.9.3) with SMTP id BAA00354 for ; Mon, 21 Feb 2000 01:46:06 -0800 (PST) (envelope-from reggie@lambdawerks.org) From: "Reginald S. Perry" To: Subject: LinuxThreads and SMP? Date: Mon, 21 Feb 2000 01:46:04 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a 4 CPU Digital Prioris ZX that I am playing with. I tried to fire up the IBM JDK 1.1.8 for Linux on -current. It has native threads for linux. It failed, but with this on the console: Feb 21 01:17:10 miles /kernel: linux: modify_ldt needs kernel option USER_LDT So I added that option and then got sigaltstack signals complaining about not enough memory, and this was on the console: Feb 21 01:27:46 miles /kernel: kernel trap 9 with interrrupts disabled Feb 21 01:28:06 miles /kernel: kernel trap 12 with interrupts disabled I got these messages in a nice, tight, loop several hundred times until I did ^C to the process. Has anyone tried this JDK on FreeBSD? -Reggie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 3:22:50 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from beamer.mchh.siemens.de (beamer.mchh.siemens.de [194.138.158.163]) by hub.freebsd.org (Postfix) with ESMTP id 4659D37B7A1 for ; Mon, 21 Feb 2000 03:22:43 -0800 (PST) (envelope-from Michael.Reifenberger.gp@icn.siemens.de) Received: from blues.mchh.siemens.de (mail3.mchh.siemens.de [194.138.158.227] (may be forged)) by beamer.mchh.siemens.de (8.9.3/8.9.3) with ESMTP id MAA26980; Mon, 21 Feb 2000 12:22:06 +0100 (MET) Received: from mchh202e.demchh201e.icn.siemens.de ([218.1.68.105]) by blues.mchh.siemens.de (8.9.1/8.9.1) with ESMTP id MAA27375; Mon, 21 Feb 2000 12:20:08 +0100 (MET) Received: by MCHH202E with Internet Mail Service (5.5.2448.0) id ; Mon, 21 Feb 2000 12:23:14 +0100 Message-ID: <67E0BE167008D31185F60008C7289DA009C19B@mchh218e.demchh201e.oen.siemens.de> From: Reifenberger Michael To: "'Reginald S. Perry'" Cc: "'freebsd-emulation@FreeBSD.ORG'" Subject: AW: LinuxThreads and SMP? Date: Mon, 21 Feb 2000 12:23:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, same try, same results. Bye/2 ------ Michael Reifenberger - IT, UNIX, R/3-Basis Work: Michael.Reifenberger@plaut.de Proj: Michael.Reifenberger.gp@icn.siemens.de Pers: Michael@Reifenberger.com Webspace: http://www.reifenberger.com > -----Urspr=FCngliche Nachricht----- > Von: Reginald S. Perry [SMTP:reggie@lambdawerks.org] > Gesendet am: Montag, 21. Februar 2000 10:46 > An: freebsd-emulation@FreeBSD.ORG > Betreff: LinuxThreads and SMP? >=20 > I have a 4 CPU Digital Prioris ZX that I am playing with. I tried to = fire > up > the IBM JDK 1.1.8 for Linux on -current. It has native threads for = linux. > It > failed, but with this on the console: >=20 > Feb 21 01:17:10 miles /kernel: linux: modify_ldt needs kernel option > USER_LDT >=20 > So I added that option and then got sigaltstack signals complaining = about > not enough memory, and this was on the console: >=20 > Feb 21 01:27:46 miles /kernel: kernel trap 9 with interrrupts = disabled > Feb 21 01:28:06 miles /kernel: kernel trap 12 with interrupts = disabled >=20 > I got these messages in a nice, tight, loop several hundred times = until I > did ^C to the process. >=20 > Has anyone tried this JDK on FreeBSD? >=20 > -Reggie >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 3:30:40 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from gorilla.mchh.siemens.de (gorilla.mchh.siemens.de [194.138.158.18]) by hub.freebsd.org (Postfix) with ESMTP id 73C5937BC2D for ; Mon, 21 Feb 2000 03:30:35 -0800 (PST) (envelope-from Michael.Reifenberger.gp@icn.siemens.de) Received: from blues.mchh.siemens.de (mail3.mchh.siemens.de [194.138.158.227] (may be forged)) by gorilla.mchh.siemens.de (8.9.3/8.9.3) with ESMTP id MAA06518; Mon, 21 Feb 2000 12:29:38 +0100 (MET) Received: from mchh202e.demchh201e.icn.siemens.de ([218.1.68.105]) by blues.mchh.siemens.de (8.9.1/8.9.1) with ESMTP id MAA29450; Mon, 21 Feb 2000 12:27:59 +0100 (MET) Received: by MCHH202E with Internet Mail Service (5.5.2448.0) id ; Mon, 21 Feb 2000 12:31:06 +0100 Message-ID: <67E0BE167008D31185F60008C7289DA009C19C@mchh218e.demchh201e.oen.siemens.de> From: Reifenberger Michael To: "'Reginald S. Perry'" Cc: "'freebsd-emulation@FreeBSD.ORG'" Subject: AW: Problem installing Oracle on FreeBSD-CURRENT Date: Mon, 21 Feb 2000 12:31:03 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, you cant use the native devtools from 6.1 to relink Ora. You have to use the compat-* tools and a Ora-patch for using them for relinking under Linux. This doesn't seem to work under FreeBSD though. Ora uses /usr/i386-glibc.2.0.../bin/as which is a link to wrapper which calls as.real which execs i386-glibc.2.0.../lib/ld-... which fails under = FreeBSD ... :-( Sigh. Under RH 5.2 relink works under FreeBSD. Havn't tried Ora8.1.5 yet. Bye/2 ------ Michael Reifenberger - IT, UNIX, R/3-Basis Work: Michael.Reifenberger@plaut.de Proj: Michael.Reifenberger.gp@icn.siemens.de Pers: Michael@Reifenberger.com Webspace: http://www.reifenberger.com > -----Urspr=FCngliche Nachricht----- > Von: Reginald S. Perry [SMTP:reggie@lambdawerks.org] > Gesendet am: Sonntag, 20. Februar 2000 04:18 > An: freebsd-emulation@FreeBSD.ORG > Betreff: Problem installing Oracle on FreeBSD-CURRENT >=20 > Hi there, >=20 > Here is my problem. I followed the oracle install howto page to = install > Oracle8051EE_Intel.tgz, which is the enterprise edition distribution. = I > select the default install option. The problem comes in when the = installer > runs svrmgrl to initalize stuff. This command fails. When I break out = to > the > shell and run it by hand, it coredumps. So it seems that while it = looks > like > the compile/links looked correct and executed with no errors during > install, > when you try to run the binaries, they core dump. I am running the = 6.1 > linux_base and linux_devtools. >=20 > Any suggestions? >=20 > Thanks. >=20 > -Reggie >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 5:10:44 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from patrick.whetstonelogic.com (patrick.whetstonelogic.com [205.252.46.171]) by hub.freebsd.org (Postfix) with ESMTP id D8FA637BD57 for ; Mon, 21 Feb 2000 05:10:36 -0800 (PST) (envelope-from patrick@whetstonelogic.com) Received: from whetstonelogic.com (localhost.whetstonelogic.com [127.0.0.1]) by patrick.whetstonelogic.com (8.9.3/8.9.3) with ESMTP id IAA98519; Mon, 21 Feb 2000 08:11:04 -0500 (EST) (envelope-from patrick@whetstonelogic.com) From: patrick@whetstonelogic.com Message-Id: <200002211311.IAA98519@patrick.whetstonelogic.com> Date: Mon, 21 Feb 2000 08:11:03 -0500 (EST) Subject: Re: LinuxThreads and SMP? To: reggie@lambdawerks.org Cc: freebsd-emulation@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 21 Feb, Reginald S. Perry wrote: > I have a 4 CPU Digital Prioris ZX that I am playing with. I tried to fire up > the IBM JDK 1.1.8 for Linux on -current. It has native threads for linux. It > failed, but with this on the console: > > Feb 21 01:17:10 miles /kernel: linux: modify_ldt needs kernel option > USER_LDT > > So I added that option and then got sigaltstack signals complaining about > not enough memory, and this was on the console: > > Feb 21 01:27:46 miles /kernel: kernel trap 9 with interrrupts disabled > Feb 21 01:28:06 miles /kernel: kernel trap 12 with interrupts disabled > > I got these messages in a nice, tight, loop several hundred times until I > did ^C to the process. > > Has anyone tried this JDK on FreeBSD? > > -Reggie I am trying this JDK right now. I'll let you know how it goes. Patrick Gardella patrick@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 6:53:30 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from nets5.rz.rwth-aachen.de (nets5.rz.RWTH-Aachen.DE [137.226.144.13]) by hub.freebsd.org (Postfix) with ESMTP id D79A737BB7F; Mon, 21 Feb 2000 06:53:21 -0800 (PST) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from campino.informatik.rwth-aachen.de (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by nets5.rz.rwth-aachen.de (8.9.1a/8.9.1/10) with ESMTP id PAA01118; Mon, 21 Feb 2000 15:53:19 +0100 (MET) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by campino.informatik.rwth-aachen.de (8.9.1a/8.9.1/3) with ESMTP id PAA23110; Mon, 21 Feb 2000 15:53:56 +0100 (MET) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.9.3/8.6.9) id PAA08560; Mon, 21 Feb 2000 15:53:20 +0100 (CET) Date: Mon, 21 Feb 2000 15:53:20 +0100 From: Christoph Kukulies To: emulation@freebsd.org, java@freebsd.org Subject: [Chris.LeDantec@netbeans.com: RE: [NB-EAP] when compiling: iconv_open - undefined symbol] Message-ID: <20000221155320.A8472@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Anyone else also having these problems with Forte4j (netbeans) under FreeBSD? -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de ----- Forwarded message from Chris LeDantec ----- From: Chris LeDantec To: "'eap-interest@developer.netbeans.com'" Subject: RE: [NB-EAP] when compiling: iconv_open - undefined symbol Date: Mon, 21 Feb 2000 14:13:12 +0100 X-Mailer: Internet Mail Service (5.5.2448.0) the problem that you are seeing is most likely the result of fastjavac being designed for linux and not freebsd. there are some definite library differences and kernel differences that will cause the binaries for linux to not work under *bsd. mind that we haven't had a chance to test this scenario in house so i'm just flying by what i know of linux and what little i know of *bsd. make sure that you have all the necessary libs -i'm guessing you do since you have the linux jdk running... you can also try running fastjavac from the command-line to see if you get any more information. regards, chris ledantec sun microsystem. -----Original Message----- From: Christoph Kukulies [mailto:kuku@gilberto.physik.RWTH-Aachen.DE] Sent: Friday, February 18, 2000 4:51 PM To: eap-interest@developer.netbeans.com Subject: [NB-EAP] when compiling: iconv_open - undefined symbol When compiling a swing class under f4j 1.0 (build 480, linux jdk1.2, FreeBSD 3.4 OS) I'm getting in the compiler output window: /c/kuku/forte4j/bin/fastjavac/fastjavac: error in loading shared libraries : undefined symbol: iconv_open I can run the class when I compile it under WinNT f4j 1.0 (build 480) and copy it over to my FreeBSD machine. -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de -- To unsubscribe from this mailing list, please visit http://www.netbeans.com/eap_list.html To file a technical support request, please go to http://www.netbeans.com/support_request.html If you have any problems, please contact listmaster@developer.netbeans.com -- To unsubscribe from this mailing list, please visit http://www.netbeans.com/eap_list.html To file a technical support request, please go to http://www.netbeans.com/support_request.html If you have any problems, please contact listmaster@developer.netbeans.com ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 11:38: 7 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id AF27C37B528 for ; Mon, 21 Feb 2000 11:37:58 -0800 (PST) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from [128.130.111.10] (nunki [128.130.111.10]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id UAA14321 for ; Mon, 21 Feb 2000 20:37:47 +0100 (MET) Date: Mon, 21 Feb 2000 20:37:47 +0100 (MET) From: Gerald Pfeifer To: freebsd-emulation@freebsd.org Subject: Re: Wine and libavifil32.so In-Reply-To: <200002191853.TAA47840@saturn.kn-bremen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 19 Feb 2000, Juergen Lock wrote: >> /usr/libexec/ld-elf.so.1: Shared object "libavifil32.so" not found > Do you have that file in your ldconfig path (or LD_LIBRARY_PATH)? No, but this recent change to Wine, that's why I was a bit worried. With the current version of Wine I need setenv LD_LIBRARY_PATH /sw/test/wine/dlls:/sw/test/wine where /sw/test/wine is where my Wine CVS and build tree resides. Does this just due to a change with Wine or does it indicate a problem? (I don't yet have access to a 3.4 or 4.0 box yet, but can do some tests there next week or so...) Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 12:42:28 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id B155137B652 for ; Mon, 21 Feb 2000 12:42:12 -0800 (PST) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer goliath.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.9.3/8.9.3) with ESMTP id VAA06864 for ; Mon, 21 Feb 2000 21:42:07 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id VAA08999 for ; Mon, 21 Feb 2000 21:42:06 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.9.3/8.9.3) id VAA20173 for ; Mon, 21 Feb 2000 21:42:06 +0100 (CET) Date: Mon, 21 Feb 2000 21:42:03 +0100 From: Andre Albsmeier To: freebsd-emulation@freebsd.org Subject: How to link a Linux program under FreeBSD ? Message-ID: <20000221214203.A72944@internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have linux_base and linux_devel installed on STABLE-3.4 Now let's assume I have the following object files: main.o obj1.o obj2.o How can I link these together so that a Linux binary is produced? Of course, I also want the Linux statup code and the linux libc... Will I have to use /compat/linux/usr/bin/ld? What options do I have to specify so that no FreeBSD code gets linked? This is because I have to use the Absoft Fortran compiler to produce the object files. This works well; the problem is how to link these together to make a linux executable that can be run under Linux or FreeBSD. Thanks, -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Feb 21 14:50: 5 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp7.atl.mindspring.net (smtp7.atl.mindspring.net [207.69.128.51]) by hub.freebsd.org (Postfix) with ESMTP id CAE6A37B5D4 for ; Mon, 21 Feb 2000 14:50:02 -0800 (PST) (envelope-from vsilyaev@mindspring.com) Received: from mindspring.com (user-2ive6lb.dialup.mindspring.com [165.247.26.171]) by smtp7.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id RAA16624; Mon, 21 Feb 2000 17:48:33 -0500 (EST) Received: (from vsilyaev@localhost) by mindspring.com (8.9.3/8.9.3) id RAA02963; Mon, 21 Feb 2000 17:48:26 -0500 (EST) (envelope-from vsilyaev) Date: Mon, 21 Feb 2000 17:48:26 -0500 From: "Vladimir N. Silyaev" To: alvermark@teligent.se Cc: emulation@freebsd.org Subject: Re: VMware problems Message-ID: <20000221174826.A2943@jupiter.delta.ny.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've just installed the port for VMware 2.0 beta.=20 > It does not start, I'm getting these lines on the console: > Host version 2.2.12.0.0 > Cannot load elf section 5 for splash screen. Install linuxprocfs, or: Deinstall and clean port, rebuild it, and answer no of first question install and enjoy Don't forget to launch vmware.sh script in /usr/local/etc/rc.d/ after port installation. -- Vladimir Silyaev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 10:10: 8 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by hub.freebsd.org (Postfix) with ESMTP id 0DC5C37B6ED for ; Tue, 22 Feb 2000 10:10:03 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by atlrel1.hp.com (Postfix) with ESMTP id 8587F3BD3; Tue, 22 Feb 2000 13:10:01 -0500 (EST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id KAA27309; Tue, 22 Feb 2000 10:10:00 -0800 (PST) Message-ID: <38B2D0EF.647AE77D@cup.hp.com> Date: Tue, 22 Feb 2000 18:09:51 +0000 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Reginald S. Perry" Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Problem installing Oracle on FreeBSD-CURRENT References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Reginald S. Perry" wrote: > > Hi there, > > Here is my problem. I followed the oracle install howto page to install > Oracle8051EE_Intel.tgz, which is the enterprise edition distribution. I > select the default install option. The problem comes in when the installer > runs svrmgrl to initalize stuff. This command fails. When I break out to the > shell and run it by hand, it coredumps. So it seems that while it looks like > the compile/links looked correct and executed with no errors during install, > when you try to run the binaries, they core dump. I am running the 6.1 > linux_base and linux_devtools. > > Any suggestions? This is a known Oracle problem. Using linux_base-5.2 and linux_devtools-5.2 solves this problem. You may want to look on the Oracle site for patches. I expect they have come up with a real solutions by now... -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 10:16:30 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from atlrel2.hp.com (atlrel2.hp.com [156.153.255.202]) by hub.freebsd.org (Postfix) with ESMTP id 04B1637B72D for ; Tue, 22 Feb 2000 10:16:28 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by atlrel2.hp.com (Postfix) with ESMTP id C95F28E9 for ; Tue, 22 Feb 2000 13:16:32 -0500 (EST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id KAA27513; Tue, 22 Feb 2000 10:16:20 -0800 (PST) Message-ID: <38B2D26B.8E280F5C@cup.hp.com> Date: Tue, 22 Feb 2000 18:16:11 +0000 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Andre Albsmeier Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: How to link a Linux program under FreeBSD ? References: <20000221214203.A72944@internal> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andre Albsmeier wrote: > > I have linux_base and linux_devel installed on STABLE-3.4 > Now let's assume I have the following object files: > > main.o obj1.o obj2.o Let's also assume that these objects are Linux-objects... > How can I link these together so that a Linux binary is produced? > Of course, I also want the Linux statup code and the linux libc... The easiest way is to run a Linux shell (ie /compat/linux/bin/bash). Within that shell you just type something like: cc -o whatyatalkaboutwillis main.o obj1.o obj2.o Rule of thumb: From within a Linux shell you always pick up the linux binaries and not the FreeBSD native ones. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 10:35:57 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id A8E9937B72D for ; Tue, 22 Feb 2000 10:35:53 -0800 (PST) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer goliath.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.9.3/8.9.3) with ESMTP id TAA10939 for ; Tue, 22 Feb 2000 19:35:48 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id TAA04866 for ; Tue, 22 Feb 2000 19:35:48 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.9.3/8.9.3) id TAA31600 for ; Tue, 22 Feb 2000 19:35:48 +0100 (CET) Date: Tue, 22 Feb 2000 19:35:45 +0100 From: Andre Albsmeier To: Marcel Moolenaar Cc: Andre Albsmeier , freebsd-emulation@FreeBSD.ORG Subject: Re: How to link a Linux program under FreeBSD ? Message-ID: <20000222193545.A45196@internal> References: <20000221214203.A72944@internal> <38B2D26B.8E280F5C@cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38B2D26B.8E280F5C@cup.hp.com>; from marcel@cup.hp.com on Tue, Feb 22, 2000 at 06:16:11PM +0000 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 22-Feb-2000 at 18:16:11 +0000, Marcel Moolenaar wrote: > Andre Albsmeier wrote: > > > > I have linux_base and linux_devel installed on STABLE-3.4 > > Now let's assume I have the following object files: > > > > main.o obj1.o obj2.o > > Let's also assume that these objects are Linux-objects... Sure, sorry, I forgot to mention that explicitely... > > > How can I link these together so that a Linux binary is produced? > > Of course, I also want the Linux statup code and the linux libc... > > The easiest way is to run a Linux shell (ie /compat/linux/bin/bash). > Within that shell you just type something like: > > cc -o whatyatalkaboutwillis main.o obj1.o obj2.o > > Rule of thumb: From within a Linux shell you always pick up the linux > binaries and not the FreeBSD native ones. Yes, thanks for the hint. I have also been told that I can put /compat/linux/bin and /compat/linux/usr/bin first in my PATH. I tried it and it works as well. I assume that this works also for the libs and the crt1 stuff. I think, the only problem arises if, e.g. I specify some lib that doesn't exist under /compat/linux but under FreeBSD. In this case I assume that the FreeBSD lib is being used. Thanks again, -Andre > > -- > Marcel Moolenaar > mail: marcel@cup.hp.com / marcel@FreeBSD.org > tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 11: 7:56 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by hub.freebsd.org (Postfix) with ESMTP id 4257837B6F8 for ; Tue, 22 Feb 2000 11:07:53 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by atlrel1.hp.com (Postfix) with ESMTP id 67F94C5 for ; Tue, 22 Feb 2000 14:07:52 -0500 (EST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id LAA29404; Tue, 22 Feb 2000 11:07:49 -0800 (PST) Message-ID: <38B2DE7C.FEFE45@cup.hp.com> Date: Tue, 22 Feb 2000 19:07:40 +0000 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Andre Albsmeier Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: How to link a Linux program under FreeBSD ? References: <20000221214203.A72944@internal> <38B2D26B.8E280F5C@cup.hp.com> <20000222193545.A45196@internal> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andre Albsmeier wrote: > > > Rule of thumb: From within a Linux shell you always pick up the linux > > binaries and not the FreeBSD native ones. > > Yes, thanks for the hint. I have also been told that I can > put /compat/linux/bin and /compat/linux/usr/bin first in my PATH. > I tried it and it works as well. Beware! Having /compat/linux... first in your path can cause breakages in your native environment. It basicly causes unwanted mixing of FreeBSD and Linux binaries. The same applies to setting LD_LIBRARY_PATH to solve shared library problems. Keep both environments seperate as much as possible and don't depend on inter-environmental environment variables :-) > I assume that this works also for the libs and the crt1 stuff. No, the linux binaries happen to pick up the linux libraries first most of the time. There are situations where a FreeBSD library is found first (see below)... > I think, the only problem arises if, e.g. I specify some > lib that doesn't exist under /compat/linux but under FreeBSD. > In this case I assume that the FreeBSD lib is being used. Correct. Sometimes the search order used by ld(1) causes this as well. In that case the Linux library can exist while the FreeBSD version is used anyway... -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 12:21:23 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id 04EDA37B730 for ; Tue, 22 Feb 2000 12:21:08 -0800 (PST) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer goliath.siemens.de) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.9.3/8.9.3) with ESMTP id VAA24328 for ; Tue, 22 Feb 2000 21:21:00 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.9.3/8.9.3) with ESMTP id VAA13444 for ; Tue, 22 Feb 2000 21:21:00 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.9.3/8.9.3) id VAA32172 for ; Tue, 22 Feb 2000 21:21:00 +0100 (CET) Date: Tue, 22 Feb 2000 21:20:57 +0100 From: Andre Albsmeier To: Marcel Moolenaar Cc: Andre Albsmeier , freebsd-emulation@FreeBSD.ORG Subject: Re: How to link a Linux program under FreeBSD ? Message-ID: <20000222212057.A46560@internal> References: <20000221214203.A72944@internal> <38B2D26B.8E280F5C@cup.hp.com> <20000222193545.A45196@internal> <38B2DE7C.FEFE45@cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38B2DE7C.FEFE45@cup.hp.com>; from marcel@cup.hp.com on Tue, Feb 22, 2000 at 07:07:40PM +0000 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 22-Feb-2000 at 19:07:40 +0000, Marcel Moolenaar wrote: > Andre Albsmeier wrote: > > > > > Rule of thumb: From within a Linux shell you always pick up the linux > > > binaries and not the FreeBSD native ones. > > > > Yes, thanks for the hint. I have also been told that I can > > put /compat/linux/bin and /compat/linux/usr/bin first in my PATH. > > I tried it and it works as well. > > Beware! Having /compat/linux... first in your path can cause breakages > in your native environment. It basicly causes unwanted mixing of FreeBSD > and Linux binaries. The same applies to setting LD_LIBRARY_PATH to solve > shared library problems. Keep both environments seperate as much as > possible and don't depend on inter-environmental environment variables > :-) OK, I should have been more precise here: I have a script that calls the Absoft Fortran compiler. When compiling is done, the script calls cc -o ... I set PATH only in this script to /compat/linux/bin and /compat/linux/usr/bin, not in my working environment :-) > > > I assume that this works also for the libs and the crt1 stuff. > > No, the linux binaries happen to pick up the linux libraries first most > of the time. There are situations where a FreeBSD library is found first > (see below)... > > > I think, the only problem arises if, e.g. I specify some > > lib that doesn't exist under /compat/linux but under FreeBSD. > > In this case I assume that the FreeBSD lib is being used. > > Correct. Sometimes the search order used by ld(1) causes this as well. > In that case the Linux library can exist while the FreeBSD version is > used anyway... I see, thanks for the info. The best would be to have somekind of intelligent chroot when linux bins are running. The problem lies in implementing "intelligent" :-) Thanks again, -Andre > > -- > Marcel Moolenaar > mail: marcel@cup.hp.com / marcel@FreeBSD.org > tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 12:39:13 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from guardian.sftw.com (guardian.sftw.com [209.157.37.25]) by hub.freebsd.org (Postfix) with ESMTP id A2BFE37B59D; Tue, 22 Feb 2000 12:39:10 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from yoda.sftw.com (a-211.sftw.com [209.157.37.211]) by guardian.sftw.com (8.9.3/8.9.3) with ESMTP id MAA38871; Tue, 22 Feb 2000 12:39:10 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from sftw.com (localhost [127.0.0.1]) by yoda.sftw.com (8.9.3/8.9.3) with ESMTP id MAA00775; Tue, 22 Feb 2000 12:39:04 -0800 (PST) (envelope-from nsayer@sftw.com) Message-ID: <38B2F3E8.C8FF1F21@sftw.com> Date: Tue, 22 Feb 2000 20:39:04 +0000 From: Nick Sayer Reply-To: nsayer@freebsd.org X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: frebsd-current@freebsd.org Cc: freebsd-emulation@freebsd.org Subject: Re: Weird AMD panics caused by VMware?! References: <20000217221219.A448@jupiter.delta.ny.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (crossposting to -current in case it's not VMware related) I have a serial console running on the machine, so now I can tell the difference between a panic and a hang. :-) With that said, I now have a complete dump from one of these trap panics. Here is a stack trace: #0 0xc0152d28 in boot () #1 0xc01530ac in poweroff_wait () #2 0xc02571f9 in trap_fatal () #3 0xc0256ed7 in trap_pfault () #4 0xc0256a9a in trap () #5 0xc0177da0 in cache_purgevfs () #6 0xc017e6f1 in dounmount () #7 0xc017e681 in unmount () #8 0xc0257437 in syscall () #9 0xc024b946 in Xint0x80_syscall () #10 0x8057585 in ?? () [etc] The machine is running amd, and my home directory is amd mounted. That is the only conceivable reason I can think why an 'unmount' would be in progress. Sure enough, ps aux on the core shows: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 841 97.7 0.0 1100 0 ?? R 31Dec69 0:00.00 (amd) nsayer 699 8.5 0.0 59480 0 #C1 R 31Dec69 4:46.96 (vmware) root 2 0.0 0.0 0 0 ?? RL 31Dec69 0:03.56 (pagedaemon) root 3 0.0 0.0 0 0 ?? DL 31Dec69 0:00.42 (vmdaemon) root 4 0.0 0.0 0 0 ?? RL 31Dec69 0:00.00 (bufdaemon) root 5 0.0 0.0 0 0 ?? RL 31Dec69 0:02.17 (syncer) [...] Does anyone recognize this? What other information can I get that would be of use? "Vladimir N. Silyaev" wrote: > > My machine here at the office gets these a _lot_ whenever I'm running > > vmware: > [skipped] > > >This machine also seems to hang a lot, but it could be that the hangs > >are just these happening behind X so I can't see them. > As you wrote below, you are have another box. So just try to use > serial console (that will be provide a possibility to always > see a panic message), also will be a right thing to compile kernel > with DDB, that will provide some more information. > > > They always happen with amd as the current process. They frequently > > happen when > >vmware is running. They never happen at other times. > The FreeBSD vmmon has a 'historical' bug - it's clear 'GS' register. > But I was never encounter problem with them. And more I was > so impressed by the fact that I was never encountered any vmware(vmmon) > related problem. > > -- > Vladimir Silyaev > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 22 13:38:56 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from guardian.sftw.com (guardian.sftw.com [209.157.37.25]) by hub.freebsd.org (Postfix) with ESMTP id 2F4E937B705; Tue, 22 Feb 2000 13:38:51 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from yoda.sftw.com (a-211.sftw.com [209.157.37.211]) by guardian.sftw.com (8.9.3/8.9.3) with ESMTP id NAA39735; Tue, 22 Feb 2000 13:38:47 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from sftw.com (localhost [127.0.0.1]) by yoda.sftw.com (8.9.3/8.9.3) with ESMTP id NAA00790; Tue, 22 Feb 2000 13:38:47 -0800 (PST) (envelope-from nsayer@sftw.com) Message-ID: <38B301E6.23151221@sftw.com> Date: Tue, 22 Feb 2000 21:38:46 +0000 From: Nick Sayer Reply-To: nsayer@FreeBSD.ORG X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-current@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG Subject: Re: Weird AMD panics caused by VMware?! References: <20000217221219.A448@jupiter.delta.ny.us> <38B2F3E8.C8FF1F21@sftw.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org To followup to myself, I think I have this pinned down... In line 403 of /sys/kern/vfs_cache.c, ncpp is somehow becoming 0. I believe that the trap is in ncp = LIST_FIRST(ncpp); -- LIST_FIRST(x) expands to ((x)->lh_first). That ends up being a dereference of NULL, which causes the trap and panic. As to how ncpp ends up being null, that's a good question, given it's the variable in the for loop at line 402. cache_zap() can't really have a side effect, since ncpp is a stack variable. I am going to try rewriting the outer for() loop as for(i=nchash ; i>=0 ; i--) and the initialization of the inner loop as ncp = LIST_FIRST(&(nchashtbl[i])) just in case cache_zap() causes the value of nchashtbl to change (just how the hell THAT would happen is way beyond me). Nick Sayer wrote: > (crossposting to -current in case it's not VMware related) > > I have a serial console running on the machine, so now I can tell the > difference between > a panic and a hang. :-) > > With that said, I now have a complete dump from one of these trap panics. > Here is a > stack trace: > > #0 0xc0152d28 in boot () > #1 0xc01530ac in poweroff_wait () > #2 0xc02571f9 in trap_fatal () > #3 0xc0256ed7 in trap_pfault () > #4 0xc0256a9a in trap () > #5 0xc0177da0 in cache_purgevfs () > #6 0xc017e6f1 in dounmount () > #7 0xc017e681 in unmount () > #8 0xc0257437 in syscall () > #9 0xc024b946 in Xint0x80_syscall () > #10 0x8057585 in ?? () > [etc] > > The machine is running amd, and my home directory is amd mounted. That is > the only > conceivable reason I can think why an 'unmount' would be in progress. > > Sure enough, ps aux on the core shows: > > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > root 841 97.7 0.0 1100 0 ?? R 31Dec69 0:00.00 (amd) > nsayer 699 8.5 0.0 59480 0 #C1 R 31Dec69 4:46.96 (vmware) > root 2 0.0 0.0 0 0 ?? RL 31Dec69 0:03.56 > (pagedaemon) > root 3 0.0 0.0 0 0 ?? DL 31Dec69 0:00.42 (vmdaemon) > root 4 0.0 0.0 0 0 ?? RL 31Dec69 0:00.00 (bufdaemon) > > root 5 0.0 0.0 0 0 ?? RL 31Dec69 0:02.17 (syncer) > [...] > > Does anyone recognize this? What other information can I get that would be > of use? > > "Vladimir N. Silyaev" wrote: > > > > My machine here at the office gets these a _lot_ whenever I'm running > > > vmware: > > [skipped] > > > > >This machine also seems to hang a lot, but it could be that the hangs > > >are just these happening behind X so I can't see them. > > As you wrote below, you are have another box. So just try to use > > serial console (that will be provide a possibility to always > > see a panic message), also will be a right thing to compile kernel > > with DDB, that will provide some more information. > > > > > They always happen with amd as the current process. They frequently > > > happen when > > >vmware is running. They never happen at other times. > > The FreeBSD vmmon has a 'historical' bug - it's clear 'GS' register. > > But I was never encounter problem with them. And more I was > > so impressed by the fact that I was never encountered any vmware(vmmon) > > related problem. > > > > -- > > Vladimir Silyaev > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-emulation" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Feb 23 12:45:45 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from teknos.teknos.com (teknos-gw.nappr.org [216.0.190.254]) by hub.freebsd.org (Postfix) with ESMTP id E6B9237B9AB; Wed, 23 Feb 2000 12:45:30 -0800 (PST) (envelope-from salaman@teknos.com) Received: by teknos.teknos.com with Internet Mail Service (5.5.2650.21) id <19NW71WW>; Wed, 23 Feb 2000 16:40:45 -0400 Message-ID: <1D45ABC754FB1E4888E508992CE97E4F059CFF@teknos.teknos.com> From: "Victor A. Salaman" To: "'freebsd-current@freebsd.org'" , "'freebsd-emulation@freebsd.org'" Subject: Linux Emulation patches Date: Wed, 23 Feb 2000 16:40:43 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF7E3E.414733B0" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BF7E3E.414733B0 Content-Type: text/plain; charset="iso-8859-1" Hi: I was wondering who mantains the Linux Emulation? I have some patches that were sent to me for FreeBSD-3.4, I have converted them to FreeBSD 4.0-Current for Linux emulation problems. Specifically anyone trying to use any program that opens a server socket will get bitten by the emulation unless these patches are applied ( JServ, Resin, Tomcat are some Java programs affected by this... and since Sun hasn't release a JDK 1.2 for FreeBSD, well, the only way to run some server programs is with Blackdown, but without these patches they are useless ). Anyways, after sending email to marcel and peter with the patches, I haven't even received a reply. So therefore, I'm posting them here, in case anyone wants to commit them at all. I feel 4.0 shouldn't go out with a known broken linux emulation. --- /usr/src/sys/i386/linux/linux_file.c Wed Feb 23 16:11:50 2000 +++ /usr/src/sys/i386/linux/linux_file.orig Wed Feb 23 16:11:37 2000 @@ -199,6 +199,12 @@ } */ fcntl_args; struct linux_flock linux_flock; struct flock *bsd_flock; + struct filedesc *fdp; + struct file *fp; + struct vnode *vp; + long pgid; + struct pgrp *pgrp; + struct tty *tp; caddr_t sg; dev_t dev; @@ -283,9 +289,47 @@ case LINUX_F_SETOWN: case LINUX_F_GETOWN: - fcntl_args.cmd = args->cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN; - fcntl_args.arg = args->arg; - return fcntl(p, &fcntl_args); + /* + * We need to route around the normal fcntl() for these calls, + * since it uses TIOC{G,S}PGRP, which is too restrictive for + * Linux F_{G,S}ETOWN semantics. For sockets, this problem + * does not exist. + */ + fdp = p->p_fd; + if ((u_int)args->fd >= fdp->fd_nfiles || + (fp = fdp->fd_ofiles[args->fd]) == NULL) + return EBADF; + if (fp->f_type == DTYPE_SOCKET) { + fcntl_args.cmd = args->cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN; + fcntl_args.arg = args->arg; + return fcntl(p, &fcntl_args); + } + vp = (struct vnode *)fp->f_data; + dev = vn_todev(vp); + if (dev == NODEV) + return EINVAL; + if (!(devsw(dev)->d_flags & D_TTY)) + return EINVAL; + tp = dev->si_tty; + if (!tp) + return EINVAL; + if (args->cmd == LINUX_F_GETOWN) { + p->p_retval[0] = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PID; + return 0; + } + if ((long)args->arg <= 0) { + pgid = -(long)args->arg; + } else { + struct proc *p1 = pfind((long)args->arg); + if (p1 == 0) + return (ESRCH); + pgid = (long)p1->p_pgrp->pg_id; + } + pgrp = pgfind(pgid); + if (pgrp == NULL || pgrp->pg_session != p->p_session) + return EPERM; + tp->t_pgrp = pgrp; + return 0; } return EINVAL; } --- /usr/src/sys/i386/linux/linux_socket.c Wed Feb 23 16:11:50 2000 +++ /usr/src/sys/i386/linux/linux_socket.orig Wed Feb 23 16:11:48 2000 @@ -441,11 +441,6 @@ caddr_t name; int *anamelen; } */ bsd_args; - struct fcntl_args /* { - int fd; - int cmd; - long arg; - } */ f_args; int error; if ((error=copyin((caddr_t)args, (caddr_t)&linux_args, sizeof(linux_args)))) @@ -453,24 +448,7 @@ bsd_args.s = linux_args.s; bsd_args.name = (caddr_t)linux_args.addr; bsd_args.anamelen = linux_args.namelen; - - if (error = oaccept(p, &bsd_args)) - return error; - /* - * linux appears not to copy flags from the parent socket to the - * accepted one, so we must clear the flags in the new descriptor. - */ - f_args.fd = p->p_retval[0]; - f_args.cmd = F_SETFL; - f_args.arg = 0; - /* - * we ignore errors here since otherwise we would have an open file - * descriptor that wasn't returned to the user. - */ - (void) fcntl(p, &f_args); - /* put the file descriptor back as the return value */ - p->p_retval[0] = f_args.fd; - return 0; + return oaccept(p, &bsd_args); } struct linux_getsockname_args { ------_=_NextPart_001_01BF7E3E.414733B0 Content-Type: text/html; charset="iso-8859-1"
Hi:
 
I was wondering who mantains the Linux Emulation? I have some patches that were sent to me for FreeBSD-3.4, I have converted them to FreeBSD 4.0-Current for Linux emulation problems. Specifically anyone trying to use any program that opens a server socket will get bitten by the emulation unless these patches are applied ( JServ, Resin, Tomcat are some Java programs affected by this... and since Sun hasn't release a JDK 1.2 for FreeBSD, well, the only way to run some server programs is with Blackdown, but without these patches they are useless ).
 
Anyways, after sending email to marcel and peter with the patches, I haven't even received a reply. So therefore, I'm posting them here, in case anyone wants to commit them at all. I feel 4.0 shouldn't go out with a known broken linux emulation.
 
--- /usr/src/sys/i386/linux/linux_file.c Wed Feb 23 16:11:50 2000
+++ /usr/src/sys/i386/linux/linux_file.orig Wed Feb 23 16:11:37 2000
@@ -199,6 +199,12 @@
     } */ fcntl_args;
     struct linux_flock linux_flock;
     struct flock *bsd_flock;
+    struct filedesc *fdp;
+    struct file *fp;
+    struct vnode *vp;
+    long pgid;
+    struct pgrp *pgrp;
+    struct tty *tp;
     caddr_t sg;
     dev_t dev;
 
@@ -283,9 +289,47 @@
 
     case LINUX_F_SETOWN:
     case LINUX_F_GETOWN:
- fcntl_args.cmd = args->cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN;
- fcntl_args.arg = args->arg;
- return fcntl(p, &fcntl_args);
+ /*
+  * We need to route around the normal fcntl() for these calls,
+  * since it uses TIOC{G,S}PGRP, which is too restrictive for
+  * Linux F_{G,S}ETOWN semantics. For sockets, this problem
+  * does not exist.
+  */
+ fdp = p->p_fd;
+ if ((u_int)args->fd >= fdp->fd_nfiles ||
+  (fp = fdp->fd_ofiles[args->fd]) == NULL)
+     return EBADF;
+ if (fp->f_type == DTYPE_SOCKET) {
+     fcntl_args.cmd = args->cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN;
+         fcntl_args.arg = args->arg;
+     return fcntl(p, &fcntl_args);
+ }
+ vp = (struct vnode *)fp->f_data;
+ dev = vn_todev(vp);
+ if (dev == NODEV)
+     return EINVAL;
+ if (!(devsw(dev)->d_flags & D_TTY))
+     return EINVAL;
+ tp = dev->si_tty;
+ if (!tp)
+     return EINVAL;
+ if (args->cmd == LINUX_F_GETOWN) {
+     p->p_retval[0] = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PID;
+     return 0;
+ }
+ if ((long)args->arg <= 0) {
+     pgid = -(long)args->arg;
+ } else {
+     struct proc *p1 = pfind((long)args->arg);
+     if (p1 == 0)
+  return (ESRCH);
+     pgid = (long)p1->p_pgrp->pg_id;
+ }
+ pgrp = pgfind(pgid);
+ if (pgrp == NULL || pgrp->pg_session != p->p_session)
+     return EPERM;
+ tp->t_pgrp = pgrp;
+ return 0;
     }
     return EINVAL;
 }
--- /usr/src/sys/i386/linux/linux_socket.c Wed Feb 23 16:11:50 2000
+++ /usr/src/sys/i386/linux/linux_socket.orig Wed Feb 23 16:11:48 2000
@@ -441,11 +441,6 @@
  caddr_t name;
  int *anamelen;
     } */ bsd_args;
-    struct fcntl_args /* {
-    int fd;
-    int cmd;
-    long arg;
-    } */ f_args;
     int error;
 
     if ((error=copyin((caddr_t)args, (caddr_t)&linux_args, sizeof(linux_args))))
@@ -453,24 +448,7 @@
     bsd_args.s = linux_args.s;
     bsd_args.name = (caddr_t)linux_args.addr;
     bsd_args.anamelen = linux_args.namelen;
-
-    if (error = oaccept(p, &bsd_args))
- return error;
-    /*
-     * linux appears not to copy flags from the parent socket to the
-     * accepted one, so we must clear the flags in the new descriptor.
-     */
-    f_args.fd = p->p_retval[0];
-    f_args.cmd = F_SETFL;
-    f_args.arg = 0;
-   /*
-     * we ignore errors here since otherwise we would have an open file
-     * descriptor that wasn't returned to the user.
-     */
-    (void) fcntl(p, &f_args);
-    /* put the file descriptor back as the return value */
-    p->p_retval[0] = f_args.fd;
-    return 0;
+    return oaccept(p, &bsd_args);
 }
 
 struct linux_getsockname_args {
------_=_NextPart_001_01BF7E3E.414733B0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Feb 23 15:38: 3 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 1060037BA1C; Wed, 23 Feb 2000 15:37:55 -0800 (PST) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from [128.130.111.2] (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id AAA18446; Thu, 24 Feb 2000 00:37:48 +0100 (MET) Date: Thu, 24 Feb 2000 00:37:46 +0100 (CET) From: Gerald Pfeifer To: "Victor A. Salaman" Cc: freebsd-current@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: Linux Emulation patches In-Reply-To: <1D45ABC754FB1E4888E508992CE97E4F059CFF@teknos.teknos.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 23 Feb 2000, Victor A. Salaman wrote: > Anyways, after sending email to marcel and peter with the patches, I haven't > even received a reply. :-( > > So therefore, I'm posting them here, in case anyone wants to commit > them at all. I feel 4.0 shouldn't go out with a known broken linux > emulation. One way to make sure your patch does not get lost is to create a GNATS report with the patch and priority=high by means of send-pr or the web form at http://www.freebsd.org/support.html#gnats. Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Feb 23 19: 2:15 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from relay.securify.com (relay.securify.com [207.5.63.61]) by hub.freebsd.org (Postfix) with SMTP id A9AF737BA11 for ; Wed, 23 Feb 2000 19:02:12 -0800 (PST) (envelope-from tomb@cgf.net) Received: by relay.securify.com; id TAA23372; Wed, 23 Feb 2000 19:01:05 -0800 Received: from unknown(10.5.63.6) by relay.securify.com via smap (V5.5) id xma023368; Wed, 23 Feb 00 19:00:13 -0800 Received: from cgf.net (leek.securify.com [10.5.63.100]) by dude.securify.com (8.8.7/8.8.7) with ESMTP id TAA13951 for ; Wed, 23 Feb 2000 19:00:12 -0800 Message-ID: <38B49E9E.D0685B5C@cgf.net> Date: Wed, 23 Feb 2000 18:59:42 -0800 From: tomb X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Can anyone tell me where to find the Redhat 6.1 emulation Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm having problems with Realaudio. I'm told that the best fix is to use the latest emulator. Where do I get it from? Thanks Tom -- Tom Brown --------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Feb 23 19:38:50 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 1257537BABF for ; Wed, 23 Feb 2000 19:38:48 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 30E2456A; Wed, 23 Feb 2000 19:38:47 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id TAA10720; Wed, 23 Feb 2000 19:38:46 -0800 (PST) Message-ID: <38B4A7C6.774AF0CD@cup.hp.com> Date: Wed, 23 Feb 2000 19:38:46 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: tomb Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Can anyone tell me where to find the Redhat 6.1 emulation References: <38B49E9E.D0685B5C@cgf.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org tomb wrote: > > I'm having problems with Realaudio. > > I'm told that the best fix is to use the latest emulator. > > Where do I get it from? Update your ports collection. I assume you have a regular FreeBSD release, which means that you should update you FreeBSD as well to be on the save side. Given your question, I think that may be too difficult a task without further explanation. I suggest you look at chapter 17 in the handbook and paragraph 17.2 in particular. The handbook can be found on the FreeBSD site (www.FreeBSD.org). In case of problems in updating your sources, you may want to direct any questions to the freebsd-questions mailinglist. Once you've updated your FreeBSD and ports collection, remove linux_base (which I assume has version 5.2) and install linux_base again (which will be version 6.1) HTH, -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 26 12:24:28 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from guardian.sftw.com (guardian.sftw.com [209.157.37.25]) by hub.freebsd.org (Postfix) with ESMTP id 6435037B51B for ; Sat, 26 Feb 2000 12:24:11 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from yoda.sftw.com (a-211.sftw.com [209.157.37.211]) by guardian.sftw.com (8.9.3/8.9.3) with ESMTP id MAA82449 for ; Sat, 26 Feb 2000 12:24:07 -0800 (PST) (envelope-from nsayer@yoda.sftw.com) Received: (from nsayer@localhost) by yoda.sftw.com (8.9.3/8.9.3) id MAA02079 for freebsd-emulation@freebsd.org; Sat, 26 Feb 2000 12:24:03 -0800 (PST) (envelope-from nsayer) Date: Sat, 26 Feb 2000 12:24:03 -0800 (PST) From: Nick Sayer Message-Id: <200002262024.MAA02079@yoda.sftw.com> To: freebsd-emulation@freebsd.org Subject: vmware build 438 -> 468, raw disks fail. Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I tried to move up to build 468 (release candidate 1) of vmware to see if it would get rid of some of the problems my office machine is having. Doing so breaks raw disks. The log shows this: Feb 26 12:19:15: RAWDISK: Linux's calculated capacity of /dev/hda is 16498755 se ctors RAWDISK: smaller than the actual size of the disk (16498755). RAWDISK: /dev/hda will therefore likely not work completelRAWDISK: correctly as a rawdisk with VMware. Feb 26 12:19:15: Caught signal 11 -- pid 2068 Feb 26 12:19:15: Dumping core... and the window disappears. The same thing happens if you have a configured raw disk and attempt to enter the configuration editor. It is still the case that the linuxulator appears to get block and char devices backwards. vmware complains that /dev/ad0 is not a raw device, when it actually is. Either vmware really wants a block device and is fibbing or the linuxulator is getting the two mixed up. I will try a virtual disk when I get home to see if that works ok. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message