WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Builds complaining about file timestamps.  (Read 3078 times)

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Builds complaining about file timestamps.
« on: December 08, 2014, 01: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...


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Builds complaining about file timestamps.
« Reply #1 on: December 08, 2014, 02: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.

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Builds complaining about file timestamps.
« Reply #2 on: December 08, 2014, 02: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.

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Builds complaining about file timestamps.
« Reply #3 on: December 08, 2014, 02:55:40 PM »
Probably I need to set my timezone too :-)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Builds complaining about file timestamps.
« Reply #4 on: December 08, 2014, 05: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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Builds complaining about file timestamps.
« Reply #5 on: December 08, 2014, 06: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.

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Builds complaining about file timestamps.
« Reply #6 on: December 08, 2014, 08: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Builds complaining about file timestamps.
« Reply #7 on: December 08, 2014, 09:09:30 PM »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Builds complaining about file timestamps.
« Reply #8 on: December 09, 2014, 01: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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Builds complaining about file timestamps.
« Reply #9 on: December 09, 2014, 12:28:44 PM »
Preferred way to activate ntpd ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Builds complaining about file timestamps.
« Reply #10 on: December 10, 2014, 06: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.


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: Builds complaining about file timestamps.
« Reply #11 on: December 16, 2014, 12:47:57 PM »
Thanks, I added ntpd to bootlocal.sh - easiest fastest simplest solution.