dbTalk Databases Forums  

Db.set_dup_compare failing on 64-bit linux

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Db.set_dup_compare failing on 64-bit linux in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike
 
Posts: n/a

Default Db.set_dup_compare failing on 64-bit linux - 06-21-2006 , 06:52 PM






I have some code that sets up a database for sorted duplicates using
Db.set_dup_compare. It works fine on Mac OS/X and Windows XP (MinGW),
but on SuSE Linux (64-bit), set_dup_compare returns EINVAL. The
function pointer passed in is a static member function of a class, and
again it works correctly on the other platforms. What could the Db be
complaining about?

The gcc on SuSE Linux is version 3.3.3.

Thanks for any insight,

Mike


Reply With Quote
  #2  
Old   
Ron
 
Posts: n/a

Default Re: Db.set_dup_compare failing on 64-bit linux - 06-22-2006 , 07:57 AM






Mike wrote:
Quote:
I have some code that sets up a database for sorted duplicates using
Db.set_dup_compare. It works fine on Mac OS/X and Windows XP (MinGW),
but on SuSE Linux (64-bit), set_dup_compare returns EINVAL. The
function pointer passed in is a static member function of a class, and
again it works correctly on the other platforms. What could the Db be
complaining about?

The gcc on SuSE Linux is version 3.3.3.

Thanks for any insight,

Mike
Mike,

Is there a more detailed error message? Have you configured for
verbose errors?

The Berkeley DB library optionally outputs a verbose error
message whenever it is about to return a general-purpose error,
or throw a non-specific exception. Whenever it is not clear why
an application call into Berkeley DB is failing, the first step
is always to turn on verbose error messages, which will almost
always explain the problem. For more information on turning on
verbose error messages, please see the "Run-time error
information" section of the Berkeley DB Reference Guide,
included in your download package and also available at:

http://www.sleepycat.com/docs/ref/debug/runtime.html

Ron



Reply With Quote
  #3  
Old   
Mike
 
Posts: n/a

Default Re: Db.set_dup_compare failing on 64-bit linux - 06-22-2006 , 04:35 PM



Quote:
Is there a more detailed error message? Have you configured for
verbose errors?
I used Db.set_errfile (stdout) and found that it didn't like a flag I
had passed to Db.set_flags (DB_NODUPDATA). I took it out and
everything now works. Wonder why it didn't complain on the other
platforms....

Thanks,

Mike



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.