From owner-freebsd-emulation Sun Jun 24 3:39:41 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by hub.freebsd.org (Postfix) with ESMTP id 1C28237B401; Sun, 24 Jun 2001 03:39:34 -0700 (PDT) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from klima.Physik.Uni-Mainz.DE (Sturm@klima.Physik.Uni-Mainz.DE [134.93.180.162]) by klima.physik.uni-mainz.de (8.11.4/8.11.4) with ESMTP id f5OAdU203776; Sun, 24 Jun 2001 12:39:30 +0200 (CEST) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Sun, 24 Jun 2001 12:39:30 +0200 (CEST) From: "Hartmann, O." To: Michael Silver Cc: , Subject: Re: In-Reply-To: <007401c0fc6a$5d1082f0$0200000a@silvertriad> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 24 Jun 2001, Michael Silver wrote: Well, that was my thought ;-) At the moment, all seems to 'crash' on simple things like lacking in several little stupid standard programs which are not part of the Linux base port as nativ Linux code, instead, UNIX respective FreeBSD has all the little programs like awk and more. I will inform the list, of course and I hope I can offer a way to do it the easy way ... :>Please notify the list if you get Kylix working on FreeBSD. That would be a :>coup. I have seen several people asking about this. :> :>...Michael... :> :>----- Original Message ----- :>From: "Hartmann, O." :>To: :>Cc: :>Sent: Saturday, June 23, 2001 2:52 PM :> :> :>> Dear Sirs. :>> We got Kylix now and Kylix is Delphi 5/6 for Linux. Borland offers a :>> compatibility testprogram for the installation of KYLIX and I checked :>> our systems with that. I found out that the glibc was buggy and Borland :>> offers a patched version - I installed that patched version for RedHat 6.2 :>> and the pretest software checked and said all things are all right. So :>far. :> :> :> -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ---------------------------------------------------------------- IT-Administration des Institut fuer Physik der Atmosphaere (IPA) ---------------------------------------------------------------- Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinensaal) Tel: +496131/3924144 FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Jun 24 4:36:50 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by hub.freebsd.org (Postfix) with ESMTP id B8E9237B401; Sun, 24 Jun 2001 04:36:29 -0700 (PDT) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from klima.Physik.Uni-Mainz.DE (Sturm@klima.Physik.Uni-Mainz.DE [134.93.180.162]) by klima.physik.uni-mainz.de (8.11.4/8.11.4) with ESMTP id f5OBaQ213057; Sun, 24 Jun 2001 13:36:26 +0200 (CEST) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Sun, 24 Jun 2001 13:36:26 +0200 (CEST) From: "Hartmann, O." To: Bill Moran Cc: , Subject: KYLIX/Delphi compiler under Liunxulation ( WAS: no subject) In-Reply-To: <3B351A42.416364A4@iowna.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org So, I'm back with a little more informnations: :>Well, I'm not expert on this particular subject, but hopefully I can be :>of some help. :> :>"Hartmann, O." wrote: :>> Our main server architecture here is FreeBSD, but unluckily we need :>> Linux software because there are no appropriate Fortran F90 compilers :>> and Delphi compilers for FreeBSD. :> :>I thought you were wrong at first, but checking into it shows you are :>correct. Fortran77 is the latest supported. Sorry, we need F90 or F95. :> :>> I prepared our master server for the installation and mounted the cdrom :> :>First off, I wouldn't do anything more with the "master" server till :>you've got this sorted out. Set up a test server to work out the install :>unless you're willing to risk the "master" server having major problems! That is true and I switched to another machine to do the initial tests. :> :>> My question is, how to get the lacking runtime images of these programs? :>> They are not in the linux_base port. :> :>Many of these are part of the FreeBSD distribution. You may have to :>simlink from the FreeBSD locations to the Linux compat directories. Yes, of course FreeBSD has these commands but a normal "setup with exchanged paths" does not work, means: first relocated the hierachy of the search path to find Linux binaries first, then FreeBSD's. I wrote a simple script called 'linux_me' as suggested from a FreeBSD developer did Fortran 90 installations in which only pathes get exchanged to find Linux binaries first. But this method crashes also with the ELF "0" error of an unknown binary type. :> :>> And what is about a complete Linux-Installation in the /compat/linux tree? :>> Is it possible to install a Linux-basic distribution, like RedHat 7.1 in :>> the /compat/linux tree and run all Linux software by the FBSD emulation? :> :>Not sure, but if you read up on the linuxulator, it actually _is_ a :>RedHat install. That is right, it is a RedHat 6.2. But most newer software is RedHat 7.0. :> :>> root: /cdrom/borpretest: cd ../ :>> root: /cdrom: ./setup.sh :>> ./setup.sh: tail: command not found :> :>Check the setup.sh script and find out where it's looking for "tail". A :>symlink may be all that's needed to fix this. Or a change in the PATH :>environ. I did, see above, but with no effect. But I suspect a program on the Kylix CD ROM to be the faulty one: The script walks throught several steps of checking the environment, then it fills up a simple environment variable with a suitable setup program and this is always a choice of two, one for a gtk/xml environment and the other a normal binary. But this binary is statically linked! using 'file' on it reports this: file setup.data/bin/x86/setup setup.data/bin/x86/setup: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, not stripped I tried to execute this binary within an Linux environment to ensure this gets not messed up with FreeBSD libs. But the same effect. Then I copied the whole stuff in a temporarily directory and did a manually brandelf on this - without any effect. This stupid little binary does not want to be executed!!! Why??? As you can imagine, I exchenged the faulty glibc of the original distribution against a pathed version from Borland's site or one located on the Kylix CD. I have the choice between: glibc-2.1.3-22B.i386.rpm glibc-2.1.3-22B.src.rpm glibc-devel-2.1.3-22B.i386.rpm glibc-profile-2.1.3-22B.i386.rpm nscd-2.1.3-22B.i386.rpm I installed glibc-2.1.3-22B.i386.rpm, not the other ones ... What the heck is going wrong? :> :>> Checking dependencies... :>> Kernel version >= 2.2.0....OK :>> Glibc version >= 2.1.2....OK :>> X11 Server....FAILED :> :>Do you have X11 installed? If so, symlinking or PATH modifications may :>fix this. :> :>> grep: /etc/issue: No such file or directory :> :>Ooh ... I'm no linux expert, but I think this file should contain kernel :>version numbers or something. Check with a linux distro to see what's in :>this file - you may be able to just copy it. :> :>> ELF binary type "0" not known. :> :>Hmmm ... read the man page for "brandelf", although I don't know what it :>_should_ be or even what file it's looking for. :> :>> The setup program seems to have failed on x86/glibc-2.1 :> :>Oh ... spoke too soon. That's a little bizaar. You may have to install :>glibc seperately and let it think it's running under Linux. You may also :>be able to brand it to make the install work. :> :>Hope this was helpful, I know it's not a lot of information. :> :>Bill :> :>-- :>If a bird in the hand is worth two in the bush, :>then what can I get for two hands in the bush? :> -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ---------------------------------------------------------------- IT-Administration des Institut fuer Physik der Atmosphaere (IPA) ---------------------------------------------------------------- Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinensaal) Tel: +496131/3924144 FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Jun 24 10:25:32 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 5E5C637B401; Sun, 24 Jun 2001 10:25:18 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.4/8.11.3) with ESMTP id f5OHOct23212; Sun, 24 Jun 2001 10:24:38 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: ohartman@klima.physik.uni-mainz.de Cc: msilver@sc.rr.com, freebsd-emulation@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: In-Reply-To: References: <007401c0fc6a$5d1082f0$0200000a@silvertriad> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010624102438Y.jkh@osd.bsdi.com> Date: Sun, 24 Jun 2001 10:24:38 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 17 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From: "Hartmann, O." Subject: Re: Date: Sun, 24 Jun 2001 12:39:30 +0200 (CEST) > At the moment, all seems to 'crash' on simple things like lacking in > several little stupid standard programs which are not part of the > Linux base port as nativ Linux code, instead, UNIX respective FreeBSD > has all the little programs like awk and more. I will inform the list, of > course and I hope I can offer a way to do it the easy way ... Why would they need to be linux native? Things like awk and cp can simple be used from FreeBSD (even by Linux binaries) unless you do something crazy like chroot to /compat/linux. That's not necessary, you simply run a linux shell so that /compat/linux is first in the search order. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Jun 24 15: 0:36 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by hub.freebsd.org (Postfix) with ESMTP id C6F9A37B407; Sun, 24 Jun 2001 15:00:28 -0700 (PDT) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from klima.Physik.Uni-Mainz.DE (Sturm@klima.Physik.Uni-Mainz.DE [134.93.180.162]) by klima.physik.uni-mainz.de (8.11.4/8.11.4) with ESMTP id f5OM0I202660; Mon, 25 Jun 2001 00:00:19 +0200 (CEST) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Mon, 25 Jun 2001 00:00:18 +0200 (CEST) From: "Hartmann, O." To: Jordan Hubbard Cc: , , Subject: Re: In-Reply-To: <20010624102438Y.jkh@osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 24 Jun 2001, Jordan Hubbard wrote: Hello. Well, I did. And I did a lot in installing things by hand. It seems, that chrooting is not necessary as you describe, but within the distribution there is a setup program which is statically linked and it is not willing to operate. I don't know whether I can offer this to check due license restrictions. I did a 'kind of installation' by hand and now I need to set several shell variables the right way. Hope that works. But tomorrow ... I'm tired :-) Dear Jordan. If you're interested in the Borland binary that fails, I can send it to you by Email, but it is huge ... Thanks, Oliver :>From: "Hartmann, O." :>Subject: Re: :>Date: Sun, 24 Jun 2001 12:39:30 +0200 (CEST) :> :>> At the moment, all seems to 'crash' on simple things like lacking in :>> several little stupid standard programs which are not part of the :>> Linux base port as nativ Linux code, instead, UNIX respective FreeBSD :>> has all the little programs like awk and more. I will inform the list, of :>> course and I hope I can offer a way to do it the easy way ... :> :>Why would they need to be linux native? Things like awk and cp can :>simple be used from FreeBSD (even by Linux binaries) unless you do :>something crazy like chroot to /compat/linux. That's not necessary, :>you simply run a linux shell so that /compat/linux is first in the :>search order. :> :>- Jordan :> -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ---------------------------------------------------------------- IT-Administration des Institut fuer Physik der Atmosphaere (IPA) ---------------------------------------------------------------- Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinensaal) Tel: +496131/3924144 FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Jun 24 19: 5:29 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 9C29337B406; Sun, 24 Jun 2001 19:05:19 -0700 (PDT) (envelope-from mwlucas@blackhelicopters.org) Received: (from mwlucas@localhost) by blackhelicopters.org (8.9.3/8.9.3) id WAA55555; Sun, 24 Jun 2001 22:05:16 -0400 (EDT) (envelope-from mwlucas) Date: Sun, 24 Jun 2001 22:05:16 -0400 From: Michael Lucas To: "Hartmann, O." Cc: freebsd-emulation@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: your mail Message-ID: <20010624220516.A55499@blackhelicopters.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from ohartman@klima.physik.uni-mainz.de on Sat, Jun 23, 2001 at 08:52:21PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, A couple things to try: First of all, be sure you execute your program from a Linux shell, /compat/linux/bin/sh. Second, yes, you can have a complete Linux install under /compat/linux. Take a look at http://www.onlamp.com/pub/a/bsd/2000/11/16/Big_Scary_Daemons.html for some details on how to do that. However, it should "just work". The programs you mention are all standard, and shouldn't be actually linked in. Good luck! On Sat, Jun 23, 2001 at 08:52:21PM +0200, Hartmann, O. wrote: > Dear Sirs. > > Our main server architecture here is FreeBSD, but unluckily we need > Linux software because there are no appropriate Fortran F90 compilers > and Delphi compilers for FreeBSD. > > We got Kylix now and Kylix is Delphi 5/6 for Linux. Borland offers a > compatibility testprogram for the installation of KYLIX and I checked > our systems with that. I found out that the glibc was buggy and Borland > offers a patched version - I installed that patched version for RedHat 6.2 > and the pretest software checked and said all things are all right. So far. > > I prepared our master server for the installation and mounted the cdrom > within the /compat/linux-tree and then did a 'chroot /compat/linux', checked > by uname on which system I'am and got 'Linux'. Running setup.sh the first > time reported lots of errors due the lack of awk,whereis,more and cat, so I > had to install the mfirst and unluckily got them from a SuSe 7.0 system > and I think this uses a newer glibc 2.2 instead of the glibc 2.1. > > The error I get is shown beneath. > > My question is, how to get the lacking runtime images of these programs? > They are not in the linux_base port. > > And what is about a complete Linux-Installation in the /compat/linux tree? > Is it possible to install a Linux-basic distribution, like RedHat 7.1 in > the /compat/linux tree and run all Linux software by the FBSD emulation? > > > -------------------------------- > Borland Kylix System Compatibility Test > > Checking loader....OK > Checking kernel >= 2.2....OK > Checking libc >= 2.1.2....OK > Checking libjpeg >= 6.2.0....OK > > Looks GOOD !!! > This system should be able to run Borland Kylix! > > root: /cdrom/borpretest: cd ../ > root: /cdrom: ./setup.sh > ./setup.sh: tail: command not found > > > > BORLAND KYLIX > > Checking dependencies... > Kernel version >= 2.2.0....OK > Glibc version >= 2.1.2....OK > X11 Server....FAILED > > Setup could not detect a suitable X11 server. > > Do you want to install Kylix (default Y) ? Y > Libjpeg version >= 6.2.0....OK > > > grep: /etc/issue: No such file or directory > ELF binary type "0" not known. > The setup program seems to have failed on x86/glibc-2.1 > > Please contact Technical Support. > > > -- > MfG > O. Hartmann > > ohartman@klima.physik.uni-mainz.de > ---------------------------------------------------------------- > IT-Administration des Institut fuer Physik der Atmosphaere (IPA) > ---------------------------------------------------------------- > Johannes Gutenberg Universitaet Mainz > Becherweg 21 > 55099 Mainz > > Tel: +496131/3924662 (Maschinensaal) > Tel: +496131/3924144 > FAX: +496131/3923532 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message -- Michael Lucas mwlucas@blackhelicopters.org http://www.blackhelicopters.org/~mwlucas/ Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Jun 25 8:23:48 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by hub.freebsd.org (Postfix) with ESMTP id 850B537B409; Mon, 25 Jun 2001 08:23:25 -0700 (PDT) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from klima.Physik.Uni-Mainz.DE (Sturm@klima.Physik.Uni-Mainz.DE [134.93.180.162]) by klima.physik.uni-mainz.de (8.11.4/8.11.4) with ESMTP id f5PFNOG14017; Mon, 25 Jun 2001 17:23:24 +0200 (CEST) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Mon, 25 Jun 2001 17:23:24 +0200 (CEST) From: "Hartmann, O." To: Cc: Subject: KYLIX on FBSD not successful! Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello. Sorry. After a lot of problems and fighting with the Linuxulator I got an installation of Kylix for Linux. But I'm sorry to say, that after starting Kylix/Delphi with 'startkylix' delphi drops a core dump due an illegal instruction: /compat/linux/usr/kbin/startkylix: line 3: 13907 Illegal instruction (core dumped) /compat/linux/usr/kylix/bin/Kylix $* startkylix looks like this: #!/compat/linux/bin/bash source /compat/linux/usr/kylix/bin/kylixpath /compat/linux/usr/kylix >/dev/null /compat/linux/usr/kylix/bin/Kylix $* /compat/linux/usr/kylix/bin/Kylix is a symlink to /compat/linux/usr/kylix/bin/delphi and this binary have been brandelf'ed. I also brandelf'ed all binaries I found and changed most of the shell-script headers from /bin/bash to /compat/bin/bash to ensure Linux binaries are found first. When installing the setup routine have had problems with a first found 'rpm' in /usr/local/bin I installed from the ports. It seems that the setup-binary looks for it - to force the setup working correctly I had to move it to rpm.off to get the Linux rpm found first. On the other hand, setup printed the error that libncurses.so.5 has not been found. Before giving up on Kylix and setting up an Linux server for that purpose, how to check on what the delphi binary got killed? I append a truss output here, hope someone can examine and tell what's going wrong ... linux_brk(0x0) = 1 (0x1) linux_mmap(0xbfbfeb7c) = 1 (0x1) linux_open("/etc/ld.so.preload",0,03002604314) ERR#2 'No such file or directory' linux_open("/etc/ld.so.cache",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfe9cc) = 2 (0x2) linux_mmap(0xbfbfea08) = 1 (0x1) close(4) = 1 (0x1) linux_open("/lib/libtermcap.so.2",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfe924) = 2 (0x2) read(0x4,0xbfbfd978,0x1000) = 3 (0x3) linux_mmap(0xbfbfd918) = 1 (0x1) mprotect(0x180b7000,0x648,0x0) = 3 (0x3) linux_mmap(0xbfbfd918) = 1 (0x1) close(4) = 1 (0x1) linux_open("/lib/libc.so.6",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfe914) = 2 (0x2) read(0x4,0xbfbfd968,0x1000) = 3 (0x3) linux_mmap(0xbfbfd8d8) = 1 (0x1) mprotect(0x181a5000,0x78bc,0x0) = 3 (0x3) linux_mmap(0xbfbfd8d8) = 1 (0x1) linux_mmap(0xbfbfd8d8) = 1 (0x1) close(4) = 1 (0x1) mprotect(0x180b8000,0xed000,0x3) = 3 (0x3) mprotect(0x180b8000,0xed000,0x5) = 3 (0x3) munmap(0x180b2000,0x1ece) = 2 (0x2) linux_personality(0x0) = 1 (0x1) getpid() = 0 (0x0) getuid() = 0 (0x0) getgid() = 0 (0x0) geteuid() = 0 (0x0) getegid() = 0 (0x0) linux_brk(0x0) = 1 (0x1) linux_brk(0x80a6030) = 1 (0x1) linux_brk(0x80a7000) = 1 (0x1) linux_time(0x0) = 1 (0x1) linux_rt_sigaction(0x11,0xbfbfec74,0xbfbfebe8,0x8) = 4 (0x4) linux_rt_sigaction(0x11,0xbfbfec74,0xbfbfebe8,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfec74,0xbfbfebe8,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfec74,0xbfbfebe8,0x8) = 4 (0x4) linux_rt_sigaction(0x3,0xbfbfec74,0xbfbfebe8,0x8) = 4 (0x4) linux_rt_sigaction(0x3,0xbfbfec74,0xbfbfebe8,0x8) = 4 (0x4) linux_rt_sigaction(0x1,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x4,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x5,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x6,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x8,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x7,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0xb,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0xd,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0xe,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0xf,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x18,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x19,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x1a,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0x1b,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0xa,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigaction(0xc,0xbfbfec7c,0xbfbfebf0,0x8) = 4 (0x4) linux_rt_sigprocmask(0x0,0x0,0x80a4da0,0x8) = 4 (0x4) linux_rt_sigaction(0x3,0xbfbfeb54,0xbfbfeac8,0x8) = 4 (0x4) linux_socketcall(0x1,0xbfbfecd8) = 2 (0x2) linux_socketcall(0x3,0xbfbfecd8) ERR#2 'No such file or directory' close(4) = 1 (0x1) linux_open("/etc/nsswitch.conf",0,0666) = 3 (0x3) linux_fstat64() ERR#78 'Function not implemented' linux_newfstat(4,0xbfbfec28) = 2 (0x2) linux_mmap(0xbfbfec78) = 1 (0x1) read(0x4,0x180b2000,0x2000) = 3 (0x3) read(0x4,0x180b2000,0x2000) = 3 (0x3) close(4) = 1 (0x1) munmap(0x180b2000,0x2000) = 2 (0x2) linux_open("/etc/ld.so.cache",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfea08) = 2 (0x2) linux_mmap(0xbfbfea44) = 1 (0x1) close(4) = 1 (0x1) linux_open("/lib/libnss_files.so.2",0,03006501114) = 3 (0x3) linux_newfstat(4,0xbfbfe960) = 2 (0x2) read(0x4,0xbfbfd9b4,0x1000) = 3 (0x3) linux_mmap(0xbfbfd924) = 1 (0x1) mprotect(0x181b5000,0xe20,0x0) = 3 (0x3) linux_mmap(0xbfbfd924) = 1 (0x1) close(4) = 1 (0x1) munmap(0x180b2000,0x1ece) = 2 (0x2) linux_open("/etc/passwd",0,0666) = 3 (0x3) linux_fcntl(0x4,0x1,0x0) = 3 (0x3) linux_fcntl(0x4,0x2,0x1) = 3 (0x3) linux_newfstat(4,0xbfbfec30) = 2 (0x2) linux_mmap(0xbfbfec80) = 1 (0x1) read(0x4,0x180b2000,0x2000) = 3 (0x3) close(4) = 1 (0x1) munmap(0x180b2000,0x2000) = 2 (0x2) linux_newuname(0xbfbfecd0) = 1 (0x1) linux_open("/etc/ld.so.cache",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfea58) = 2 (0x2) linux_mmap(0xbfbfea94) = 1 (0x1) close(4) = 1 (0x1) linux_open("/lib/libnss_nisplus.so.2",0,03006501114) = 3 (0x3) linux_newfstat(4,0xbfbfe9b0) = 2 (0x2) read(0x4,0xbfbfda04,0x1000) = 3 (0x3) linux_brk(0x80a8000) = 1 (0x1) linux_mmap(0xbfbfd974) = 1 (0x1) mprotect(0x181bf000,0x13f4,0x0) = 3 (0x3) linux_mmap(0xbfbfd974) = 1 (0x1) close(4) = 1 (0x1) linux_open("/lib/libnsl.so.1",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfe8b4) = 2 (0x2) read(0x4,0xbfbfd908,0x1000) = 3 (0x3) linux_mmap(0xbfbfd878) = 1 (0x1) mprotect(0x181d3000,0x3828,0x0) = 3 (0x3) linux_mmap(0xbfbfd878) = 1 (0x1) linux_mmap(0xbfbfd878) = 1 (0x1) close(4) = 1 (0x1) munmap(0x180b2000,0x1ece) = 2 (0x2) linux_open("/etc/ld.so.cache",0,03002604314) = 3 (0x3) linux_newfstat(4,0xbfbfea5c) = 2 (0x2) linux_mmap(0xbfbfea98) = 1 (0x1) close(4) = 1 (0x1) linux_open("/lib/libnss_nis.so.2",0,03006501114) = 3 (0x3) linux_newfstat(4,0xbfbfe9b4) = 2 (0x2) read(0x4,0xbfbfda08,0x1000) = 3 (0x3) linux_mmap(0xbfbfd978) = 1 (0x1) mprotect(0x181df000,0x1658,0x0) = 3 (0x3) linux_mmap(0xbfbfd978) = 1 (0x1) close(4) = 1 (0x1) munmap(0x180b2000,0x1ece) = 2 (0x2) linux_brk(0x80a9000) = 1 (0x1) linux_brk(0x80aa000) = 1 (0x1) linux_brk(0x80ab000) = 1 (0x1) linux_newstat("/homes/ohartman",0xbfbfecf8) = 2 (0x2) linux_newstat(".",0xbfbfecf8) = 2 (0x2) getpid() = 0 (0x0) getppid() = 0 (0x0) getpgrp() = 0 (0x0) linux_fcntl(0xffffffff,0x2,0x1) ERR#9 'Bad file descriptor' linux_rt_sigaction(0x11,0xbfbfec70,0xbfbfebe4,0x8) = 4 (0x4) linux_socketcall(0x7,0xbfbfef2c) ERR#38 'Socket operation on non-socket' linux_open("/homes/ohartman/.kshrc",0,03006466700) ERR#2 'No such file or directory' linux_open("/compat/linux/usr/kbin/startkylix",0,03006501114) = 3 (0x3) linux_lseek(0x4,0x0,0x1) = 3 (0x3) read(0x4,0xbfbfef80,0x50) = 3 (0x3) linux_lseek(0x4,0x0,0x0) = 3 (0x3) linux_fcntl(0x4,0x2,0x1) = 3 (0x3) linux_fcntl(0x4,0x3,0x0) = 3 (0x3) linux_newfstat(4,0xbfbfee8c) = 2 (0x2) linux_lseek(0x4,0x0,0x1) = 3 (0x3) linux_brk(0x80ac000) = 1 (0x1) read(0x4,0x80aadd8,0x8e) = 3 (0x3) linux_open("/dev/null",577,0666) = 3 (0x3) linux_fcntl(0x1,0x1,0x0) = 3 (0x3) linux_fcntl(0x1,0x0,0xa) = 3 (0x3) linux_fcntl(0x1,0x1,0x0) = 3 (0x3) linux_fcntl(0xa,0x2,0x1) = 3 (0x3) dup2(0x5,0x1) = 2 (0x2) close(5) = 1 (0x1) linux_newstat("/compat/linux/usr/kylix/bin/kylixpath",0xbfbfeae0) = 2 (0x2) linux_getgroups(0x20,0xbfbfeac4) = 2 (0x2) linux_open("/compat/linux/usr/kylix/bin/kylixpath",0,03004212656) = 3 (0x3) linux_newfstat(5,0xbfbfebf8) = 2 (0x2) linux_brk(0x80ad000) = 1 (0x1) read(0x5,0x80abf60,0x4d6) = 3 (0x3) close(5) = 1 (0x1) linux_pipe(0xbfbfe894) = 1 (0x1) linux_rt_sigprocmask(0x0,0xbfbfe7ec,0xbfbfe76c,0x8) = 4 (0x4) linux_fork() = 0 (0x0) linux_rt_sigprocmask(0x2,0xbfbfe76c,0x0,0x8) = 4 (0x4) linux_rt_sigaction(0x11,0xbfbfe68c,0xbfbfe600,0x8) = 4 (0x4) linux_fcntl(0x5,0x3,0x80ac8e8) = 3 (0x3) linux_newfstat(5,0xbfbfe684) = 2 (0x2) linux_mmap(0xbfbfe6d4) = 1 (0x1) linux_llseek(0x5,0x0,0x0,0xbfbfe738,0x1) ERR#29 'Illegal seek' close(6) = 1 (0x1) read(0x5,0x80a32e0,0x80) = 3 (0x3) SIGNAL 20 SIGNAL 20 SIGNAL 20 read(0x5,0x80a32e0,0x80) ERR#4 'Interrupted system call' linux_wait4(0xffffffff,0xbfbfe570,0x1,0x0) = 4 (0x4) linux_wait4(0xffffffff,0xbfbfe570,0x1,0x0) ERR#10 'No child processes' linux_sigreturn(0xbfbfe588) ERR#4 'Interrupted system call' read(0x5,0x80a32e0,0x80) = 3 (0x3) close(5) = 1 (0x1) munmap(0x181e1000,0x4000) = 2 (0x2) close(5) ERR#9 'Bad file descriptor' linux_rt_sigprocmask(0x0,0xbfbfe7e8,0xbfbfe768,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfe564,0xbfbfe4d8,0x8) = 4 (0x4) linux_rt_sigprocmask(0x2,0xbfbfe768,0x0,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfe55c,0xbfbfe4d0,0x8) = 4 (0x4) linux_brk(0x80ae000) = 1 (0x1) linux_brk(0x80af000) = 1 (0x1) linux_brk(0x80b0000) = 1 (0x1) linux_newfstat(1,0xbfbfe188) = 2 (0x2) linux_mmap(0xbfbfe1d8) = 1 (0x1) linux_ioctl(0x1,0x5401,0xbfbfe170) ERR#19 'Operation not supported by device' write(1,0x180b2000,21) = 3 (0x3) write(1,0x180b2000,1242) = 3 (0x3) write(1,0x180b2000,1) = 3 (0x3) write(1,0x180b2000,32) = 3 (0x3) write(1,0x180b2000,28) = 3 (0x3) write(1,0x180b2000,1) = 3 (0x3) write(1,0x180b2000,23) = 3 (0x3) write(1,0x180b2000,38) = 3 (0x3) write(1,0x180b2000,1) = 3 (0x3) write(1,0x180b2000,23) = 3 (0x3) write(1,0x180b2000,29) = 3 (0x3) dup2(0xa,0x1) = 2 (0x2) linux_fcntl(0xa,0x1,0x0) = 3 (0x3) close(10) = 1 (0x1) linux_rt_sigprocmask(0x0,0xbfbfec7c,0xbfbfebfc,0x8) = 4 (0x4) linux_fork() = 0 (0x0) linux_rt_sigprocmask(0x2,0xbfbfebfc,0x0,0x8) = 4 (0x4) linux_rt_sigprocmask(0x0,0xbfbfed58,0xbfbfecd8,0x8) = 4 (0x4) linux_rt_sigprocmask(0x2,0xbfbfecd8,0x0,0x8) = 4 (0x4) linux_rt_sigprocmask(0x0,0xbfbfed58,0xbfbfecd8,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfead4,0xbfbfea48,0x8) = 4 (0x4) linux_wait4(0xffffffff,0xbfbfecac,0x0,0x0) = 4 (0x4) linux_rt_sigprocmask(0x0,0xbfbfec34,0xbfbfebb4,0x8) = 4 (0x4) linux_rt_sigprocmask(0x2,0xbfbfebb4,0x0,0x8) = 4 (0x4) linux_rt_sigprocmask(0x2,0xbfbfecd8,0x0,0x8) = 4 (0x4) linux_rt_sigaction(0x2,0xbfbfeacc,0xbfbfea40,0x8) = 4 (0x4) linux_rt_sigprocmask(0x0,0xbfbfe5fc,0xbfbfe57c,0x8) = 4 (0x4) linux_rt_sigprocmask(0x2,0xbfbfe57c,0x0,0x8) = 4 (0x4) read(0x4,0x80aadd8,0x8e) = 3 (0x3) munmap(0x180b2000,0x2000) = 2 (0x2) exit(0x84) process exit, rval = 33792 -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ---------------------------------------------------------------- IT-Administration des Institut fuer Physik der Atmosphaere (IPA) ---------------------------------------------------------------- Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinensaal) Tel: +496131/3924144 FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Jun 27 0:53:39 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mx3.port.ru (mx3.port.ru [194.67.23.37]) by hub.freebsd.org (Postfix) with ESMTP id CC5FE37B401 for ; Wed, 27 Jun 2001 00:53:34 -0700 (PDT) (envelope-from dragonstar@mail.ru) Received: from f9.int ([10.0.0.77] helo=f9.mail.ru) by mx3.port.ru with esmtp (Exim 3.14 #2) id 15FA8j-000IAS-00 for freebsd-emulation@freebsd.org; Wed, 27 Jun 2001 11:53:33 +0400 Received: from mail by f9.mail.ru with local (Exim 3.14 #2) id 15FA8j-00036q-00 for freebsd-emulation@freebsd.org; Wed, 27 Jun 2001 11:53:33 +0400 Received: from [195.2.83.104] by win.mail.port.ru with HTTP; Wed, 27 Jun 2001 07:53:33 +0000 (GMT) From: "Al" To: freebsd-emulation@freebsd.org Subject: Compilation/run problems Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: 195.2.64.18 via proxy [195.2.83.104] Reply-To: "Al" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Date: Wed, 27 Jun 2001 11:53:33 +0400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello. I have a problem with the q2admin (http://planetquake.com/q2admin/) application under freebsd 4.3 (linux_base is installed and enabled). Linux version of this app just crashes into coredump. Compiled sources give me the following when I'm trying to run the game: ... ------- Loading gamei386.so ------- ./quake2: can't resolve symbol '___runetype' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '_DefaultRuneLocale' ./quake2: can't resolve symbol '___runetype' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '_DefaultRuneLocale' ./quake2: can't resolve symbol '_DefaultRuneLocale' ./quake2: can't resolve symbol '_DefaultRuneLocale' ./quake2: can't resolve symbol '_DefaultRuneLocale' ./quake2: can't resolve symbol '___runetype' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '___toupper' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '___tolower' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '___tolower' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '___runetype' ./quake2: can't resolve symbol '_CurrentRuneLocale' ./quake2: can't resolve symbol '_DefaultRuneLocale' ./quake2: can't resolve symbol '___tolower' ./quake2: can't resolve symbol '_CurrentRuneLocale' If I add the -lc flag to the gcc options these messages disappear but the compiled mod fails to operate anyway: ------- Loading gamei386.so ------- WARNING: q2admin.txt could not be found WARNING: q2adminlog.txt could not be found Q2Admin Version 1.12 ===================================== MatchMod version 4.01 This game library contains the bot detection system developed by RaVeN. ===================================== ==== InitGame ==== Map file not found. Could not open motd file. Could not open help.txt file. Could not open server.txt file. Could not open text filter file. ------- Server Initialization ------- 0 entities inhibited 0 teams with 0 entities WARNING: q2adminban.txt could not be found WARNING: q2adminlrcon.txt could not be found WARNING: q2adminflood.txt could not be found WARNING: q2adminvote.txt could not be found WARNING: q2admindisable.txt could not be found WARNING: q2admincheckvar.txt could not be found ------------------------------------- All the files that "not found" are really in place and with correct permissions set. But fopen always returns NULL and truss shows that these calls looks like linux_open("",16,bla-bla-bla) ... :( Could you help me with this ? There're no answers how to compile such .so mods for freebsd on the net ... Best regards. --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Jun 29 8: 5:15 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from polarbear.nameprotect.com (mail.nameprotect.com [12.40.85.19]) by hub.freebsd.org (Postfix) with ESMTP id F308237B401; Fri, 29 Jun 2001 08:05:10 -0700 (PDT) (envelope-from gabor@nameprotect.com) Received: from nameprotect.com (w2kbuild.nameprotect.com [192.168.1.161]) by polarbear.nameprotect.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id NG23KNT5; Fri, 29 Jun 2001 10:02:00 -0500 Message-ID: <3B3C992B.4DC5C170@nameprotect.com> Date: Fri, 29 Jun 2001 10:05:15 -0500 From: Gabor Kincses X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en, hu, de-DE MIME-Version: 1.0 To: "Jim Bodkins (Prologic)" Cc: freebsd-java@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: Resin References: <001e01c10060$1d5c6760$161cd3d0@bodkins> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Jim Bodkins (Prologic)" wrote: > > Hi, > > Just a note. I have had great success installing and using Resin on > 4.2 and 4.3 using Linux-jdk1.4beta. FWIW, I have had virtually no luck > with Enhydra, JRun (which has a broken self extracting sh script with > an antiquated tar file) or Orion Server. Resin was very pleasantly > easy and seems to work. I have been using Enhydra 3.0.1 and 3.1 on FreeBSD using Sun Linux 1.3.0_02 (Classic VM) and IBM 1.3, since July 2000, don't know about the Enhydra 4 Beta. Linux JDK 1.4 beta doesn't have the Classic VM any more. HotSpot VMs have been very unstable, possibly, due to native threads (emulation?) in the Linux ABI. -- Gabor Kincses Running FreeBSD 4.3-RC3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Jun 29 15:57:18 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from scotth.emsphone.com (scotth.emsphone.com [199.67.51.179]) by hub.freebsd.org (Postfix) with ESMTP id 2FA6537B403 for ; Fri, 29 Jun 2001 15:57:16 -0700 (PDT) (envelope-from shildret@scotth.emsphone.com) Received: (from shildret@localhost) by scotth.emsphone.com (8.11.1/8.11.1) id f5TMvNw23161 for emulation@FreeBSD.ORG; Fri, 29 Jun 2001 17:57:23 -0500 (CDT) (envelope-from shildret) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 29 Jun 2001 17:57:23 -0500 (CDT) From: "Scott T. Hildreth" To: emulation@FreeBSD.ORG Subject: Debugging Linux C code Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Has anybody used a debugger with C code compiled using the Linux gcc? I tried running gdb and it works, but you cannot set breakpoints. The ptrace syscall is not implemented in the kernel emulation. I am compiling some Oracle - C apps and would like to debug them interactively. Thanks, STH ---------------------------------- E-Mail: Scott T. Hildreth Date: 29-Jun-01 Time: 17:39:01 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Jun 29 20:25:32 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id D2BE737B401 for ; Fri, 29 Jun 2001 20:25:30 -0700 (PDT) (envelope-from keichii@iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id 636BC59229; Fri, 29 Jun 2001 22:25:30 -0500 (CDT) Date: Fri, 29 Jun 2001 22:25:30 -0500 From: "Michael C . Wu" To: "Scott T. Hildreth" Cc: emulation@FreeBSD.ORG Subject: Re: Debugging Linux C code Message-ID: <20010629222530.C69846@peorth.iteration.net> Reply-To: "Michael C . Wu" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from shildreth@emsphone.com on Fri, Jun 29, 2001 at 05:57:23PM -0500 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jun 29, 2001 at 05:57:23PM -0500, Scott T. Hildreth scribbled: | Linux gcc? I tried running gdb and it works, but you cannot | set breakpoints. The ptrace syscall is not implemented in | the kernel emulation. I am compiling some Oracle - C apps | and would like to debug them interactively. It really is not designed with debugging in mind. Your best bet would be to use a linux box to write your code. -- +-----------------------------------------------------------+ | keichii@iteration.net | keichii@freebsd.org | | http://iteration.net/~keichii | Yes, BSD is a conspiracy. | +-----------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Jun 30 11:37:19 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from fbsd1.gh.org (ppp4.emsphone.com [199.67.51.53]) by hub.freebsd.org (Postfix) with ESMTP id 63F0B37B92D for ; Sat, 30 Jun 2001 10:09:44 -0700 (PDT) (envelope-from scotth@fbsd1.gh.org) Received: (from scotth@localhost) by fbsd1.gh.org (8.9.3/8.9.3) id MAA00310; Sat, 30 Jun 2001 12:10:17 -0500 (CDT) (envelope-from scotth) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010629222530.C69846@peorth.iteration.net> Date: Sat, 30 Jun 2001 12:10:16 -0500 (CDT) From: "Scott T. Hildreth" To: "Michael C . Wu" Subject: Re: Debugging Linux C code Cc: emulation@FreeBSD.ORG Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Okay thanks Michael. I mostly use Perl, and the debugger works with Linux Perl as well. I thought I would check if there was a way to use the Linux gdb...of course there is always printf()'s for debugging :-) On 30-Jun-01 Michael C . Wu wrote: > On Fri, Jun 29, 2001 at 05:57:23PM -0500, Scott T. Hildreth scribbled: >| Linux gcc? I tried running gdb and it works, but you cannot >| set breakpoints. The ptrace syscall is not implemented in >| the kernel emulation. I am compiling some Oracle - C apps >| and would like to debug them interactively. > > It really is not designed with debugging in mind. Your best > bet would be to use a linux box to write your code. > -- > +-----------------------------------------------------------+ >| keichii@iteration.net | keichii@freebsd.org | >| http://iteration.net/~keichii | Yes, BSD is a conspiracy. | > +-----------------------------------------------------------+ ---------------------------------- E-Mail: Scott T. Hildreth Date: 30-Jun-01 Time: 12:06:00 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Jun 30 14:16:37 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by hub.freebsd.org (Postfix) with ESMTP id D19F037B401 for ; Sat, 30 Jun 2001 14:16:34 -0700 (PDT) (envelope-from randy@psg.com) Received: from randy by rip.psg.com with local (Exim 3.30 #1) id 15GS6T-0004ka-00; Sat, 30 Jun 2001 14:16:33 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd emulator list Subject: Re: not a raw device for today's stable References: Message-Id: Date: Sat, 30 Jun 2001 14:16:33 -0700 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org from a month ago: > i installed a new -stable, first in a month or since i installed vmware. > reinstalled linux_base and vmware2 for good measure. > for a rawdisk win98se partition, i now get > "Failed to open rawdisk /usr/compat/linux/dev/hda: not a raw device. > The device specified by the save raw disk is not a raw disk." > it is the same mknod as /dev/ad0, the real multiboot disk. john polstra, hero of the revolution, figured it out for me as follows: jp> I think the problem may have been caused by the removal of jp> compatibility with the old "wd" device in this commit: jp> jp> sos 2001/05/31 08:20:35 PDT jp> jp> Modified files: (Branch: RELENG_4) jp> sys/dev/ata ata-disk.c ata-disk.h ata-raid.c jp> Log: jp> MFC: jp> remove the wd compat device support. jp> jp> Enable WC as default again, having it off hurts too much. jp> jp> Revision Changes Path jp> 1.60.2.13 +4 -28 src/sys/dev/ata/ata-disk.c jp> 1.22.2.4 +2 -2 src/sys/dev/ata/ata-disk.h jp> 1.3.2.7 +6 -6 src/sys/dev/ata/ata-raid.c jp> jp> You might be able to work around it without backing out this change. jp> Try this: jp> jp> cd /usr/compat/linux/dev jp> mv hda hda.old jp> mknod hda b 30 0x00010002 jp> chown randy:wheel hda jp> chmod 644 hda jp> jp> The 30 is the block major number for the "ad" device. Block device jp> support was removed from -current, but it is still present in -stable. this fixed it. but what the heck are we gonna do when we go to 5.0? randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message