You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Stenberg <da...@haxx.se> on 2000/09/08 13:11:22 UTC

another compiler error

Hi

I don't want to be a nuisance, so just ignore this if you feel you don't have
time with this!

My guess is that one you have forgot to commit a local change in the
'subversion/include/svn_delta.h' file. Namely the svn_read_fn_t typedef,
which is used in the include/svn_fs.h file.

make[1]: Entering directory `/home/dast/src/subversion/subversion/libsvn_fs'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I../.. -I../include -I../../apr/include -I../../expat-lite
-I/home/dast/src/subversion/db-3.1.17/build_unix    -g -O2 -c fs.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../apr/include
-I../../expat-lite -I/home/dast/src/subversion/db-3.1.17/build_unix -g -O2
-Wp,-MD,.deps/fs.pp -c fs.c -o fs.o
In file included from fs.h:59,
                 from fs.c:60:
../include/svn_fs.h:277: parse error before `*'
make[1]: *** [fs.lo] Error 1
make[1]: Leaving directory `/home/dast/src/subversion/subversion/libsvn_fs'

The problematic section in the svn_fs.h file is this:

[from line 270 something]
/* Set *CONTENTS to a `read'-like function which will return the
   contents of FILE; see the description of svn_read_fn_t in
   `svn_delta.h'.  Set *CONTENTS_BATON to a baton to pass to CONTENTS.  *
svn_error_t *svn_fs_file_contents (svn_read_fn_t **contents,
                                   void **contents_baton,
                                   svn_fs_file_t *file);

% grep -c svn_read_fn_t include/svn_delta.h
0

... and no other header file seems to have it either.

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

Re: another compiler error

Posted by Ben Collins-Sussman <su...@newton.collab.net>.
Daniel Stenberg <da...@haxx.se> writes:

> Hi
> 
> I don't want to be a nuisance, so just ignore this if you feel you don't have
> time with this!
> 
> My guess is that one you have forgot to commit a local change in the
> 'subversion/include/svn_delta.h' file. Namely the svn_read_fn_t typedef,
> which is used in the include/svn_fs.h file.
> 

Ah!  Fixing this right now.  It was originally called
svn_delta_read_fn_t and existed in svn_delta.h ... but now we're
generalizing it and making it more widely available as
`svn_read_fn_t'.

Re: another compiler error

Posted by Karl Fogel <kf...@galois.collab.net>.
Daniel Stenberg <da...@haxx.se> writes:
> I don't want to be a nuisance, so just ignore this if you feel you don't have
> time with this!

Are you kidding?  It's *great* to have you compiling & reporting
what's wrong in such detail.  Thank you!

-K

> My guess is that one you have forgot to commit a local change in the
> 'subversion/include/svn_delta.h' file. Namely the svn_read_fn_t typedef,
> which is used in the include/svn_fs.h file.
> 
> make[1]: Entering directory `/home/dast/src/subversion/subversion/libsvn_fs'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I. -I../.. -I../include -I../../apr/include -I../../expat-lite
> -I/home/dast/src/subversion/db-3.1.17/build_unix    -g -O2 -c fs.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../apr/include
> -I../../expat-lite -I/home/dast/src/subversion/db-3.1.17/build_unix -g -O2
> -Wp,-MD,.deps/fs.pp -c fs.c -o fs.o
> In file included from fs.h:59,
>                  from fs.c:60:
> ../include/svn_fs.h:277: parse error before `*'
> make[1]: *** [fs.lo] Error 1
> make[1]: Leaving directory `/home/dast/src/subversion/subversion/libsvn_fs'
> 
> The problematic section in the svn_fs.h file is this:
> 
> [from line 270 something]
> /* Set *CONTENTS to a `read'-like function which will return the
>    contents of FILE; see the description of svn_read_fn_t in
>    `svn_delta.h'.  Set *CONTENTS_BATON to a baton to pass to CONTENTS.  *
> svn_error_t *svn_fs_file_contents (svn_read_fn_t **contents,
>                                    void **contents_baton,
>                                    svn_fs_file_t *file);
> 
> % grep -c svn_read_fn_t include/svn_delta.h
> 0
> 
> ... and no other header file seems to have it either.
> 
> -- 
>       Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
>    ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol