Can you try just removing the file and then running 'make' again? On Jan 25, 2010, at 8:48 AM, Jiang Li wrote:
> Hi Hyrum, > > Thank you so much for your quick reply! > > Here is all the content of file subversion/libsvn_fs_fs/rep-cache-db.h. > > Just for your information, I just downloaded subversion 1.6.6 and I was able > to compile this version successfully. I am fine with v1.6.6, but I will try > to compile 1.6.9 tomorrow for a last try. This is late in my evening. I > appreciate your any suggestion. > > ============ > $ cat rep-cache-db.h > /* This file is automatically generated from > * subversion/libsvn_fs_fs/rep-cache-db.sql > * Do not edit it directly, but edit the source file and rerun 'make' > */ > > #define REP_CACHE_DB_SQL \ > "\ > "\pragma auto_vacuum = 1; > "\ > "\ > "\create table rep_cache (hash text not null primary key, > "\ revision integer not null, > "\ offset integer not null, > "\ size integer not null, > "\ expanded_size integer not null); > "" > ============ > > Jiang Li > > > 2010/1/25 Hyrum K. Wright <hyrum_wri...@mail.utexas.edu> > > On Jan 25, 2010, at 6:55 AM, Jiang Li wrote: > > > Hi Friends, > > > > May I ask you a question? > > > > I just started to use Subversion. I want to compile it from source code on > > my Red Hat Linux ES5.4. But I face below error when running 'make'. > > > > My steps are as below: > > > > 1. Get the source code subversion-1.6.9; > > 2. Get sqlite-amalgamation-3_6_22.zip and neon-0.29.3.tar.gz, extract them > > in subversion folder and change the directory name to remove the version > > number; > > 2. Run 'autogensh' without error; > > 3. Run 'configure' without error; > > 4. Run 'make' with below error: > > > > ================= > > /bin/sh /tmp/subversion-1.6.9/libtool --tag=CC --silent --mode=compile gcc > > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > > -I./subversion/include -I./subversion -I/usr/include/apr-1 > > -I/usr/include/apr-1 -I/tmp/subversion-1.6.9/neon/src > > -I/usr/local/include/neon -I/tmp/subversion-1.6.9/sqlite-amalgamation -o > > subversion/libsvn_fs_fs/rep-cache.lo -c subversion/libsvn_fs_fs/rep-cache.c > > In file included from subversion/libsvn_fs_fs/rep-cache.c:28: > > subversion/libsvn_fs_fs/rep-cache-db.h:8: error: expected identifier or '(' > > before string constant > > subversion/libsvn_fs_fs/rep-cache-db.h:10: error: expected identifier or > > '(' before string constant > > subversion/libsvn_fs_fs/rep-cache-db.h:24: error: expected identifier or > > '(' before string constant > > subversion/libsvn_fs_fs/rep-cache-db.h:24: error: missing terminating " > > character > > subversion/libsvn_fs_fs/rep-cache.c:34: error: missing terminating " > > character > > subversion/libsvn_fs_fs/rep-cache.c: In function > > 'svn_fs_fs__open_rep_cache': > > subversion/libsvn_fs_fs/rep-cache.c:67: error: 'upgrade_sql' undeclared > > (first use in this function) > > subversion/libsvn_fs_fs/rep-cache.c:67: error: (Each undeclared identifier > > is reported only once > > subversion/libsvn_fs_fs/rep-cache.c:67: error: for each function it appears > > in.) > > make: *** [subversion/libsvn_fs_fs/rep-cache.lo] Error 1 > > ============== > > > > I have no idea to resolve such issue even after googling the web. Could > > anyone share some light on this? > > It looks like there is a problem with subversion/libsvn_fs_fs/rep-cache-db.h, > which is a generated file. Could you show us the first 10 or 20 lines of > that file? > > Thanks, > -Hyrum > >