Linux compat 2.6.16 reports time incorrect?
Gonzalo Nemmi
gnemmi at gmail.com
Tue Oct 21 18:19:31 UTC 2008
On Tuesday 21 October 2008 4:10:56 am Jeremy Messenger wrote:
> On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI <delphij at delphij.net> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Jeremy Messenger wrote:
> >> Hello folks,
> >>
> >> I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the
> >> same time. I am not sure which I am supposed to blame on. :-) Anyway,
> >> now my linux-opera M2 (mail) client reports time incorrect. So I have
> >> checked with date(1) and it does indeed report different.
> >>
> >> ----------------------------------
> >> # /bin/date
> >> Mon Oct 20 22:28:35 CDT 2008
> >> # /compat/linux/bin/date
> >> Tue Oct 21 03:28:38 UTC 2008
> >> ----------------------------------
> >>
> >> I do not remember for have to configure the date correct for Linux 2.4
> >> stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am
> >> wondering if I have to do that now for configure time or it's not
> >> normal?
> >
> > Looks like you don't have a proper /etc/localtime setting? I think
> > tzsetup would help...
>
> I don't think so. FreeBSD's orignal /bin/date reports correct, but
> /compat/linux/bin/date reported different. I have downgraded Linux compat
> back to 2.4 and linux_base-fc4 stuff, now I have this:
>
> ----------------------------------
> # /bin/date
> Tue Oct 21 01:03:20 CDT 2008
> # /compat/linux/bin/date
> Tue Oct 21 01:03:23 CDT 2008
> ----------------------------------
>
> Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or
> linux_base-f8 or it's new that I have to configure in /compat/linux/* for
> time stuff?
>
> Cheers,
> Mezz
>
> > Cheers,
> > - --
> > Xin LI <delphij at delphij.net> http://www.delphij.net/
> > FreeBSD - The Power to Serve!
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v2.0.9 (FreeBSD)
> >
> > iEYEARECAAYFAkj9XrcACgkQi+vbBBjt66A8PQCfUCbiPi4HXHDDUBHqq8311cDm
> > uwYAn2RypKDA7B654Kj5Db4zsCpibw79
> > =dyre
> > -----END PGP SIGNATURE-----
[gonzalo at inferna ~]% uname -a
FreeBSD inferna.inferna.com.ar 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Jul 20
03:44:42 ART 2008
root at inferna.inferna.com.ar:/usr/obj/usr/src/sys/INFERNA i386
[gonzalo at inferna ~]% /bin/date
Tue Oct 21 15:42:29 ARST 2008
[gonzalo at inferna ~]% /compat/linux/bin/date
Tue Oct 21 15:42:30 ARST 2008
[gonzalo at inferna ~]% sysctl -a | grep linux
hw.snd.compat_linux_mmap: 0
compat.linux.oss_version: 198144
compat.linux.osrelease: 2.6.16
compat.linux.osname: Linux
[gonzalo at inferna ~]% pkg_info -cx linux_base
Information for linux_base-fc-4_13:
Comment:
Base set of packages needed in Linux mode (for i386/amd64)
[gonzalo at inferna ~]%
I'd go for linux_base-f8 given that it seems to work ok under
linux_base-fc-4_13 with 2.6.16.
Regards
--
Blessings
Gonzalo Nemmi
More information about the freebsd-emulation
mailing list