CVS compile error - further info

Harald Fernengel harry at kdevelop.org
Fri Jun 27 12:10:33 BST 2003


Hi,

On Friday 27 June 2003 09:36, you wrote:
> To me this seems to be a problem with the data base lib (wrong version, or
> something like that?)
>
> Anyway, the following call
>
> if ((ret = dbp->open(
> 	dbp  BDB_OPEN_HACK, QFile::encodeName( indexName ).data(), 0, DB_BTREE,
> 	DB_CREATE, 0664)) != 0)
>
> causes the problem because QFile::encodeName().data() returns a char* and
> the open() function of the data base object (BerkeleyDB) requires
>
> int  (*open) __P((DB *, DB_TXN *, const char *, const char *,
>     DBTYPE, u_int32_t, int));
>
> (defined in line 1187 in db.h)
>
> the DB_TXN*, where the compiler starts to complain.
>
>
> Strangely enough there is another function pointer declaration further up
> in the db.h (in line 615)
>
> int  (*open)__P((DB_MPOOLFILE *, const char *, u_int32_t, int, size_t));
>
> which matches the parameter list...
>
>
> So, what's going on here? Do I have a wrong version of the BerkeleyDB or do
> I have to compile it with flags?

I'm slowly going nuts with the dbd lib... They changed the signature of one of 
the main functions in a minor release (!). Which version of BDB are you 
using? Looks like we're in for some more #ifdefs.

Best regards,
Harry

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list