LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2002, 01:59 PM   #1
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
Timestamps


I just downloaded the source rpm of Fluxbox. I used correct instructions to build it... it gave me the error: error date is in the future (or something similar).
So, why shouldn't you be able to compile something, if the timestamp isn't correct?
 
Old 04-21-2002, 04:22 PM   #2
kibble
LQ Newbie
 
Registered: Apr 2002
Posts: 14

Rep: Reputation: 1
The program that generated that error message would have been the 'make' utility. Make is a very smart program most of the time. What it tries to do is determain source files need to be recompiled based on their timestamps. Say you had 2 .c source files and 1 .h header file, file1.c file2.c file1.h which you compiled and linked together to make program1. If you edited file1.h which is included in file1.c and file2.c you would have to compiled file1.c and file2.c into their .o object files again. So rather then manually typing out gcc commands you make a Makefile which contains those commands, then type make and it will look at timestamps and try to judge what should be recompiled based on those.

Ok so long winded but as you can see if you had a project with tens of hundereds of source files any number of which would be depended on each other it would take a long time to recompile something if you changed just one file, hence the make util.

Now to your problem. The author's machine where the source code was tar'd up may have incorrect date/time settings, which tar does preserve when you untar something. But it's more likely your date is incorrectly set. So when make looks at the date and timestamps to deside if something should be recompiled it notes the problem with the dates off it can't be sure which files need to be recompiled. But since this is a fresh untar'd source it's unlikey there is a problem because it compiled everything to start with.

So how do we fix this? Well obviously repair the date problem what ever it may be and untar the file again. And/Or type find -exec touch {} \; from the shell which will change all the timestamps to the currect date/time.
 
1 members found this post helpful.
Old 04-22-2002, 02:07 AM   #3
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Original Poster
Rep: Reputation: 30
Thank you!
You were correct, my time settings were wrong, actually, I was back one month....
And then Windows told me to change to summer-time...
But the program compiled just fine now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
archives, file timestamps and touch digitalgravy Linux - General 6 02-08-2006 07:47 PM
solaris ping timestamps plata Solaris / OpenSolaris 8 05-27-2005 01:36 PM
VSFTPD and file timestamps t3___ Linux - Newbie 4 01-21-2004 02:26 PM
converting log file timestamps mrtwice Linux - Software 3 09-22-2003 09:45 AM
squid timestamps chamkila Linux - General 1 05-08-2003 08:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration