Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: eno on December 08, 2014, 04:54:16 PM

Title: Builds complaining about file timestamps.
Post by: eno on December 08, 2014, 04:54:16 PM
Code: [Select]
$ ./configure --with-ssl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock

How to set system clock? ntpclient not available for piCore 6 yet...

Title: Re: Builds complaining about file timestamps.
Post by: Rich on December 08, 2014, 05:10:22 PM
Hi eno
Try the  date  command. If you are running a GUI, see if there's a Control Panel icon and click on the  Date/Time  button.
Title: Re: Builds complaining about file timestamps.
Post by: eno on December 08, 2014, 05:54:43 PM
Im running a headless/keyboardless server so no GUI and very very minimal install - I only have openssh and cron running :-) so there are some system-level things I need to add/configure.
Title: Re: Builds complaining about file timestamps.
Post by: eno on December 08, 2014, 05:55:40 PM
Probably I need to set my timezone too :-)
Title: Re: Builds complaining about file timestamps.
Post by: Rich on December 08, 2014, 08:18:43 PM
Hi eno
In that case you want the date command. It's used to set the date and the time. Enter:
Code: [Select]
date --helpfor more info.
Title: Re: Builds complaining about file timestamps.
Post by: gerald_clark on December 08, 2014, 09:48:09 PM
If you are building programs on an NFS mount you need to keep the times syncronized.  You really need a time server that all machines sync from.
Title: Re: Builds complaining about file timestamps.
Post by: eno on December 08, 2014, 11:43:33 PM
Does the Raspberry Pi hardware have a RTC that could be used at boot?

Im not using NFS but I should probably use ntp. The problem is its not available for piCore 6 yet:

Code: [Select]
$ tce-load -wi ntp
Downloading: ntp.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: ntp.tcz.md5.txt: No such file or directory
Error on ntp.tcz
$



Ill run date manually for now, thanks.
Title: Re: Builds complaining about file timestamps.
Post by: Rich on December 09, 2014, 12:09:30 AM
Hi eno
Maybe this thread is of some use:
http://forum.tinycorelinux.net/index.php/topic,17325.msg104180.html#msg104180
Title: Re: Builds complaining about file timestamps.
Post by: bmarkus on December 09, 2014, 04:45:49 AM
BusyBox ntpd applet is part of the base, it used to set time during startup. Also you can runt it as a daemon to keep time in sync.
Title: Re: Builds complaining about file timestamps.
Post by: eno on December 09, 2014, 03:28:44 PM
Preferred way to activate ntpd ?
Title: Re: Builds complaining about file timestamps.
Post by: bmarkus on December 10, 2014, 09:05:44 AM
Preferred way to activate ntpd ?

There are several options, so it is up to you. You can run it once to update system time as piCore is doing or you can run as a daemon:

Code: [Select]
sudo ntpd -p pool.ntp.org
Of course you can define a different server or you can script it to use /etc/sysconfig/ntpserver.


Title: Re: Builds complaining about file timestamps.
Post by: eno on December 16, 2014, 03:47:57 PM
Thanks, I added ntpd to bootlocal.sh - easiest fastest simplest solution.