From owner-freebsd-emulation Fri May 30 07:19:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA17493 for emulation-outgoing; Fri, 30 May 1997 07:19:32 -0700 (PDT) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id HAA17487 for ; Fri, 30 May 1997 07:19:26 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 7704 on Fri, 30 May 1997 14:19:18 GMT; id OAA07704 efrom: marc@nietzsche.bowtie.nl; eto: emulation@freebsd.org Received: from localhost (localhost [127.0.0.1]) by nietzsche.bowtie.nl (8.8.2/8.7.3) with ESMTP id QAA24017 for ; Fri, 30 May 1997 16:15:57 +0200 (MET DST) Message-Id: <199705301415.QAA24017@nietzsche.bowtie.nl> X-Mailer: exmh version 1.6.7 5/3/96 To: emulation@freebsd.org Subject: Linux emulation doesn't recognize timezone Date: Fri, 30 May 1997 16:15:57 +0200 From: Marc van Kempen Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I'm developing a program under FreeBSD, using the Linux development kit, since I'm using the solid database engine. However when I try to get the time, it doesn't recognize my timezone: My timezone is GMT+1 Output from FreeBSD binary: 30 May 1997, 16:10h <-- this is GMT+1 and summertime Output from Linux binary: 30 May 1997, 14:10h <-- this is GMT the testprogram is as follows: #include #include void main(void) { char d[100]; time_t secs; secs = time(NULL); strftime(d, 100, "%d %B %Y, %Rh", localtime(&secs)); printf("%s\n", d); return; } I tried copying the /etc/localtime to /compat/linux/etc, but this didn't work. What must I do to make the linux emulation recognize my timezone? Regards, Marc. ---------------------------------------------------- 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 Fri May 30 21:09:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA03543 for emulation-outgoing; Fri, 30 May 1997 21:09:49 -0700 (PDT) Received: from nexgen.hiwaay.net (tnt2-181.HiWAAY.net [208.147.148.181]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA03505 for ; Fri, 30 May 1997 21:09:24 -0700 (PDT) Received: from nexgen (localhost [127.0.0.1]) by nexgen.hiwaay.net (8.8.5/8.8.4) with ESMTP id XAA00366 for ; Fri, 30 May 1997 23:09:17 -0500 (CDT) Message-Id: <199705310409.XAA00366@nexgen.hiwaay.net> X-Mailer: exmh version 2.0gamma 1/27/96 To: freebsd-emulation@freebsd.org Subject: Linux emulation requires HW FPU? From: dkelly@HiWAAY.net Mime-Version: 1.0 Content-Type: text/plain Date: Fri, 30 May 1997 23:09:16 -0500 Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I've been putting around with Linux emulation on my FreeBSD system of recent vintage: nexgen: {373} uname -a FreeBSD nexgen.hiwaay.net 2.2-STABLE FreeBSD 2.2-STABLE #0: Sun May 11 17:28:30 CDT 1997 dkelly@nexgen.hiwaay.net:/usr/src/sys/compile/NEXGEN i386 nexgen: {374} modstat Type Id Off Loadaddr Size Info Rev Module Name MISC 0 0 f48ee000 0008 f48ef000 1 blank_saver_mod EXEC 1 4 f490d000 001c f4913010 1 linux_mod Ok, linux_mod is loaded. nexgen: {375} Wingz Bus error (core dumped) nexgen: {376} grep -i linux /usr/src/sys/i386/conf/NEXGEN options COMPAT_LINUX #some say you need both. options LINUX_COMPAT #some say you need both. Have tried it with and without each of the above. nexgen: {377} scalc3 User Install required before scalc3 can be run, please wait... Segmentation fault - core dumped Can't find initialisation script /home/dkelly/.sd.sh, User Install must be completed before scalc3 can be run. Wondering if my lack of FPU is a problem? nexgen: {378} grep -i math /usr/src/sys/i386/conf/NEXGEN options MATH_EMULATE #Support for x87 emulation #options GPL_MATH_EMULATE Tried GPL_MATH_EMULATE once but cvsup started core dumping. So I went back to the standard FreeBSD software FPU. So, does Linux emulation require a hardware FPU? -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. From owner-freebsd-emulation Fri May 30 22:10:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA06786 for emulation-outgoing; Fri, 30 May 1997 22:10:44 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA06781 for ; Fri, 30 May 1997 22:10:40 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id OAA04622; Sat, 31 May 1997 14:40:34 +0930 (CST) From: Michael Smith Message-Id: <199705310510.OAA04622@genesis.atrad.adelaide.edu.au> Subject: Re: Linux emulation requires HW FPU? In-Reply-To: <199705310409.XAA00366@nexgen.hiwaay.net> from "dkelly@HiWAAY.net" at "May 30, 97 11:09:16 pm" To: dkelly@HiWAAY.net Date: Sat, 31 May 1997 14:40:34 +0930 (CST) Cc: freebsd-emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dkelly@HiWAAY.net stands accused of saying: > I've been putting around with Linux emulation on my FreeBSD system of > recent vintage: > > nexgen: {373} uname -a > FreeBSD nexgen.hiwaay.net 2.2-STABLE FreeBSD 2.2-STABLE #0: Sun May 11 > 17:28:30 CDT 1997 dkelly@nexgen.hiwaay.net:/usr/src/sys/compile/NEXGEN > i386 Which linux_lib port? > nexgen: {376} grep -i linux /usr/src/sys/i386/conf/NEXGEN > options COMPAT_LINUX #some say you need both. > options LINUX_COMPAT #some say you need both. > > Have tried it with and without each of the above. If you're using the LKM, neither. > Wondering if my lack of FPU is a problem? Sounds like it might be. Have you tried a "real" CPU in the system? -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[