From owner-freebsd-current@FreeBSD.ORG Thu Mar 18 13:48:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5179116A4CE for ; Thu, 18 Mar 2004 13:48:53 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 051D143D1F for ; Thu, 18 Mar 2004 13:48:53 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i2ILmqoP025548; Thu, 18 Mar 2004 16:48:52 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200403182304.28633.wmmh@identd.net> References: <40594A35.6060303@exeter.ac.uk> <200403182248.46699.wmmh@identd.net> <200403182304.28633.wmmh@identd.net> Date: Thu, 18 Mar 2004 16:48:51 -0500 To: "Wafa M. Hadidi" From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: freebsd-current@freebsd.org Subject: Re: Updating sparc64 time_t, hostname not found X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2004 21:48:53 -0000 At 11:04 PM +0200 3/18/04, Wafa M. Hadidi wrote: > >On Thursday 18 March 2004 22:56, Garance A Drosihn wrote: > > At 10:48 PM +0200 3/18/04, Wafa M. Hadidi wrote: > > > > > > Didn't work, yet, there is something strange that I am not > > > really sure of. > > > 1) The date of all files in /usr/src is Jan, 1, 1970, >> > 2) the timestamp of any newly created file is >> > also Jan,1,1970, providing that the machine time is >> > showing the correct time. >> >> This gets a little tricky, so you have to be careful. What are >> you using to determine "the date of files"? 'ls'? Which 'ls'? >> Are you running on a 64-bTT kernel, but using a 32-bTT 'ls'? > >both /bin/ls and /usr/obj/usr/src/bin/ls/ls are showing the same >results, I am still running on 32-bTT kernel compiled like 1 hour >ago from the latest source tree. I am getting a bit confused here. Are you having the same exact problem as Daniel Bond? (that is what this thread has been talking about). I assume you are talking about some other problem. If you are running a 32-bTT kernel, and still running applications compiled for 32-bTT, then whatever problem you're seeing is not due to the 64-bTT changes. However, if you did compile the kernel from the latest source tree, then that would default to a 64-bTT. You would have to explicitly change __time_t in /usr/src/sys/sparc64/include/_types.h before compiling the kernel. I just tried a version of 'ls' compiled with 32-bTT on a 64-bTT system, and I am seeing the same kind of behavior that you are reporting. (in my case, all files show up 'Dec 31 1969', but I suspect that is a difference in timezones...). When you do the commands: grep __time_t /usr/src/sys/sparc64/include/_types.h grep __time_t /usr/include/machine/_types.h What do you see for the typedef's in the two files? If you just built a new kernel, how did you build and install it? Did you do it using 'make buildkernel' / 'make installkernel' in /usr/src, or did you do it in the old-standard way? -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu