From owner-freebsd-emulation Sun Oct 12 01:19:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA07758 for emulation-outgoing; Sun, 12 Oct 1997 01:19:36 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from d198-232.uoregon.edu (d198-232.uoregon.edu [128.223.198.232]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA07750 for ; Sun, 12 Oct 1997 01:19:34 -0700 (PDT) (envelope-from mini@d198-232.uoregon.edu) Received: (from mini@localhost) by d198-232.uoregon.edu (8.8.5/8.8.5) id BAA06628; Sun, 12 Oct 1997 01:18:54 -0700 (PDT) Message-ID: <19971012011854.29188@micron.mini.net> Date: Sun, 12 Oct 1997 01:18:54 -0700 From: Jonathan Mini To: Mike Smith Cc: Jonathan Mini , freebsd-emulation@FreeBSD.ORG Subject: Re: LINUX emulation and uname(3). References: <19971011154149.56660@micron.mini.net> <199710120346.NAA00872@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85e In-Reply-To: <199710120346.NAA00872@word.smith.net.au>; from Mike Smith on Sun, Oct 12, 1997 at 01:16:10PM +0930 X-file: The Truth is Out There Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Mike Smith stands accused of saying: > > I have a question : How are these programs using the uname to detect if it's a > > linux system? are they jsut checkign to see that 'linux' exists in the uname > > string? > > Most scripts check the output of 'uname' for equivalence to 'Linux'. > There is a dummy 'uname' script installed as part of the Linux > emulation support that does the Right Thing in this regard. This > generally means that you need to be running a Linux-mode shell before > you start running the script. That is as I thought. > Applications calling uname() generally shouldn't (and don't) care what > the system type returned is; the one that started this thread was a > little un-savvy in that regard. > > > If so, it seems to me that returning something like > > 'Linux-emu (FreeVBSD blah.blah.blah)' would be a good solution. Also, this > > means that programs like Netscape (linux binary) would properly return the > > fact that it is running under linux emulation under FreeBSD. > > Programs like the Linux Netscape correctly report that they are running > on FreeBSD. If you are a Linux binary and uname() doesn't report I still run the Linux netscape 3.0 binaries, I never saw a reason to upgrade. (More truthfully, the Linux version worked great, and I am too lazy to fix things that work) > 'Linux', it may report 'FreeBSD', 'NetBSD', 'OpenBSD' or almost > anything else. Not handling this sensibly is a bug. Interesting. > > mike > -- Jonathan Mini Ingenious Productions Software Development P.O. Box 5693, Eugene, Or. 97405 From owner-freebsd-emulation Mon Oct 13 22:00:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA22077 for emulation-outgoing; Mon, 13 Oct 1997 22:00:16 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from tech.kgtu.runnet.ru (tech.kgtu.runnet.ru [195.208.226.108]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA22070 for ; Mon, 13 Oct 1997 22:00:04 -0700 (PDT) (envelope-from shin@tech.kgtu.runnet.ru) Received: from tech.kgtu.runnet.ru (localhost.tech.kgtu.runnet.ru [127.0.0.1]) by tech.kgtu.runnet.ru (8.8.5/8.8.5) with ESMTP id NAA02909 for ; Tue, 14 Oct 1997 13:04:56 +0800 (KRSS) Message-ID: <3442FD70.74628D6B@tech.kgtu.runnet.ru> Date: Tue, 14 Oct 1997 13:04:49 +0800 From: Boris Shinkarev Organization: KGTU X-Mailer: Mozilla 4.03b8 [en] (X11; I; FreeBSD 2.2.2-RELEASE i386) MIME-Version: 1.0 To: emulation@freebsd.org Subject: Subscribe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Subscribe From owner-freebsd-emulation Wed Oct 15 00:10:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA24277 for emulation-outgoing; Wed, 15 Oct 1997 00:10:40 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA24230; Wed, 15 Oct 1997 00:10:19 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id JAA00822; Wed, 15 Oct 1997 09:10:40 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id JAA10735; Wed, 15 Oct 1997 09:19:37 +0200 (MEST) Date: Wed, 15 Oct 1997 09:19:37 +0200 (MEST) From: Christoph Kukulies Message-Id: <199710150719.JAA10735@gil.physik.rwth-aachen.de> To: freebsd-emulation@freebsd.org, freebsd-hackers@freefall.FreeBSD.org Subject: some observations with xmaple (Maple V4 R5, Linux version) Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk When running xmaple (Maple V4 R5, the Linux version - there ain't a FreeBSD one), to things seem strange : When I set the DISPLAY variable to a remote host the program just seg faults (segmentation violation) and dies. It shouldn't IMO. (it's a 2.2.2 installation) Running the non GUI version (maple) it comes up fine but (since I didn't know how to quit) when I send it the Quit signal (^\) it comes with LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x12 not implemented and finally core dumps and quits through the FreeBSD signal mechanism. -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Wed Oct 15 01:29:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA28920 for emulation-outgoing; Wed, 15 Oct 1997 01:29:28 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA28915 for ; Wed, 15 Oct 1997 01:29:24 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.gsoft.com.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id RAA02352; Wed, 15 Oct 1997 17:56:14 +0930 (CST) Message-Id: <199710150826.RAA02352@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Wed, 15 Oct 1997 09:19:37 +0200." <199710150719.JAA10735@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-5162419000" Date: Wed, 15 Oct 1997 17:56:12 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is a multipart MIME message. --==_Exmh_-5162419000 Content-Type: text/plain; charset=us-ascii > > When running xmaple (Maple V4 R5, the Linux version - there ain't > a FreeBSD one), to things seem strange : > > When I set the DISPLAY variable to a remote host the program > just seg faults (segmentation violation) and dies. It shouldn't IMO. Obviously. What sort of remote display are you trying to use? > Running the non GUI version (maple) it comes up fine but (since I didn't > know how to quit) when I send it the Quit signal (^\) it comes with > > LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x12 not implemented > > and finally core dumps and quits through the FreeBSD signal mechanism. That's TIOCSTI, "simulate terminal input" on standard in. It looks like a fairly disgusting hack to me (ie. simulate terminal input rather than communicate with the parser directly). Could you apply this to /sys/i386/linux/linux_ioctl.c and see if it appears to work? If so, I'll commit it. --==_Exmh_-5162419000 Content-Type: text/plain; name="linux_ioctl.c.diff"; charset=us-ascii Content-Description: linux_ioctl.c.diff Content-Disposition: attachment; filename="linux_ioctl.c.diff" Index: linux_ioctl.c =================================================================== RCS file: /local3/ncvs/src/sys/i386/linux/linux_ioctl.c,v retrieving revision 1.20 diff -u -r1.20 linux_ioctl.c --- linux_ioctl.c 1997/07/20 16:05:59 1.20 +++ linux_ioctl.c 1997/10/15 08:28:27 @@ -519,6 +519,10 @@ args->cmd = TIOCSPGRP; return ioctl(p, (struct ioctl_args *)args, retval); + case LINUX_TIOCSTI: + args->cmd = TIOCSTI; + return ioctl(p, (struct ioctl_args *)args, retval); + case LINUX_TIOCGWINSZ: args->cmd = TIOCGWINSZ; return ioctl(p, (struct ioctl_args *)args, retval); --==_Exmh_-5162419000-- From owner-freebsd-emulation Wed Oct 15 01:59:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA00674 for emulation-outgoing; Wed, 15 Oct 1997 01:59:10 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA00661 for ; Wed, 15 Oct 1997 01:59:03 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id KAA03735; Wed, 15 Oct 1997 10:59:17 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id LAA11128; Wed, 15 Oct 1997 11:08:20 +0200 (MEST) Message-ID: <19971015110819.62289@gil.physik.rwth-aachen.de> Date: Wed, 15 Oct 1997 11:08:19 +0200 From: Christoph Kukulies To: Mike Smith Cc: Christoph Kukulies , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <199710150719.JAA10735@gil.physik.rwth-aachen.de> <199710150826.RAA02352@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710150826.RAA02352@word.smith.net.au>; from Mike Smith on Wed, Oct 15, 1997 at 05:56:12PM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 15, 1997 at 05:56:12PM +0930, Mike Smith wrote: > > > > When running xmaple (Maple V4 R5, the Linux version - there ain't > > a FreeBSD one), to things seem strange : > > > > When I set the DISPLAY variable to a remote host the program > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > Obviously. What sort of remote display are you trying to use? xdpyinfo: name of display: :0.0 version number: 11.0 vendor string: X Inside Inc. vendor release number: 1302 maximum request size: 4194300 bytes motion buffer size: 0 bitmap unit, bit order, padding: 32, LSBFirst, 32 image byte order: LSBFirst number of supported pixmap formats: 6 supported pixmap formats: depth 1, bits_per_pixel 1, scanline_pad 32 depth 4, bits_per_pixel 8, scanline_pad 32 depth 8, bits_per_pixel 8, scanline_pad 32 depth 15, bits_per_pixel 16, scanline_pad 32 depth 16, bits_per_pixel 16, scanline_pad 32 depth 24, bits_per_pixel 32, scanline_pad 32 keycode range: minimum 8, maximum 167 focus: window 0x800002, revert to Parent number of extensions: 16 BIG-REQUESTS DEC-XTRAP GLX MIT-SCREEN-SAVER MIT-SHM MIT-SUNDRY-NONSTANDARD Multi-Buffering SGI-GLX SHAPE X3D-PEX XI-ShmLink XIE XIdle XTEST XTestExtension1 XsightExtension default screen number: 0 number of screens: 1 screen #0: dimensions: 1280x1024 pixels (433x346 millimeters) resolution: 75x75 dots per inch depths (2): 1, 24 root window id: 0x24 depth of root window: 24 planes number of colormaps: minimum 1, maximum 1 default colormap: 0x22 default number of colormap cells: 256 preallocated pixels: black 0, white 16777215 options: backing-store NO, save-unders NO largest cursor: 64x64 current input event mask: 0x58003d KeyPressMask ButtonPressMask ButtonReleaseMask EnterWindowMask LeaveWindowMask SubstructureNotifyMask SubstructureRedirectMask PropertyChangeMask number of visuals: 2 default visual id: 0x20 visual: visual id: 0x20 class: TrueColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x21 class: DirectColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits > > > Running the non GUI version (maple) it comes up fine but (since I didn't > > know how to quit) when I send it the Quit signal (^\) it comes with > > > > LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x12 not implemented > > > > and finally core dumps and quits through the FreeBSD signal mechanism. > > That's TIOCSTI, "simulate terminal input" on standard in. It looks > like a fairly disgusting hack to me (ie. simulate terminal input rather > than communicate with the parser directly). > > Could you apply this to /sys/i386/linux/linux_ioctl.c and see if it > appears to work? If so, I'll commit it. > > Will try that. Content-Description: linux_ioctl.c.diff > Index: linux_ioctl.c > =================================================================== > RCS file: /local3/ncvs/src/sys/i386/linux/linux_ioctl.c,v > retrieving revision 1.20 > diff -u -r1.20 linux_ioctl.c > --- linux_ioctl.c 1997/07/20 16:05:59 1.20 > +++ linux_ioctl.c 1997/10/15 08:28:27 > @@ -519,6 +519,10 @@ > args->cmd = TIOCSPGRP; > return ioctl(p, (struct ioctl_args *)args, retval); > > + case LINUX_TIOCSTI: > + args->cmd = TIOCSTI; > + return ioctl(p, (struct ioctl_args *)args, retval); > + > case LINUX_TIOCGWINSZ: > args->cmd = TIOCGWINSZ; > return ioctl(p, (struct ioctl_args *)args, retval); -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Wed Oct 15 02:06:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA01730 for emulation-outgoing; Wed, 15 Oct 1997 02:06:44 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA01690 for ; Wed, 15 Oct 1997 02:06:35 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.gsoft.com.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id SAA02470; Wed, 15 Oct 1997 18:33:09 +0930 (CST) Message-Id: <199710150903.SAA02470@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: Mike Smith , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Wed, 15 Oct 1997 11:08:19 +0200." <19971015110819.62289@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Oct 1997 18:33:08 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > When I set the DISPLAY variable to a remote host the program > > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > > > Obviously. What sort of remote display are you trying to use? > > xdpyinfo: > > vendor string: X Inside Inc. Which AccelX version? > default screen number: 0 ... > screen #0: ... > depth of root window: 24 planes Ok, so this isn't the Linux-Motif-16bpp problem. Drat. Do you get any errors out of it at all? Is the binary linked shared or static? Which Linux release is it linked for? Does it use Motif at all? > > Could you apply this to /sys/i386/linux/linux_ioctl.c and see if it > > appears to work? If so, I'll commit it. > > Will try that. OK, thanks. mike From owner-freebsd-emulation Wed Oct 15 04:32:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA28907 for emulation-outgoing; Wed, 15 Oct 1997 04:32:52 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA28896 for ; Wed, 15 Oct 1997 04:32:49 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id NAA06896; Wed, 15 Oct 1997 13:33:12 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id NAA11696; Wed, 15 Oct 1997 13:42:18 +0200 (MEST) Message-ID: <19971015134217.55883@gil.physik.rwth-aachen.de> Date: Wed, 15 Oct 1997 13:42:17 +0200 From: Christoph Kukulies To: Mike Smith Cc: Christoph Kukulies , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <19971015110819.62289@gil.physik.rwth-aachen.de> <199710150903.SAA02470@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710150903.SAA02470@word.smith.net.au>; from Mike Smith on Wed, Oct 15, 1997 at 06:33:08PM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 15, 1997 at 06:33:08PM +0930, Mike Smith wrote: > > > > When I set the DISPLAY variable to a remote host the program > > > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > > > > > Obviously. What sort of remote display are you trying to use? > > > > xdpyinfo: > > > > vendor string: X Inside Inc. > > Which AccelX version? Xaccel 1.3 (build 1302) > > > default screen number: 0 > ... > > screen #0: > ... > > depth of root window: 24 planes > > Ok, so this isn't the Linux-Motif-16bpp problem. Drat. Do you get any > errors out of it at all? Is the binary linked shared or static? Which > Linux release is it linked for? Does it use Motif at all? I assume for a linux 2.x. I would have to ask the Maple people. The README says linux 2.0.0 or higher with ELF support. xmaple is a bourne shell script that invokes: exec maple -x $* maple in turn is also a borne script that invokes finally: exec ${MAPLE}/$MAPLE_SYS_BIN/xmaplev4 $IPARAM $PARAM file xmaplev4: xmaplev4: ELF 32-bit LSB executable, Intel 80386, version 1 brandelf ./xmaplev4 No such file ./xmaplev4. ??? Yes, it uses Motif. Running the binary locally (though not on the 24 bit depth display) works fine. > > > > Could you apply this to /sys/i386/linux/linux_ioctl.c and see if it > > > appears to work? If so, I'll commit it. > > > > Will try that. > > OK, thanks. > > mike > -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Wed Oct 15 07:06:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA16700 for emulation-outgoing; Wed, 15 Oct 1997 07:06:27 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA16559 for ; Wed, 15 Oct 1997 07:04:42 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id XAA00878; Wed, 15 Oct 1997 23:30:25 +0930 (CST) Message-Id: <199710151400.XAA00878@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: Mike Smith , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Wed, 15 Oct 1997 13:42:17 +0200." <19971015134217.55883@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Oct 1997 23:30:23 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > On Wed, Oct 15, 1997 at 06:33:08PM +0930, Mike Smith wrote: > > > > > When I set the DISPLAY variable to a remote host the program > > > > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > > > > > > > Obviously. What sort of remote display are you trying to use? > > > > > > xdpyinfo: > > > > > > vendor string: X Inside Inc. > > > > Which AccelX version? > > Xaccel 1.3 (build 1302) Have you tried with other servers? > > Ok, so this isn't the Linux-Motif-16bpp problem. Drat. Do you get any > > errors out of it at all? Is the binary linked shared or static? Which > > Linux release is it linked for? Does it use Motif at all? > > I assume for a linux 2.x. I would have to ask the Maple people. > The README says linux 2.0.0 or higher with ELF support. OK, sufficiently recent that we should run it just fine. > Yes, it uses Motif. Running the binary locally (though > not on the 24 bit depth display) works fine. Uh, sorry, care to clarify that a little? Do you have it running on a local display at another depth? What server? What depth? If you insist on an IP transport (DISPLAY=aaa.bbb.ccc.ddd:0.0) does it barf? mike From owner-freebsd-emulation Wed Oct 15 07:20:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA17696 for emulation-outgoing; Wed, 15 Oct 1997 07:20:31 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from huset.fm.unit.no (huset.math.ntnu.no [129.241.211.212]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id HAA17681 for ; Wed, 15 Oct 1997 07:20:24 -0700 (PDT) (envelope-from arnej@stud.math.ntnu.no) Message-Id: <199710151420.HAA17681@hub.freebsd.org> Received: (qmail 17717 invoked from network); 15 Oct 1997 14:20:08 -0000 Received: from huset.math.ntnu.no (HELO stud.math.ntnu.no) (129.241.211.212) by huset.math.ntnu.no with SMTP; 15 Oct 1997 14:20:08 -0000 To: kuku@gilberto.physik.RWTH-Aachen.DE Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-Reply-To: Your message of "Wed, 15 Oct 1997 09:19:37 +0200 (MEST)" References: <199710150719.JAA10735@gil.physik.rwth-aachen.de> X-Mailer: Mew version 1.06 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Wed, 15 Oct 1997 16:20:08 +0200 From: Arne Henrik Juul Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Christoph Kukulies wrote: > When I set the DISPLAY variable to a remote host the program > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > (it's a 2.2.2 installation) I had the same problem, but I solved it by just using linux's libc.so.5.3.12 instead of libc.so.5.4.23 (which is installed by ports/emulators/linux_lib now). Looking at the nearby linux machines they were all using libc 5.3.12 anyway. The crash is related to hostname lookups somehow, if you use the IP address in $DISPLAY it works. It may be a bug in linux libc and/or maple for all I know, I haven't been able to find a linux machine with libc 5.4.23 to test maple on. > Running the non GUI version (maple) it comes up fine but (since I didn't > know how to quit) when I send it the Quit signal (^\) it comes with > > LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x12 not implemented > > and finally core dumps and quits through the FreeBSD signal mechanism. this I didn't try - I know that "quit" works with maple :-) however, it's probably (from a nearby linux machine): asm/ioctls.h:#define TIOCSTI 0x5412 - Arne H. J. From owner-freebsd-emulation Wed Oct 15 08:16:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA23094 for emulation-outgoing; Wed, 15 Oct 1997 08:16:37 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA23089 for ; Wed, 15 Oct 1997 08:16:32 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id RAA11541; Wed, 15 Oct 1997 17:16:20 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id RAA12481; Wed, 15 Oct 1997 17:25:29 +0200 (MEST) Message-ID: <19971015172529.09649@gil.physik.rwth-aachen.de> Date: Wed, 15 Oct 1997 17:25:29 +0200 From: Christoph Kukulies To: Arne Henrik Juul Cc: kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <199710150719.JAA10735@gil.physik.rwth-aachen.de> <199710151429.QAA12295@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710151429.QAA12295@gil.physik.rwth-aachen.de>; from Arne Henrik Juul on Wed, Oct 15, 1997 at 04:20:08PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 15, 1997 at 04:20:08PM +0200, Arne Henrik Juul wrote: > > Christoph Kukulies wrote: > > When I set the DISPLAY variable to a remote host the program > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > > > (it's a 2.2.2 installation) > > I had the same problem, but I solved it by just using linux's > libc.so.5.3.12 instead of libc.so.5.4.23 (which is installed > by ports/emulators/linux_lib now). Looking at the nearby linux > machines they were all using libc 5.3.12 anyway. > > The crash is related to hostname lookups somehow, if you use > the IP address in $DISPLAY it works. It may be a bug in linux > libc and/or maple for all I know, I haven't been able to find > a linux machine with libc 5.4.23 to test maple on. I will try that also: Linux 2.0.0: libc.so -> /lib/libc.so.5 Runs fine remotely. > > > Running the non GUI version (maple) it comes up fine but (since I didn't > > know how to quit) when I send it the Quit signal (^\) it comes with > > > > LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x12 not implemented > > > > and finally core dumps and quits through the FreeBSD signal mechanism. > > this I didn't try - I know that "quit" works with maple :-) Well, yes, quit(); > however, it's probably (from a nearby linux machine): > asm/ioctls.h:#define TIOCSTI 0x5412 > > - Arne H. J. -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Wed Oct 15 17:17:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA20747 for emulation-outgoing; Wed, 15 Oct 1997 17:17:51 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA20672 for ; Wed, 15 Oct 1997 17:16:40 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id JAA02448; Thu, 16 Oct 1997 09:43:01 +0930 (CST) Message-Id: <199710160013.JAA02448@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Arne Henrik Juul cc: kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Wed, 15 Oct 1997 16:20:08 +0200." <199710151420.HAA17681@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Oct 1997 09:42:58 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Christoph Kukulies wrote: > > When I set the DISPLAY variable to a remote host the program > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > > > (it's a 2.2.2 installation) > > I had the same problem, but I solved it by just using linux's > libc.so.5.3.12 instead of libc.so.5.4.23 (which is installed > by ports/emulators/linux_lib now). Looking at the nearby linux > machines they were all using libc 5.3.12 anyway. Great. We went to 5.4.x because it was required by StarOffice. I wonder if there's a newer version that fixes this problem. > The crash is related to hostname lookups somehow, if you use > the IP address in $DISPLAY it works. It may be a bug in linux > libc and/or maple for all I know, I haven't been able to find > a linux machine with libc 5.4.23 to test maple on. Hmm. What settings are you using in /compat/linux/etc/host.conf? mike From owner-freebsd-emulation Wed Oct 15 17:19:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA20815 for emulation-outgoing; Wed, 15 Oct 1997 17:19:20 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA20716 for ; Wed, 15 Oct 1997 17:17:25 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id JAA02463; Thu, 16 Oct 1997 09:43:48 +0930 (CST) Message-Id: <199710160013.JAA02463@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: Arne Henrik Juul , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Wed, 15 Oct 1997 17:25:29 +0200." <19971015172529.09649@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Oct 1997 09:43:46 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > The crash is related to hostname lookups somehow, if you use > > the IP address in $DISPLAY it works. It may be a bug in linux > > libc and/or maple for all I know, I haven't been able to find > > a linux machine with libc 5.4.23 to test maple on. > > I will try that also: > Linux 2.0.0: > libc.so -> /lib/libc.so.5 libc.so.5 is a link as well; what's the real version number of the library? mike From owner-freebsd-emulation Thu Oct 16 00:00:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA10529 for emulation-outgoing; Thu, 16 Oct 1997 00:00:06 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA10468 for ; Thu, 16 Oct 1997 00:00:00 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id JAA27917; Thu, 16 Oct 1997 09:00:20 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id JAA15715; Thu, 16 Oct 1997 09:09:44 +0200 (MEST) Message-ID: <19971016090943.63087@gil.physik.rwth-aachen.de> Date: Thu, 16 Oct 1997 09:09:43 +0200 From: Christoph Kukulies To: Mike Smith Cc: Arne Henrik Juul , kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <199710151420.HAA17681@hub.freebsd.org> <199710160013.JAA02448@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710160013.JAA02448@word.smith.net.au>; from Mike Smith on Thu, Oct 16, 1997 at 09:42:58AM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Oct 16, 1997 at 09:42:58AM +0930, Mike Smith wrote: > > > > Christoph Kukulies wrote: > > > When I set the DISPLAY variable to a remote host the program > > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > > > > > > (it's a 2.2.2 installation) > > > > I had the same problem, but I solved it by just using linux's > > libc.so.5.3.12 instead of libc.so.5.4.23 (which is installed > > by ports/emulators/linux_lib now). Looking at the nearby linux > > machines they were all using libc 5.3.12 anyway. > > Great. We went to 5.4.x because it was required by StarOffice. I > wonder if there's a newer version that fixes this problem. > > > The crash is related to hostname lookups somehow, if you use > > the IP address in $DISPLAY it works. It may be a bug in linux > > libc and/or maple for all I know, I haven't been able to find > > a linux machine with libc 5.4.23 to test maple on. > > Hmm. What settings are you using in /compat/linux/etc/host.conf? /compat/linux/etc/host.conf: order hosts, bind multi on There is no /compat/linux/etc/hosts btw. but creating one doesn't change the seg fault either. > > mike > -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Thu Oct 16 00:09:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA10955 for emulation-outgoing; Thu, 16 Oct 1997 00:09:32 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA10950 for ; Thu, 16 Oct 1997 00:09:26 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id JAA28322; Thu, 16 Oct 1997 09:09:20 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id JAA15762; Thu, 16 Oct 1997 09:18:44 +0200 (MEST) Message-ID: <19971016091843.09142@gil.physik.rwth-aachen.de> Date: Thu, 16 Oct 1997 09:18:43 +0200 From: Christoph Kukulies To: Mike Smith Cc: Christoph Kukulies , Arne Henrik Juul , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <19971015172529.09649@gil.physik.rwth-aachen.de> <199710160013.JAA02463@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710160013.JAA02463@word.smith.net.au>; from Mike Smith on Thu, Oct 16, 1997 at 09:43:46AM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Oct 16, 1997 at 09:43:46AM +0930, Mike Smith wrote: > > > The crash is related to hostname lookups somehow, if you use > > > the IP address in $DISPLAY it works. It may be a bug in linux > > > libc and/or maple for all I know, I haven't been able to find > > > a linux machine with libc 5.4.23 to test maple on. > > > > I will try that also: > > Linux 2.0.0: > > libc.so -> /lib/libc.so.5 > > libc.so.5 is a link as well; what's the real version number of the > library? It was a link to /compat/linux/lib/libc.so.5 -> libc.so.5.4.23 I changed it to /compat/linux/lib/libc.so.5 -> libc.so.5.3.12 to no avail. Or do I have to do some linux_ldconfig -m? Can one use a linux_ldd? > > mike > -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Thu Oct 16 00:15:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA11223 for emulation-outgoing; Thu, 16 Oct 1997 00:15:55 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (word.smith.net.au [202.0.75.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA11217 for ; Thu, 16 Oct 1997 00:15:49 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id QAA01782; Thu, 16 Oct 1997 16:42:42 +0930 (CST) Message-Id: <199710160712.QAA01782@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Thu, 16 Oct 1997 09:18:43 +0200." <19971016091843.09142@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Oct 1997 16:42:40 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > libc.so.5 is a link as well; what's the real version number of the > > library? > > It was a link to /compat/linux/lib/libc.so.5 -> libc.so.5.4.23 > I changed it to > /compat/linux/lib/libc.so.5 -> libc.so.5.3.12 > > to no avail. > > Or do I have to do some linux_ldconfig -m? > Can one use a linux_ldd? You will need to say '/compat/linux/sbin/ldconfig' to update the hints file after changing the library link. mike From owner-freebsd-emulation Thu Oct 16 00:43:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA12668 for emulation-outgoing; Thu, 16 Oct 1997 00:43:53 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA12663 for ; Thu, 16 Oct 1997 00:43:48 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id JAA00558; Thu, 16 Oct 1997 09:44:13 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id JAA15881; Thu, 16 Oct 1997 09:53:38 +0200 (MEST) Message-ID: <19971016095337.09114@gil.physik.rwth-aachen.de> Date: Thu, 16 Oct 1997 09:53:37 +0200 From: Christoph Kukulies To: Mike Smith Cc: Christoph Kukulies , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <19971016091843.09142@gil.physik.rwth-aachen.de> <199710160712.QAA01782@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710160712.QAA01782@word.smith.net.au>; from Mike Smith on Thu, Oct 16, 1997 at 04:42:40PM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Oct 16, 1997 at 04:42:40PM +0930, Mike Smith wrote: > > > libc.so.5 is a link as well; what's the real version number of the > > > library? > > > > It was a link to /compat/linux/lib/libc.so.5 -> libc.so.5.4.23 > > I changed it to > > /compat/linux/lib/libc.so.5 -> libc.so.5.3.12 > > > > to no avail. > > > > Or do I have to do some linux_ldconfig -m? > > Can one use a linux_ldd? > > You will need to say '/compat/linux/sbin/ldconfig' to update the hints > file after changing the library link. Strange. When I do a ln -s libc.so.5.3.12 libc.so.5 manually in /compat/ linux/lib the link is OK. Doing a /compat/linux/sbin/ldconfig afterwards the link changes back to libc.so.5.4.23. Renaming libc.so.5.4.23 to libc.so.5.4.23.foo and doing the ldconfig gives: leibniz# mv libc.so.5.4.23 libc.so.5.4.23.foo leibniz# ln -sf libc.so.5.3.12 libc.so.5 leibniz# /compat/linux/sbin/ldconfig /compat/linux/sbin/ldconfig: warning: can't lstat /usr/lib/libc.so (No such file or directory), skipping leibniz# ls -l libc.so.5.3.12 -rwxr-xr-x 1 root wheel 705995 Oct 25 1996 libc.so.5.3.12 leibniz# ls -l libc* lrwxrwxrwx 1 root wheel 14 Sep 13 18:45 libc.so.4 -> libc.so.4.5.26 -rwxr-xr-x 1 root bin 623620 Nov 9 1994 libc.so.4.5.26 lrwxrwxrwx 1 root wheel 18 Oct 16 09:34 libc.so.5 -> libc.so.5.4.23.foo -rwxr-xr-x 1 root bin 562683 May 19 1995 libc.so.5.0.9 -rwxr-xr-x 1 root wheel 705995 Oct 25 1996 libc.so.5.3.12 -rwxr-xr-x 1 root wheel 1861963 Apr 10 1997 libc.so.5.4.23.foo Stumped > > mike > -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Thu Oct 16 00:52:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA13282 for emulation-outgoing; Thu, 16 Oct 1997 00:52:01 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (word.smith.net.au [202.0.75.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA13233 for ; Thu, 16 Oct 1997 00:51:53 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id RAA01931; Thu, 16 Oct 1997 17:18:50 +0930 (CST) Message-Id: <199710160748.RAA01931@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Thu, 16 Oct 1997 09:53:37 +0200." <19971016095337.09114@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Oct 1997 17:18:49 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > You will need to say '/compat/linux/sbin/ldconfig' to update the hints > > file after changing the library link. > > Strange. When I do a ln -s libc.so.5.3.12 libc.so.5 manually in /compat/ > linux/lib the link is OK. > > Doing a /compat/linux/sbin/ldconfig afterwards the link changes back > to libc.so.5.4.23. Whoops, sorry. I forgot it does that. Move the 5.4.23 library out of the directory, or rename it to something else before running ldconfig. It applies the Linux "newer must be better" philosophy, which isn't always good. mike From owner-freebsd-emulation Thu Oct 16 03:34:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA20779 for emulation-outgoing; Thu, 16 Oct 1997 03:34:50 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id DAA20774 for ; Thu, 16 Oct 1997 03:34:44 -0700 (PDT) (envelope-from marc@bowtie.nl) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 324 on Thu, 16 Oct 1997 10:34:39 GMT; id KAA00324 efrom: marc@bowtie.nl; eto: UNKNOWN Received: from localhost (localhost [127.0.0.1]) by bowtie.nl (8.8.2/8.7.3) with ESMTP id MAA06512; Thu, 16 Oct 1997 12:33:31 +0200 (MET DST) Message-Id: <199710161033.MAA06512@bowtie.nl> X-Mailer: exmh version 1.6.7 5/3/96 To: Arne Henrik Juul cc: kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: arnej's message of Wed, 15 Oct 1997 16:20:08 +0200. <199710151420.HAA17681@hub.freebsd.org> Reply-to: marc@bowtie.nl Date: Thu, 16 Oct 1997 12:33:30 +0200 From: Marc van Kempen Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Just came across this in comp.os.linux.development.apps: It seems to be related to the Xaccel server. =========================================================== Hello! Recently I got MapleVR4 for Linux. The ascii Version of maple runs fine (start command "maple"). But I can not start the X11 Version via "xmaple". After some seconds I get an segmentation violation. Do I need a Motif Runtime Licence? I am running X11R6 without Motif. Could it be that there is a wrong library version of libc ( I am using Version 5.4.33, must be the newest, I think) My Konfiguration is : 200 MHz Pentium, 64 MB Ram, Linuxkernel 2.0.30 !!!!!! NO Motif Runtime !!!!!!! fvwm2 Window Manager SVGA Driver (3.3.1) for Matrox Mystique -- or sometimes -- Accelerated-X Driver 2.1 (xmaple shows a segm. violation, too) Please respond via eMail if possible, because I don't read this newsgroup on a regularly basis. =========================================================== >> Do I need a Motif Runtime Licence? I am running X11R6 without Motif. >> Could it be that there is a wrong library version of libc ( I am >> using Version 5.4.33, must be the newest, I think) > >I have MapleVR3. It runs fine on both linux-2.0.30-pre10 and 2.1.57 in both >command-line and X interfaces. I'm using libc-5.4.38 and have Motif, but my >version is statically linked, so that shouldn't be causing you the >problem.... Either it's specific to you or specific to MapleVR4, I guess. I'm running XFree 3.3, libc5.4.33 and MapleVR4 and all is well. Can you give some more details. If it's a legit copy of Maple their support people are pretty good with linux. Albert ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ---------------------------------------------------- From owner-freebsd-emulation Thu Oct 16 04:09:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA21836 for emulation-outgoing; Thu, 16 Oct 1997 04:09:04 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA21831 for ; Thu, 16 Oct 1997 04:08:58 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id NAA05017; Thu, 16 Oct 1997 13:09:20 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id NAA16519; Thu, 16 Oct 1997 13:18:48 +0200 (MEST) Message-ID: <19971016131848.47967@gil.physik.rwth-aachen.de> Date: Thu, 16 Oct 1997 13:18:48 +0200 From: Christoph Kukulies To: marc@bowtie.nl Cc: Arne Henrik Juul , kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <199710151420.HAA17681@hub.freebsd.org> <199710161033.MAA06512@bowtie.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710161033.MAA06512@bowtie.nl>; from Marc van Kempen on Thu, Oct 16, 1997 at 12:33:30PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Oct 16, 1997 at 12:33:30PM +0200, Marc van Kempen wrote: > Just came across this in comp.os.linux.development.apps: > > It seems to be related to the Xaccel server. > > =========================================================== > > Hello! > > Recently I got MapleVR4 for Linux. The ascii Version of maple runs > fine (start command "maple"). But I can not start the X11 Version via > "xmaple". After some seconds I get an segmentation violation. > > Do I need a Motif Runtime Licence? I am running X11R6 without Motif. > Could it be that there is a wrong library version of libc ( I am > using Version 5.4.33, must be the newest, I think) > > My Konfiguration is : 200 MHz Pentium, > 64 MB Ram, > Linuxkernel 2.0.30 > !!!!!! NO Motif Runtime !!!!!!! > fvwm2 Window Manager > SVGA Driver (3.3.1) for Matrox Mystique > -- or sometimes -- > Accelerated-X Driver 2.1 (xmaple shows a segm. violation, too) > > Please respond via eMail if possible, because I don't read this newsgroup > on a regularly basis. > > > =========================================================== > > > >> Do I need a Motif Runtime Licence? I am running X11R6 without Motif. > >> Could it be that there is a wrong library version of libc ( I am > >> using Version 5.4.33, must be the newest, I think) > > > >I have MapleVR3. It runs fine on both linux-2.0.30-pre10 and 2.1.57 in both > >command-line and X interfaces. I'm using libc-5.4.38 and have Motif, but my > >version is statically linked, so that shouldn't be causing you the > >problem.... Either it's specific to you or specific to MapleVR4, I guess. > > I'm running XFree 3.3, libc5.4.33 and MapleVR4 and all is well. Can you > give some more details. If it's a legit copy of Maple their support people > are pretty good with linux. > > Albert > > ---------------------------------------------------- > Marc van Kempen BowTie Technology > Email: marc@bowtie.nl WWW & Databases > tel. +31 40 2 43 20 65 > fax. +31 40 2 44 21 86 http://www.bowtie.nl > ---------------------------------------------------- > > Thanks Marc, the problem here seems to be different: It occurs only when running xmaple with DISPLAY set to :0 Setting it to xxx.www.yyy.zzz:0 explicitly works. Using libc.so.5.3.12 instead of libc.so.5.4.23 seems to cure the problem as well. The question remains why libc.so.5.4.23 (linux) doesn't work with the FreeBSD emulation. -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Thu Oct 16 06:14:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA27677 for emulation-outgoing; Thu, 16 Oct 1997 06:14:48 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from huset.fm.unit.no (huset.math.ntnu.no [129.241.211.212]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA27667 for ; Thu, 16 Oct 1997 06:14:37 -0700 (PDT) (envelope-from arnej@stud.math.ntnu.no) Message-Id: <199710161314.GAA27667@hub.freebsd.org> Received: (qmail 29344 invoked from network); 16 Oct 1997 13:14:34 -0000 Received: from huset.math.ntnu.no (HELO stud.math.ntnu.no) (129.241.211.212) by huset.math.ntnu.no with SMTP; 16 Oct 1997 13:14:34 -0000 To: freebsd-emulation@freebsd.org Subject: SCO/ibcs2 shared libraries X-Mailer: Mew version 1.06 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Thu, 16 Oct 1997 15:14:34 +0200 From: Arne Henrik Juul Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Has anyone been able to get any program using SCO-style shared libraries (of the coff variants, like /shlib/libc_s) to work under the FreeBSD emulation? I've got a program using the shared library /shlib/libXR4sco_s that just seg faults right after execve, while another (using libc_s and libnsl_s) actually crashes the machine - see my PR kern/4774. Both programs work under NetBSD, and I think it's related to the shared library code as I have a couple of statically linked ibcs2 programs and they work OK. - Arne H. J. From owner-freebsd-emulation Thu Oct 16 06:47:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA29563 for emulation-outgoing; Thu, 16 Oct 1997 06:47:19 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA29318 for ; Thu, 16 Oct 1997 06:42:52 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id XAA00462; Thu, 16 Oct 1997 23:03:57 +0930 (CST) Message-Id: <199710161333.XAA00462@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: marc@bowtie.nl cc: Arne Henrik Juul , kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Thu, 16 Oct 1997 12:33:30 +0200." <199710161033.MAA06512@bowtie.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Oct 1997 23:03:56 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Just came across this in comp.os.linux.development.apps: > > It seems to be related to the Xaccel server. I don't read that from the following message at all; they're saying it dies both with the Xaccel server and with the prototype XFree86 Matrox server. So far it sounds like a Linux libc bug; the following respondent indicates they're using a later libc than we ship (5.4.33/38 as opposed to our 5.4.23), so it's possible we need to bump the linux_lib port ASAP. Then again there's suggestion that on one system with 5.4.33 it works, and one where it breaks. The question "if it's a legit copy" speaks volumes about the Linux community, IMHO. mike From owner-freebsd-emulation Thu Oct 16 06:50:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA29862 for emulation-outgoing; Thu, 16 Oct 1997 06:50:51 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA29710 for ; Thu, 16 Oct 1997 06:49:30 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id XAA00542; Thu, 16 Oct 1997 23:15:00 +0930 (CST) Message-Id: <199710161345.XAA00542@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: freebsd-emulation@freebsd.org Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Thu, 16 Oct 1997 13:18:48 +0200." <19971016131848.47967@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Oct 1997 23:14:58 +0930 From: Mike Smith Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > the problem here seems to be different: > > It occurs only when running xmaple with DISPLAY set to > :0 > > Setting it to > > xxx.www.yyy.zzz:0 > > explicitly works. > > Using libc.so.5.3.12 instead of libc.so.5.4.23 seems to > cure the problem as well. The question remains why > libc.so.5.4.23 (linux) doesn't work with the FreeBSD > emulation. It sounds like an interaction between xmaple and the resolver; there have also been some resolver problems reported with StarOffice that I haven't been able to reproduce (maybe because I have a local nameserver?). Can you look for and try a later Linux libc? They are often found on Sunsite or similar heavy-duty Linux FTP servers, or you can try a search for "libc.5.4.38" and see what you turn up. Thanks, mike From owner-freebsd-emulation Thu Oct 16 11:37:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA16490 for emulation-outgoing; Thu, 16 Oct 1997 11:37:19 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from kalkoen.sateh.com (kalkoen.sateh.com [194.151.25.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA16480 for ; Thu, 16 Oct 1997 11:37:06 -0700 (PDT) (envelope-from stefan@kalkoen.sateh.com) Received: (from stefan@localhost) by kalkoen.sateh.com (8.8.5/8.8.5) id UAA10692; Thu, 16 Oct 1997 20:37:54 +0200 (CEST) Message-ID: <19971016203754.18493@kalkoen.sateh.com> Date: Thu, 16 Oct 1997 20:37:54 +0200 From: Stefan Arentz To: freebsd-emulation@freebsd.org Subject: Linux Emulation - clone() Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Folks, I'm trying to implement the linux clone() system call in 2.2.2. It looks like this can be done with the FreeBSD rfork call except that Linux also allows you to set the user stack pointer for the new process. pid_t clone(void *sp, unsigned long flags) I'm still reading 'The design and implementation of the 4.4BSD operating system' to get a clue about where to setup the stack pointer, but it's still a big mystery to me ;) Maybe someone can point me in the right direction. - Stefan From owner-freebsd-emulation Fri Oct 17 06:35:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA11678 for emulation-outgoing; Fri, 17 Oct 1997 06:35:15 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA11671 for ; Fri, 17 Oct 1997 06:35:11 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id PAA07459; Fri, 17 Oct 1997 15:34:52 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id PAA22470; Fri, 17 Oct 1997 15:44:40 +0200 (MEST) Message-ID: <19971017154439.55593@gil.physik.rwth-aachen.de> Date: Fri, 17 Oct 1997 15:44:39 +0200 From: Christoph Kukulies To: Mike Smith Cc: Christoph Kukulies , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <199710150719.JAA10735@gil.physik.rwth-aachen.de> <199710150826.RAA02352@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199710150826.RAA02352@word.smith.net.au>; from Mike Smith on Wed, Oct 15, 1997 at 05:56:12PM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 15, 1997 at 05:56:12PM +0930, Mike Smith wrote: > > > > When running xmaple (Maple V4 R5, the Linux version - there ain't > > a FreeBSD one), to things seem strange : > > > > When I set the DISPLAY variable to a remote host the program > > just seg faults (segmentation violation) and dies. It shouldn't IMO. > I'm including a kdump excerpt hoping that someone knowing of the subtleties of old.receiv .. 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libXt.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libXt.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libSM.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libSM.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libICE.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libICE.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libXext.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libXext.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libX11.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libX11.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libX11.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libX11.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL open(0xefbfd1a4,0,0) 19073 xmaplev4 NAMI "/compat/linux/home/kuku/jdk/lib/i386/libICE.so.6" 19073 xmaplev4 NAMI "/home/kuku/jdk/lib/i386/libICE.so.6" 19073 xmaplev4 RET open JUSTRETURN 19073 xmaplev4 CALL #91(0x102ac000,0x1225) 19073 xmaplev4 RET #91 0 19073 xmaplev4 CALL old.recvfrom(0x8048000,0x262aae,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x102ae000,0x3db0d,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x102f0000,0xfc6d,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x10302000,0x771e5,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x1037f000,0x6cdc,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x10388000,0x6514,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x10391000,0x83303,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x1044d000,0x6b31,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL old.recvfrom(0x10456000,0x10ee0,0x5) 19073 xmaplev4 RET old.recvfrom 0 19073 xmaplev4 CALL mkdir(0) 19073 xmaplev4 RET mkdir 0 19073 xmaplev4 CALL getlogin 19073 xmaplev4 RET getlogin 1005/0x3ed 19073 xmaplev4 CALL getuid 19073 xmaplev4 RET getuid 1005/0x3ed 19073 xmaplev4 CALL getgid 19073 xmaplev4 RET getgid 1005/0x3ed 19073 xmaplev4 CALL setlogin 19073 xmaplev4 RET setlogin 1005/0x3ed 19073 xmaplev4 CALL ktrace(0x82db1b8) 19073 xmaplev4 RET ktrace 137212344/0x82db1b8 19073 xmaplev4 CALL ktrace(0x82dc000) 19073 xmaplev4 RET ktrace 137216000/0x82dc000 19073 xmaplev4 CALL ktrace(0x82df000) 19073 xmaplev4 RET ktrace 137228288/0x82df000 19073 xmaplev4 CALL old.recv(0x1,0xefbfd2d4) 19073 xmaplev4 RET old.recv 3 19073 xmaplev4 CALL old.recv(0xe,0xefbfd2c4) 19073 xmaplev4 RET old.recv -1 errno -22 Unknown error: -22 19073 xmaplev4 CALL listen(0xefbfc514,0xefbfc4d4) 19073 xmaplev4 NAMI "/compat/linux/etc/locale/C/libc.cat" 19073 xmaplev4 NAMI "/etc/locale/C/libc.cat" 19073 xmaplev4 RET listen JUSTRETURN 19073 xmaplev4 CALL listen(0xefbfc514,0xefbfc4d4) 19073 xmaplev4 NAMI "/compat/linux/usr/share/locale/C/libc.cat" 19073 xmaplev4 NAMI "/usr/share/locale/C/libc.cat" 19073 xmaplev4 RET listen JUSTRETURN 19073 xmaplev4 CALL listen(0xefbfc514,0xefbfc4d4) 19073 xmaplev4 NAMI "/compat/linux/usr/share/locale/libc/C" 19073 xmaplev4 NAMI "/usr/share/locale/libc/C" 19073 xmaplev4 RET listen JUSTRETURN 19073 xmaplev4 CALL listen(0xefbfc514,0xefbfc4d4) 19073 xmaplev4 NAMI "/compat/linux/usr/share/locale/C/libc.cat" 19073 xmaplev4 NAMI "/usr/share/locale/C/libc.cat" 19073 xmaplev4 RET listen JUSTRETURN 19073 xmaplev4 CALL listen(0xefbfc514,0xefbfc4d4) 19073 xmaplev4 NAMI "/compat/linux/usr/local/share/locale/C/libc.cat" 19073 xmaplev4 NAMI "/usr/local/share/locale/C/libc.cat" 19073 xmaplev4 RET listen JUSTRETURN 19073 xmaplev4 CALL open(0x1040d9a9,0,0x10419368) 19073 xmaplev4 NAMI "/compat/linux/etc/host.conf" 19073 xmaplev4 NAMI "/compat/linux" 19073 xmaplev4 NAMI "/compat/linux/etc/host.conf" 19073 xmaplev4 RET open 4 19073 xmaplev4 CALL old.sigvec(0x4,0xefbfc964) 19073 xmaplev4 RET old.sigvec 0 19073 xmaplev4 CALL reboot(0x4,0x3,0x10419368) 19073 xmaplev4 RET reboot 0 19073 xmaplev4 PSIG SIGSEGV SIG_DFL 19073 xmaplev4 NAMI "xmaplev4.core" -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-emulation Fri Oct 17 08:24:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA16910 for emulation-outgoing; Fri, 17 Oct 1997 08:24:03 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA16870 for ; Fri, 17 Oct 1997 08:23:58 -0700 (PDT) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id JAA18999; Fri, 17 Oct 1997 09:23:55 -0600 (MDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id JAA20263; Fri, 17 Oct 1997 09:23:52 -0600 (MDT) Date: Fri, 17 Oct 1997 09:23:52 -0600 (MDT) Message-Id: <199710171523.JAA20263@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Arne Henrik Juul Cc: freebsd-emulation@freebsd.org Subject: Re: SCO/ibcs2 shared libraries In-Reply-To: <199710161314.GAA27667@hub.freebsd.org> References: <199710161314.GAA27667@hub.freebsd.org> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Arne Henrik Juul writes: > Has anyone been able to get any program using SCO-style shared > libraries (of the coff variants, like /shlib/libc_s) to work under > the FreeBSD emulation? Yes, but that was awhile ago in 2.1/early 2.2 days. I don't have/use SCO anymore (thank goodness), so I can't even test it. But, it *used* to work, and there haven't been that many changes to the emulation code since then. Nate From owner-freebsd-emulation Fri Oct 17 14:38:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA10043 for emulation-outgoing; Fri, 17 Oct 1997 14:38:07 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA10023 for ; Fri, 17 Oct 1997 14:37:53 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id QAA07353; Fri, 17 Oct 1997 16:37:19 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id QAA06322; Fri, 17 Oct 1997 16:36:47 -0500 Message-ID: <19971017163647.61997@right.PCS> Date: Fri, 17 Oct 1997 16:36:47 -0500 From: Jonathan Lemon To: Christoph Kukulies Cc: Mike Smith , freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) References: <199710150719.JAA10735@gil.physik.rwth-aachen.de> <199710150826.RAA02352@word.smith.net.au> <19971017154439.55593@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <19971017154439.55593@gil.physik.rwth-aachen.de>; from Christoph Kukulies on Oct 10, 1997 at 03:44:39PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Oct 10, 1997 at 03:44:39PM +0200, Christoph Kukulies wrote: > I'm including a kdump excerpt hoping that someone knowing of the > subtleties of old.receiv .. Note that ktrace just records the syscall numbers, and that kdump prints these out using a BSD syscall mapping. This means that the names printed out for a Linux program are completely bogus. > 19073 xmaplev4 CALL old.recv(0x1,0xefbfd2d4) > 19073 xmaplev4 RET old.recv 3 > 19073 xmaplev4 CALL old.recv(0xe,0xefbfd2c4) > 19073 xmaplev4 RET old.recv -1 errno -22 Unknown error: -22 old.recv == syscall #102 == linux_socketcall. There are only 4 sub-routines that can return EINVAL (-22): linux_socket, linux_socketpair, linux_setsockopt, linux_getsockopt. I'd suggest modifying these routines (in linux/linux_socket.c) to print out the parameters that is causing it to crash. (Assuming, of course, the above error return is causing the crash) -- Jonathan