Without more information I can only offer you how I've done this on CentOS & Fedora Linux distros. I know a co-worker who got it to build on
Ubuntu as well but I'm not familiar with all the steps they took to accomplish this.
For myself I used the following steps.
First I needed to make a change to line # 150 in
#define USE_TIME_NOW -2 // 0 and -1 might already be significant.
#define USE_TIME_NOW apr_time_now() // 0 and -1 might already be significant.
NOTE: The details for the
apr_time_now() function were on this page.
This function returns the current time. Also that page detailed the function
apr_time_exp_lt(). In the file
SVNWcRev.cpp there is a function
InsertDate() that is called with several arguments including
USE_TIME_NOW. This argument along with a newly constructed
apr_time_exp_t object are passed to the
apr_time_exp_lt(). With the original value of -2, this function was returning 12/31/1969 (1/1/1970 - 2usecs).
My co-workers and I seemed to think that this might have been correct behavior on a different platform, or possibly a older version of the
apr library was implemented differently where that used to work. I used
apr version 1.4.5 to build
Changing to the function
apr_time_now() fixed the issue.
Installation & Setup
svnwcrev is a implementation of the
subwcrev.exe tool provided by
TortoiseSVN, here. I found
svnwcrev here. I downloaded
svnwcrev like so:
% svn checkout http://svnwcrev.tigris.org/svn/svnwcrev/trunk svnwcrev --username guest
NOTE: I got the following version of svnwcrev.
% svn info
Repository Root: http://svnwcrev.tigris.org/svn/svnwcrev
Repository UUID: 4d73e863-0307-0410-bf4f-fe65b2d002b6
Node Kind: directory
Last Changed Author: mailman
Last Changed Rev: 10
Last Changed Date: 2011-05-26 05:05:03 -0400 (Thu, 26 May 2011)
Once downloaded I made the following changes.
1. created a
% cp config_mk.template config.mk
config.mk so that it looked like this:
3. installed the
svnwcrev like so: