[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: subversion-1.6.9 build error

From: Jiang Li <a16118_at_gmail.com>
Date: Tue, 26 Jan 2010 23:02:03 +0800

Hi Hyrum,

Yes, after removing the extra ^M characters, I got it working. I do not know
if the problem is specific to my system, I would doubt it.

My system is a newly installed RedHat ES5.4.

Jiang Li

2010/1/26 Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>

> Glad to hear that you finally got it working. Was the problem the ^M
> characters? If so, I wonder if it is specific to your platform, or more
> general.
>
> But the entire episode does make me wonder why we require people building
> to generate these files locally. I'll take a look at the pre-build system
> and see what I can find out.
>
> -Hyrum
>
> On Jan 25, 2010, at 5:27 PM, Jiang Li wrote:
>
> > Hi Hyrum,
> >
> > You are an expert, I am able to compile v1.6.9 successfully.
> >
> > Here is my update.
> >
> > 1. I tried again by downloading subversion-deps-1.6.9 and compiled again,
> but with the same problem.
> > 2. I double check the file subversion/libsvn_fs_fs/rep-cache-db.h with
> 'vi' editor, I found that there are extra '^M' characters in this file.
> Using 'cat' will not show this. So this is the problem caused by
> auto-generation. I removed the extra '^M', then run 'make', it works.
> >
> > Thanks again!
> > Jiang Li
> >
> >
> >
> >
> > 2010/1/25 Jiang Li <a16118_at_gmail.com>
> > Hyrum,
> >
> > Thanks! Tomorrow I will download Subversion 1.6.9 dependency package for
> a try.
> >
> > I suspect the problem was caused by not using that package. I will update
> you the result.
> >
> > I will go offline now. Thanks again for your help!
> >
> >
> > Jiang Li
> >
> > 2010/1/25 Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
> >
> > On Jan 25, 2010, at 8:55 AM, Jiang Li wrote:
> >
> > > Hyrum,
> > >
> > > No luck. The file will be re-generated again after running 'make'.
> >
> > As it should be.
> >
> > > 2010/1/25 Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
> > > 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);
> > > > ""
> > > > ============
> >
> > This does not look like the correct contents of the file (there aren't
> any terminating " characters on each line, for instance).
> >
> > The longer term solution is for us to generate that file before creating
> the tarball (much as we pre-generate the swig bindings), rather than
> requiring people to have a locally-installed Python to generate that file
> locally.
> >
> > Here are the contents of rep-cache-db.h which work for me:
> >
> > =============
> > /* 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_wright_at_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
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>
Received on 2010-01-26 16:02:38 CET

This is an archived mail posted to the Subversion Users mailing list.