You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dominik Fritz <sv...@dominikfritz.de> on 2004/09/06 07:37:49 UTC

Re: compile problem subversion 1.0.6

Hi Bas,

I checked the integrity of the packages db, db-devel and db-util each 
with version 4.2.52.85 and all of them seem to be ok.
And if I compare the db relevant sections of the configure output with 
the file you send me, everything seems to be fine too.
Do you have an other hint why compiling could fail?

/bin/sh /storage/install/subversion-1.0.6/libtool --silent
--mode=compile gcc -DLINUX=2 -D_REENTR
ANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE  -g 
-O2  -g -O2 -pthread  -DNE
ON_ZLIB  -I./subversion/include -I.
-I/storage/install/subversion-1.0.6/neon/src -I/usr/local/inc
lude/neon -I/usr/local/apache2/include
-I/storage/install/subversion-1.0.6/apr-util/include  -o
 subversion/libsvn_fs/bdb/bdb-err.lo -c subversion/libsvn_fs/bdb/bdb-err.c
In file included from subversion/libsvn_fs/bdb/bdb-err.c:30:
subversion/libsvn_fs/fs.h:48: error: parse error before "DB_ENV"
subversion/libsvn_fs/fs.h:48: warning: no semicolon at end of struct or 
union
subversion/libsvn_fs/fs.h:51: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:52: error: parse error before '*' token
subversion/libsvn_fs/fs.h:52: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:53: error: parse error before '*' token
subversion/libsvn_fs/fs.h:53: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:54: error: parse error before '*' token
subversion/libsvn_fs/fs.h:54: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:55: error: parse error before '*' token
subversion/libsvn_fs/fs.h:55: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:56: error: parse error before '*' token
subversion/libsvn_fs/fs.h:56: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:57: error: parse error before '*' token
subversion/libsvn_fs/fs.h:57: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:58: error: parse error before '*' token
subversion/libsvn_fs/fs.h:58: warning: data definition has no type or 
storage class
subversion/libsvn_fs/fs.h:74: error: parse error before '}' token
subversion/libsvn_fs/bdb/bdb-err.c: In function `bdb_err_to_apr_err':
subversion/libsvn_fs/bdb/bdb-err.c:41: error: `DB_LOCK_DEADLOCK'
undeclared (first use in this function)
subversion/libsvn_fs/bdb/bdb-err.c:41: error: (Each undeclared
identifier is reported only once
subversion/libsvn_fs/bdb/bdb-err.c:41: error: for each function it 
appears in.)
subversion/libsvn_fs/bdb/bdb-err.c: In function `svn_fs__bdb_dberr':
subversion/libsvn_fs/bdb/bdb-err.c:52: warning: passing arg 3 of pointer 
to function makes pointer from integer without a cast
subversion/libsvn_fs/bdb/bdb-err.c: In function `svn_fs__bdb_wrap_db':
subversion/libsvn_fs/bdb/bdb-err.c:78: error: dereferencing pointer to 
incomplete type
subversion/libsvn_fs/bdb/bdb-err.c:78: error: dereferencing pointer to 
incomplete type
make: *** [subversion/libsvn_fs/bdb/bdb-err.lo] Fehler 1



Bas Mevissen wrote:

> Dominik Fritz wrote:
>
>> Hi Bas,
>>
>> thanks for your reply.
>
>
> Sorry for the long delay. I was too busy to answer timely.
>
>> I use the suse 9.1 standard package db 4.2.52. But the configure 
script did not recognise it as 4.2 but as 4.0 because suse uses the 
path /usr/include/db4 instead of /usr/include/db42.
>
>
> That should not be a problem as Fedora Core 2 also had 4.2.52
> installed in /usr/include/db4. So something seems to be wrong with  your
computer. Can you check the integrity of all installed db4 rpms  (rpm -V
db4....)?
>
> I've tried version 1.0.6 on my Fedora Core 2 box. I've attached the 
configure output to this mail. Maybe comparing my output with yours 
might help.
>
> P.S. Please keep postings to mailing lists on the mailing list too. 
Otherwise other people have to ask the same questions again.
>
> P.S.2. Please keep the mail address I use now away from public mailing 
lists. That saves me dozens of spam.
>
> Regards,
>
> Bas.




Re: compile problem subversion 1.0.6

Posted by Kevin Bentley <ke...@gmail.com>.
This will happen if you have an old copy of the bdb include files
somewhere, and apr finds and uses that. If you look in the file
apu_want.h in the apr package, you might find that it is including
db1/db.h or something like that. Make sure you have a new version of
the berkeley database installed, and run configure with
--with-berkeley-db= pointing to that location.

For what it's worth, I don't think that bdb 4.2.x will work with the
version of Subversion you are trying to build unless you apply a patch
to your apr-util directory (or as I did, download a newer version of
apr from apache's web site). Perhaps that's the real cause of your
problem. In the 1.1.0-rc2 package, there's a patch file called
db42-support-patch.txt.

On Mon, 6 Sep 2004 09:37:49 +0200 (CEST), Dominik Fritz
<sv...@dominikfritz.de> wrote:
> Hi Bas,
> 
> I checked the integrity of the packages db, db-devel and db-util each
> with version 4.2.52.85 and all of them seem to be ok.
> And if I compare the db relevant sections of the configure output with
> the file you send me, everything seems to be fine too.
> Do you have an other hint why compiling could fail?
> 
> /bin/sh /storage/install/subversion-1.0.6/libtool --silent
> --mode=compile gcc -DLINUX=2 -D_REENTR
> ANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE  -g
> -O2  -g -O2 -pthread  -DNE
> ON_ZLIB  -I./subversion/include -I.
> -I/storage/install/subversion-1.0.6/neon/src -I/usr/local/inc
> lude/neon -I/usr/local/apache2/include
> -I/storage/install/subversion-1.0.6/apr-util/include  -o
> subversion/libsvn_fs/bdb/bdb-err.lo -c subversion/libsvn_fs/bdb/bdb-err.c
> In file included from subversion/libsvn_fs/bdb/bdb-err.c:30:
> subversion/libsvn_fs/fs.h:48: error: parse error before "DB_ENV"
> subversion/libsvn_fs/fs.h:48: warning: no semicolon at end of struct or
> union
> subversion/libsvn_fs/fs.h:51: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:52: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:52: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:53: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:53: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:54: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:54: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:55: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:55: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:56: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:56: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:57: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:57: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:58: error: parse error before '*' token
> subversion/libsvn_fs/fs.h:58: warning: data definition has no type or
> storage class
> subversion/libsvn_fs/fs.h:74: error: parse error before '}' token
> subversion/libsvn_fs/bdb/bdb-err.c: In function `bdb_err_to_apr_err':
> subversion/libsvn_fs/bdb/bdb-err.c:41: error: `DB_LOCK_DEADLOCK'
> undeclared (first use in this function)
> subversion/libsvn_fs/bdb/bdb-err.c:41: error: (Each undeclared
> identifier is reported only once
> subversion/libsvn_fs/bdb/bdb-err.c:41: error: for each function it
> appears in.)
> subversion/libsvn_fs/bdb/bdb-err.c: In function `svn_fs__bdb_dberr':
> subversion/libsvn_fs/bdb/bdb-err.c:52: warning: passing arg 3 of pointer
> to function makes pointer from integer without a cast
> subversion/libsvn_fs/bdb/bdb-err.c: In function `svn_fs__bdb_wrap_db':
> subversion/libsvn_fs/bdb/bdb-err.c:78: error: dereferencing pointer to
> incomplete type
> subversion/libsvn_fs/bdb/bdb-err.c:78: error: dereferencing pointer to
> incomplete type
> make: *** [subversion/libsvn_fs/bdb/bdb-err.lo] Fehler 1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org