From owner-freebsd-emulation Tue Sep 29 15:37:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA25964 for freebsd-emulation-outgoing; Tue, 29 Sep 1998 15:37:26 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from couatl.uchicago.edu (couatl.uchicago.edu [128.135.21.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA25930 for ; Tue, 29 Sep 1998 15:37:03 -0700 (PDT) (envelope-from sfarrell@couatl.uchicago.edu) Received: (from sfarrell@localhost) by couatl.uchicago.edu (8.9.1/8.9.0) id RAA03460; Tue, 29 Sep 1998 17:37:06 -0500 (CDT) To: freebsd emulation list Subject: Applix 4.4.1 From: stephen farrell Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: 29 Sep 1998 17:37:06 -0500 Message-ID: <87hfxq4kbx.fsf@couatl.uchicago.edu> Lines: 16 X-Mailer: Gnus v5.6.42/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Just a quick note to say that applix 4.4.1 for linux (the new version which supports office 97 data) works flawlessly on stock fbsd 2.2.7 (for me, to date) -- no special steps required for fbsd. So far I've tested the install, retrieving of office 97 documents (word and excel), email, printing and various other settings. I have not yet succeeded in figuring out how/if the SQL stuff works, but I cannot see why it wouldn't. For more information on this product, see http://linux.applix.com/ -- Steve Farrell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 30 14:30:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA00804 for freebsd-emulation-outgoing; Wed, 30 Sep 1998 14:30:45 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from colin.muc.de (colin.muc.de [193.174.4.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA00759 for ; Wed, 30 Sep 1998 14:30:32 -0700 (PDT) (envelope-from lutz@muc.de) Received: from tavari.muc.de ([193.174.4.22]) by colin.muc.de with SMTP id <140554-3>; Wed, 30 Sep 1998 18:47:20 +0200 Received: (from daemon@localhost) by tavari.muc.de (8.8.8/8.8.7) id SAA03589; Wed, 30 Sep 1998 18:16:32 +0200 (CEST) Received: from ripley(192.168.42.202) by morranon via smap (V2.1) id xma003586; Wed, 30 Sep 98 18:16:18 +0200 From: "Lutz Albers" To: "Mike Smith" , "NESTOR A. MARTINEZ" Cc: "=?iso-8859-1?Q?emulaci=F3n_Freebsd?=" Subject: RE: sybase/oracle Date: Wed, 30 Sep 1998 18:16:08 +0200 Message-ID: <000101bdec8d$a1ed76c0$ca2aa8c0@ripley.tavari.muc.de> 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 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <199809252239.PAA01918@dingo.cdrom.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Where could i get (download) a copy of Sybase and/or Oracle for > evaluation? > > > > Thanks in advance. > > Sybase for Linux is available from www.caldera.com and www.redhat.com. > > Oracle for Linux is available by registering with Oracle at > www.oracle.com. They may not send you a copy, as you're not in the > USA. You can't download Oracle (it's a bit on the too big side). They will ship it outside the US (via DHL), I just picked up my copy. Now the big question: does it run under FreeBSD, and if yes under which version ? -- Lutz Albers, lutz@muc.de, pgp key available from Do not take life too seriously, you will never get out of it alive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Oct 1 06:03:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA13951 for freebsd-emulation-outgoing; Thu, 1 Oct 1998 06:03:30 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from cons.org (knight.cons.org [194.233.237.86]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA13946 for ; Thu, 1 Oct 1998 06:03:28 -0700 (PDT) (envelope-from cracauer@cons.org) Received: (from cracauer@localhost) by cons.org (8.8.8/8.7.3) id PAA07294 for freebsd-emulation@freebsd.org; Thu, 1 Oct 1998 15:03:11 +0200 (CEST) Message-ID: <19981001150310.A7259@cons.org> Date: Thu, 1 Oct 1998 15:03:10 +0200 From: Martin Cracauer To: freebsd-emulation@FreeBSD.ORG Subject: Linux /proc/*/maps emulation Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Moinmoin, I have a Linux application (Franz Allegro Common Lisp 5.0) that needs /proc/*/maps Output from sshd on Linux-2.1.119: /proc/168(oskar)19% cat maps 08048000-08076000 r-xp 00000000 08:02 81595 /usr/local/sbin/sshd1 08076000-08079000 rw-p 0002d000 08:02 81595 /usr/local/sbin/sshd1 08079000-08082000 rwxp 00000000 00:00 0 40000000-40006000 r-xp 00000000 08:02 4074 /lib/ld-linux.so.1 40006000-40007000 rw-p 00005000 08:02 4074 /lib/ld-linux.so.1 40007000-40008000 rw-p 00000000 00:00 0 4000a000-4008c000 r-xp 00000000 08:02 4078 /lib/libc.so.5.4.33 4008c000-40092000 rw-p 00081000 08:02 4078 /lib/libc.so.5.4.33 40092000-400c5000 rw-p 00000000 00:00 0 bfffd000-c0000000 rwxp ffffe000 00:00 0 If I'm not mistaken, this is just a list of mmaped' segments provided by the linker. I don't know enough about linking to proceed. It's a fifo, but I don't know what is connected to the other end. The kernel - why? ld.so? If so, why can Linux ld.so work in FreeBSD's Linux emulation that has no procfs/*/maps I'd welcome hints how to proceed. Thanks Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 Paper: (private) Waldstrasse 200, 22846 Norderstedt, Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Oct 1 07:09:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA23074 for freebsd-emulation-outgoing; Thu, 1 Oct 1998 07:09:44 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from manchester.genrad.com (x227.genrad.co.uk [195.99.3.227]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA23062 for ; Thu, 1 Oct 1998 07:09:39 -0700 (PDT) (envelope-from swindellsr@genrad.co.uk) Date: Thu, 1 Oct 1998 07:09:39 -0700 (PDT) Message-Id: <199810011409.HAA23062@hub.freebsd.org> Received: from CDP275.uk.genrad.com by manchester.genrad.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.0.1460.8) id T6JPGTZG; Thu, 1 Oct 1998 15:09:18 +0100 From: Robert Swindells To: cracauer@cons.org CC: freebsd-emulation@FreeBSD.ORG In-reply-to: <19981001150310.A7259@cons.org> (message from Martin Cracauer on Thu, 1 Oct 1998 15:03:10 +0200) Subject: Re: Linux /proc/*/maps emulation Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >I don't know enough about linking to proceed. It's a fifo, but I don't >know what is connected to the other end. The kernel - why? ld.so? If >so, why can Linux ld.so work in FreeBSD's Linux emulation that has no >procfs/*/maps My guess would be that ld.so doesn't need to know where it got mmapped to, the shlib code just calls mmap for each of the libraries and they get loaded in. Robert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Oct 1 12:43:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA18996 for freebsd-emulation-outgoing; Thu, 1 Oct 1998 12:43:00 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA18965 for ; Thu, 1 Oct 1998 12:42:48 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id MAA00926; Thu, 1 Oct 1998 12:47:36 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810011947.MAA00926@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Darius Ramanauskas cc: emulation@FreeBSD.ORG Subject: Re: Oracle8 for Linux (Linux emulation) In-reply-to: Your message of "Thu, 01 Oct 1998 14:50:29 +0200." <36137A95.3B6AE583@kada.lt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 01 Oct 1998 12:47:36 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hello All, Please send emulation-related questions to freebsd-emulation@freebsd.org > I'm trying to run Oracle 8.0.5 beta for Linux on FBSD 2.2.7. > Linux emulation in rc.conf is YES, linux_lib 2.4 is installed, > binaries is branded, but then I try to start it say: > libm.so.6 not found :( Oracle for Linux doesn't (yet) run on FreeBSD. It may never run on 2.2 systems (not clear yet). It's being actively worked on at the moment. Meanwhile you should write to Oracle and tell them that you are trying to run the Linux binary on FreeBSD and you're unhappy about it not working. Tell them that you'd be buying a FreeBSD version if it existed. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Oct 2 18:37:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA08905 for freebsd-emulation-outgoing; Fri, 2 Oct 1998 18:37:42 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from fallout.campusview.indiana.edu (fallout.campusview.indiana.edu [149.159.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA08891; Fri, 2 Oct 1998 18:37:37 -0700 (PDT) (envelope-from jfieber@fallout.campusview.indiana.edu) Received: from localhost (jfieber@localhost) by fallout.campusview.indiana.edu (8.9.1/8.9.1) with SMTP id UAA01128; Fri, 2 Oct 1998 20:37:18 -0500 (EST) Date: Fri, 2 Oct 1998 20:37:18 -0500 (EST) From: John Fieber To: msmith@FreeBSD.ORG cc: nash@mcs.net, emulation@FreeBSD.ORG Subject: Sybase update 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 Alex Nash and I have narrowed the problem with the Sybase server considerably. In fact, via an unacceptable hack it actually works. The problem is asynchronous i/o on a socket. As part of the initialization, the server sets up a socket for client connections which looks all okay and installs as SIGIO handler. Everything about the initialization look okay and compares well with a syscall trace generated on a Linux box...pretty much all differences can be explained. Unfortunately never receives a SIGIO when a client connects. Watching the network shows a standard opening and closing of the TCP link but no response from the server. THE HACK: once the server is started, lookup the PID and continouously fire SIGIOs at it, eg: $ while true; do kill -IO ; done and voilla! the server works! UGLY isn't it? :-) Here is a snippet of the syscall trace where the socket is setup (this is the linux one, much more readable than the FreeBSD one): socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5 setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 getpid() = 1191 ioctl(5, SIOCSPGRP[, 1191]) = 0 fcntl(5, F_SETOWN, 1191) = 0 fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK|O_ASYNC) = 0 bind(5, {sin_family=AF_INET, sin_port=htons(5000), sin_addr=inet_addr("192.168.129.58")}, 16) = 0 listen(5, 128) = 0 Two things I've had to change: * The SIGIO and SIGURG values in linux.h were reversed. I think they must have come from an incorrect man page (I found one on the net that had them wrong). * F_SETFL didn't handel the O_ASYNC option. I added support to F_GETFL as well. Note that fixing the second without fixing the first resulted in a panic suggesting that somewhere in the kernel, there must be some action on the signals. At this point I'm getting a little over my head so any ideas of what to try next are most welcome. It would be super if 3.0 could ship "Sybase ready" which would grease the rails for lobbying Sybase to either loosen the License or give us a native version. On the client side things are better. The only hangup is that if uname(2) returns a fully qualified internet name, the client library gets confused about the local host name and most applications just bail out at that point. I stuck a quick hack that truncates the hostname at the first period which makes it work, but that seems a little drastic. -john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Oct 2 23:43:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA07263 for freebsd-emulation-outgoing; Fri, 2 Oct 1998 23:43:28 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from word.smith.net.au (castles69.castles.com [208.214.165.69]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA07255; Fri, 2 Oct 1998 23:43:22 -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.9.1/8.8.8) with ESMTP id XAA01122; Fri, 2 Oct 1998 23:48:25 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199810030648.XAA01122@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: John Fieber cc: msmith@FreeBSD.ORG, nash@mcs.net, emulation@FreeBSD.ORG Subject: Re: Sybase update In-reply-to: Your message of "Fri, 02 Oct 1998 20:37:18 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 02 Oct 1998 23:48:24 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Alex Nash and I have narrowed the problem with the Sybase server > considerably. In fact, via an unacceptable hack it actually > works. Cool. Only a few steps away from a real solution then. 8) > The problem is asynchronous i/o on a socket. As part of the > initialization, the server sets up a socket for client > connections which looks all okay and installs as SIGIO handler. > Everything about the initialization look okay and compares well > with a syscall trace generated on a Linux box...pretty much all > differences can be explained. Presumably it enables SIGIO delivery? It's masked by default... > Here is a snippet of the syscall trace where the socket is setup > (this is the linux one, much more readable than the FreeBSD one): > > socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5 > setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 > setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 > getpid() = 1191 > ioctl(5, SIOCSPGRP[, 1191]) = 0 > fcntl(5, F_SETOWN, 1191) = 0 > fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK|O_ASYNC) = 0 > bind(5, {sin_family=AF_INET, sin_port=htons(5000), sin_addr=inet_addr("192.168.129.58")}, 16) = 0 > listen(5, 128) = 0 > > Two things I've had to change: > > * The SIGIO and SIGURG values in linux.h were reversed. I > think they must have come from an incorrect man page (I found > one on the net that had them wrong). When you say "reversed", can you be more specific? The header I have here gives SIGIO and SIGURG the same value (23). > * F_SETFL didn't handel the O_ASYNC option. I added support > to F_GETFL as well. > > Note that fixing the second without fixing the first resulted in a > panic suggesting that somewhere in the kernel, there must be some > action on the signals. That's not too good. Did you get an idea as to where the panic was? > At this point I'm getting a little over my head so any ideas of what > to try next are most welcome. It would be super if 3.0 could > ship "Sybase ready" which would grease the rails for lobbying > Sybase to either loosen the License or give us a native version. It sounds like you're extremely close. If you build the Linux LKM with DEBUG defined, you should get a pile of "linux_sendsig" messages. You can see the code that's meant to send the signal into the Linux process in linux_sysvec.c:linux_sendsig(). Signal number translation is handled elsewhere, but it uses the bsd_to_linux_signal table, and that looks like it's correct as long as the value of LINUX_SIGIO is right. > On the client side things are better. The only hangup is that if > uname(2) returns a fully qualified internet name, the client library > gets confused about the local host name and most applications just > bail out at that point. I stuck a quick hack that truncates the > hostname at the first period which makes it work, but that seems a > little drastic. Interesting. Does the Linux uname(2) call return a fully-qualified hostname? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 08:17:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA17096 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 08:17:40 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from fallout.campusview.indiana.edu (fallout.campusview.indiana.edu [149.159.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA17090; Sat, 3 Oct 1998 08:17:38 -0700 (PDT) (envelope-from jfieber@fallout.campusview.indiana.edu) Received: from localhost (jfieber@localhost) by fallout.campusview.indiana.edu (8.9.1/8.9.1) with SMTP id KAA03727; Sat, 3 Oct 1998 10:15:58 -0500 (EST) Date: Sat, 3 Oct 1998 10:15:58 -0500 (EST) From: John Fieber To: Mike Smith cc: msmith@FreeBSD.ORG, nash@mcs.net, emulation@FreeBSD.ORG Subject: Re: Sybase update In-Reply-To: <199810030648.XAA01122@word.smith.net.au> 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 Fri, 2 Oct 1998, Mike Smith wrote: > Presumably it enables SIGIO delivery? It's masked by default... >From the trace... sigaction(SIGIO, {0x82b3f10, [], 0}, NULL) = 0 > > * The SIGIO and SIGURG values in linux.h were reversed. I > > think they must have come from an incorrect man page (I found > > one on the net that had them wrong). > > When you say "reversed", can you be more specific? The header I have > here gives SIGIO and SIGURG the same value (23). I "misspoke"...not reversed. A real linux kernel has SIGURG as 23 and SIGIO as 29 (and SIGPOLL as a synonym for SIGIO). When sybase installs the SIGIO handler, it uses signal 29. > > Note that fixing the second without fixing the first resulted in a > > panic suggesting that somewhere in the kernel, there must be some > > action on the signals. > > That's not too good. Did you get an idea as to where the panic was? First time I was on an X display and didn't see any messages. Second time I did it where I could see the messages an the only one was "panic syncing disks" or whatever the text is...no details about where. > It sounds like you're extremely close. If you build the Linux LKM with > DEBUG defined, you should get a pile of "linux_sendsig" messages. You > can see the code that's meant to send the signal into the Linux process > in linux_sysvec.c:linux_sendsig(). I already turned on that particulary debugging printf there and no SIGIOs show up. Is there something I can use to examine the flags on the socket to see if the async flag got properly set? > Interesting. Does the Linux uname(2) call return a fully-qualified > hostname? I believe so which is which I'm doubting this is the real problem. -john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 11:58:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12672 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 11:58:41 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from word.smith.net.au (castles246.castles.com [208.214.165.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12596 for ; Sat, 3 Oct 1998 11:58:21 -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.9.1/8.8.8) with ESMTP id MAA07047; Sat, 3 Oct 1998 12:01:56 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199810031901.MAA07047@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: John Fieber cc: nash@mcs.net, emulation@FreeBSD.ORG Subject: Re: Sybase update In-reply-to: Your message of "Sat, 03 Oct 1998 10:15:58 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 Oct 1998 12:01:48 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > * The SIGIO and SIGURG values in linux.h were reversed. I > > > think they must have come from an incorrect man page (I found > > > one on the net that had them wrong). > > > > When you say "reversed", can you be more specific? The header I have > > here gives SIGIO and SIGURG the same value (23). > > I "misspoke"...not reversed. A real linux kernel has SIGURG as > 23 and SIGIO as 29 (and SIGPOLL as a synonym for SIGIO). When > sybase installs the SIGIO handler, it uses signal 29. Ok. Definitely worth getting that fixed. > > > Note that fixing the second without fixing the first resulted in a > > > panic suggesting that somewhere in the kernel, there must be some > > > action on the signals. > > > > That's not too good. Did you get an idea as to where the panic was? > > First time I was on an X display and didn't see any messages. > Second time I did it where I could see the messages an the only > one was "panic syncing disks" or whatever the text is...no > details about where. If you could replicate it with a kernel containing DDB, it would be interesting to see if we could get a trace. My suspicion is that it was probably in the emulator LKM. > > It sounds like you're extremely close. If you build the Linux LKM with > > DEBUG defined, you should get a pile of "linux_sendsig" messages. You > > can see the code that's meant to send the signal into the Linux process > > in linux_sysvec.c:linux_sendsig(). > > I already turned on that particulary debugging printf there and > no SIGIOs show up. Is there something I can use to examine the > flags on the socket to see if the async flag got properly set? Whack a few quick printfs in kern/uipc_socket2.c:sowakeup(), as this is where the signal is generated. > > Interesting. Does the Linux uname(2) call return a fully-qualified > > hostname? > > I believe so which is which I'm doubting this is the real > problem. More interesting. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 13:19:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23843 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 13:19:14 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from word.smith.net.au (castles246.castles.com [208.214.165.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23834 for ; Sat, 3 Oct 1998 13:19:06 -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.9.1/8.8.8) with ESMTP id NAA07601; Sat, 3 Oct 1998 13:22:32 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199810032022.NAA07601@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Martin Cracauer cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Linux /proc/*/maps emulation In-reply-to: Your message of "Thu, 01 Oct 1998 15:03:10 +0200." <19981001150310.A7259@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 Oct 1998 13:22:30 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Moinmoin, > > I have a Linux application (Franz Allegro Common Lisp 5.0) that needs > /proc/*/maps > > Output from sshd on Linux-2.1.119: > /proc/168(oskar)19% cat maps > 08048000-08076000 r-xp 00000000 08:02 81595 /usr/local/sbin/sshd1 > 08076000-08079000 rw-p 0002d000 08:02 81595 /usr/local/sbin/sshd1 > 08079000-08082000 rwxp 00000000 00:00 0 > 40000000-40006000 r-xp 00000000 08:02 4074 /lib/ld-linux.so.1 > 40006000-40007000 rw-p 00005000 08:02 4074 /lib/ld-linux.so.1 > 40007000-40008000 rw-p 00000000 00:00 0 > 4000a000-4008c000 r-xp 00000000 08:02 4078 /lib/libc.so.5.4.33 > 4008c000-40092000 rw-p 00081000 08:02 4078 /lib/libc.so.5.4.33 > 40092000-400c5000 rw-p 00000000 00:00 0 > bfffd000-c0000000 rwxp ffffe000 00:00 0 > > If I'm not mistaken, this is just a list of mmaped' segments provided > by the linker. No; it's similar to /proc/*/map under FreeBSD, although the fields are organised a little differently. > I don't know enough about linking to proceed. It's a fifo, but I don't > know what is connected to the other end. The kernel - why? ld.so? If > so, why can Linux ld.so work in FreeBSD's Linux emulation that has no > procfs/*/maps It's handled by procfs. I'd recommend cloning procfs into a linux_procfs, and mount it on /compat/linux/proc. There are quite a few things that this would assist with. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 14:15:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01573 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 14:15:39 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from roma.coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA01566 for ; Sat, 3 Oct 1998 14:15:35 -0700 (PDT) (envelope-from jonny@jonny.eng.br) Received: (from jonny@localhost) by roma.coe.ufrj.br (8.8.8/8.8.8) id SAA26441 for emulation@freebsd.org; Sat, 3 Oct 1998 18:15:14 -0300 (EST) (envelope-from jonny) From: Joao Carlos Mendes Luis Message-Id: <199810032115.SAA26441@roma.coe.ufrj.br> Subject: APC PowerChute under FreeBSD To: emulation@FreeBSD.ORG Date: Sat, 3 Oct 1998 18:15:14 -0300 (EST) X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Has anybody suceeded in running APC's PowerChute for SCO under FreeBSD -stable ? I'm trying, but it fails during install with a warning telling to put the serial line in local (no modem) mode. I'm using /dev/cuaa1, so this must not be the real problem. If I try to run the daemon, ignoring this warning, it will fail saying it could not connect to the UPS. With ktrace I detected that the error appears after a sendmsg syscall with the serial port descriptor. Is this an emulation problem ? Should I trust the syscall names given by ktrace in a emulated executable ? TIA, Jonny -- Joao Carlos Mendes Luis M.Sc. Student jonny@jonny.eng.br Universidade Federal do Rio de Janeiro "This .sig is not meant to be politically correct." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 15:18:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA08379 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 15:18:03 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from word.smith.net.au (castles246.castles.com [208.214.165.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08355 for ; Sat, 3 Oct 1998 15:17:53 -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.9.1/8.8.8) with ESMTP id PAA08190; Sat, 3 Oct 1998 15:20:21 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199810032220.PAA08190@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Joao Carlos Mendes Luis cc: emulation@FreeBSD.ORG Subject: Re: APC PowerChute under FreeBSD In-reply-to: Your message of "Sat, 03 Oct 1998 18:15:14 -0300." <199810032115.SAA26441@roma.coe.ufrj.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 Oct 1998 15:20:20 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Has anybody suceeded in running APC's PowerChute for SCO under > FreeBSD -stable ? I don't believe so. > I'm trying, but it fails during install with a warning telling to > put the serial line in local (no modem) mode. I'm using /dev/cuaa1, > so this must not be the real problem. If I try to run the daemon, > ignoring this warning, it will fail saying it could not connect to the > UPS. > > With ktrace I detected that the error appears after a sendmsg > syscall with the serial port descriptor. Is this an emulation > problem ? Should I trust the syscall names given by ktrace in a > emulated executable ? It sounds like an emulation problem. No, you shouldn't trust the syscall names. You can make an ibcs2_ktrace like ports/devel/ linux_ktrace, or move to -current and ask Sean (sef@freebsd.org) to add ibcs2 support to truss. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 16:14:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA17023 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 16:14:00 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.6.53]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA16990; Sat, 3 Oct 1998 16:13:50 -0700 (PDT) (envelope-from arnout@tomcat.xs4all.nl) Received: from tomcat.xs4all.nl (tomcat.xs4all.nl [194.109.15.187]) by smtp3.xs4all.nl (8.8.8/8.8.8) with ESMTP id BAA29072; Sun, 4 Oct 1998 01:13:23 +0200 (CEST) Received: (from arnout@localhost) by tomcat.xs4all.nl (8.9.1/8.9.1) id AAA24422; Sun, 4 Oct 1998 00:49:09 +0200 (CEST) Message-ID: <19981004004908.51640@xs4all.nl> Date: Sun, 4 Oct 1998 00:49:08 +0200 From: Arnout Boer To: emulation@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Suse Office99 on BSD Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i X-Operating-System: FreeBSD 2.2.7-STABLE i386 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi there, Suse announced Office99 to be available round October 12th or something. As I heard the new Star Office 5 won't be usefull on BSd because of use of kernel threads.. If Office99 from Suse will paly on BSD (3.0 Release by then) I prefer to stock with it of course :-) Any suggestions... Btw.. OFfice99 includes the new Applix with MS Office97 filters. Groetjes, Arnout To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 16:16:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA17593 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 16:16:33 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from fallout.campusview.indiana.edu (fallout.campusview.indiana.edu [149.159.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA17575 for ; Sat, 3 Oct 1998 16:16:24 -0700 (PDT) (envelope-from jfieber@fallout.campusview.indiana.edu) Received: from localhost (jfieber@localhost) by fallout.campusview.indiana.edu (8.9.1/8.9.1) with SMTP id SAA01867; Sat, 3 Oct 1998 18:14:38 -0500 (EST) Date: Sat, 3 Oct 1998 18:14:37 -0500 (EST) From: John Fieber To: Joao Carlos Mendes Luis cc: Mike Smith , emulation@FreeBSD.ORG Subject: Re: APC PowerChute under FreeBSD In-Reply-To: <199810032220.PAA08190@word.smith.net.au> 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, 3 Oct 1998, Mike Smith wrote: > > Has anybody suceeded in running APC's PowerChute for SCO under > > FreeBSD -stable ? > > I don't believe so. You might also search the BUGTRAQ archives for references to PowerChute before even bothering with the software. There is a upsd daemon in the ports collection that is pretty quirky, but does work with SmartUPS and SmartUPS v/s models. -john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Oct 3 20:24:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA24454 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 20:24:12 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from fallout.campusview.indiana.edu (fallout.campusview.indiana.edu [149.159.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA24395; Sat, 3 Oct 1998 20:23:17 -0700 (PDT) (envelope-from jfieber@fallout.campusview.indiana.edu) Received: from localhost (jfieber@localhost) by fallout.campusview.indiana.edu (8.9.1/8.9.1) with SMTP id WAA00560; Sat, 3 Oct 1998 22:22:52 -0500 (EST) Date: Sat, 3 Oct 1998 22:22:51 -0500 (EST) From: John Fieber To: Mike Smith cc: nash@mcs.net, emulation@FreeBSD.ORG Subject: Re: Sybase update In-Reply-To: <199810031901.MAA07047@word.smith.net.au> 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, 3 Oct 1998, Mike Smith wrote: > Whack a few quick printfs in kern/uipc_socket2.c:sowakeup(), as this is > where the signal is generated. BINGO!!!! The SIGIO was being sent to PID 0. The F_SETOWN case of fcntl in the emulator neglected to pass the fcntl argument (the [GP]ID) to the BSD fcntl. Oops. So, while not intensively tested yet, sybase is running. :) I'll review and cleanup my changes tomorrow and submit them for a second look by people more familiar with the kernel than I am. > > > Interesting. Does the Linux uname(2) call return a fully-qualified > > > hostname? > > > > I believe so which is which I'm doubting this is the real > > problem. > > More interesting. Indeed because I've discovered that the my uname fix for sybase breaks the Linux RealVideo player. :( However, this isn't a complete showstopper glitch; there are workarounds. -john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message