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