DB_PAGE_NOTFOUND given when do db_dump

Hi.
I'm going to do some development on my Motolora E680i cellphone which has a linux on it. I crosscompile BDB4.5.20NC and run db_dump to see the database on my cellphone. But when I type db_dump -p native.db, an error reported:
#db_dump: DBcursor->get: DB_PAGE_NOTFOUND: Requested page not found
I copied the native.db to my windows computer, and used windows version db_dump, all infomation was given normally.
When I try to use Db::open to open one of the databases in the native.db file on my cellphone, the same error message is given. So who can tell me what's happend?

here's the codes, I will try the DB_INIT_LOCK
int CEmsDoc::ConnectDB()
int ret = RET_OK;
m_pdb = new Db( NULL, DB_CXX_NO_EXCEPTIONS );
if( NULL == m_pdb )
TRACELOG("new Db failed");
goto CLEANUP;
if ( m_pErrFile )
m_pdb->set_error_stream( m_pErrFile );
ret = m_pdb->open( NULL, "/ezxlocal/sysDatabase/native.db", "ems_table_in_flash", DB_UNKNOWN, DB_RDONLY, 0);
if ( ret )
TRACE( "db open faild at line %i in %s" );
goto CLEANUP;
ret = m_pdb->cursor( NULL, &m_pdbcCursor, DB_TXN_SNAPSHOT );
if ( ret )
TRACE( "cursor failed at line %i in %s" );
goto CLEANUP;
CLEANUP:
if ( ret )
DisConnectDB();
return ret;
and I have tried this:
m_pDbEnv = new DbEnv( DB_CXX_NO_EXCEPTIONS );
m_pDbEnv->open( ""/ezxlocal/sysDatabase", DB_INIT_CDB|DB_INIT_MPOOL, 0 );
m_pdb->open( m_pDbEnv, native.db", "ems_table_in_flash", DB_UNKNOWN, DB_RDONLY, 0);
It returns No such file or dirctory when open DBEnv, but I'm sure the path and filename and the dbname are right.
BTW, am I right to cross compile bdb like this:
first I add this at the begining of dist/configure
#my crosscompiler named arm-linux-...
CC=arm-linux-gcc
CXX=arm-linux-g++
AR=arm-linux-ar
RANLIB=arm-linux-ranlib
STRIP=arm-linux-strip
then under build_unix:
../dist/configure host=arm-linux perfix=/opt/bdb --enable-cxx
make
make install
null

Similar Messages

  • Used CS6 for a year or more, now says it's not registered! I have 1 or 2 unused keys but do not want to use them. Can't get the CS6 applications to open to enter the codes I was given when I first registered them...

    Used CS6 for a year or more, now says it's not registered! I have 1 or 2 unused keys but do not want to use them. Can't get the CS6 applications to open to enter the codes I was given when I first registered them...

    You'll need to use web chat. This file shows you links to Web Chat:
    Adobe ID, sign in, and account help

  • The privacy option doesn't work in 5.0: There's no notification given when multiple tabs are closed.

    The privacy option in 5.0 doesn't work.
    When exiting Firefox with multiple tabs open, no notification is given...
    How can I go back to Firefox 4?
    I had the google toolbar when I had firefox 4... I upgraded to 5.0 and it still works... My friend tried to load it and it doesn't work.

    ''The privacy option in 5.0 doesn't work.''
    Do you mean that Privacy options can't be accessed in the Options dialog, or Private Browsing doesn't work??
    Could you test with a new profile to see whether the update might have caused a settings problem, or you have an incompatible add-on?
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, close Firefox and fire up the Profile Manager to create a new profile: [https://support.mozilla.com/kb/Managing+profiles Managing profiles].
    If that work, you can migrate your bookmarks, saved passwords, and other key settings to the new profile, see: [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

  • Overwrite message given when saving pdf files

    If I open a pdf attachment in Thunderbird and then select "Save As" in the pdf application, I get an overwrite message when using an edited existing filename. eg: If a filename xxxx.pdf exists in the folder to which I want to save and I use the name and then edit the name to xxxx2.pdf prior to saving, I get a "Overwrite existing file xxxx.pdf" message. If I select "Yes", it saves the file as xxxx2.pdf and does not overwrite the old file (so the result is what I intended). This is thus a false message, as the mechanism works correctly.
    I have version 24.5.0 installed on Windows 8 and Adobe Acrobat Reader XI as default. It was working correctly on my XP machine, but seemed to have changed when changing to Windows 8.
    When following the same steps from a file outside Thunderbird, I do not get the message.

    Is this PDF open in acrobat reader? If so Thunderbird has no control or involvement in the process at all, you will need to contact adobe about the aberrant behavior..

  • Odd error message given when saving a file to a secondary drive.

    I am running Photoshop CS3 Extended on a Windows XP Pro, with SP2 installed. The computer has two hard drives installed. On all previous versions of Photoshop I've been able to save a file to my 2nd hard drive easily by typing "D:\image.jpg"
    When I try to do the same in Photoshop CS3 I get an error message that says "could not save as d:\d:\image.jpg because the file name was invalid"
    So I have to hit SHIFT+CTRL+S then type "d:\" and then type a file name, making it a 2 step procedure to save a file now. If I don't follow this procedure, and just type the filename it saves the file on drive C:\ in a subdirectory.
    Obviously it's a path error, but I've never had a problem with a straight out command "D:\image.jpg" on previous versions and looking at the Preferences options or doing a search for this error didn't shed any light on this issue. Thanks for any feedback on this problem.

    i "could not save as d:\d:\image.jpg because the file name was invalid"
    It seems that the "explorer" function is already set to drive D:\, as evidenced by the error message. If the file came from D:\, or you have been saving to D:\, then you will not type "D:\" into the file name, as both the ":" and the "\" are forbidden characters.
    As a test, Open a file from C:\, then Save to C:\. Now, Do a Save_As and try typing "d:\image.jpg." It should do this, without the error message.
    Just a note: you may have simplified the path for your post, but otherwise, it's not a good practice to save any file into the root of a drive - always do a folder. If this was for done as an example only, then ignore my caveat.
    Hunt

  • How do I locate the errors I am given when I save?

    When I save my workbook it tells me "Some cells or styles in this workbook contain formatting that is not supported by the selected file format. These formats will be converted to the closest format available." And that it happens 11 times.
    Is there a way to locate these 11 cells? I've already gone through and changed all styles to normal and then changed them all just using this version of excel's styles and formats but to no avail. Any help would be greatly appreciated.

    Hi,
    What the version of Excel are you using ? Is the file extension xls or xlsx?
    Generally it should be the special effects, shadows and colors.You can try to use the Compatibility Checker to address these cells location.Go to File->Info->Inspect Workbook->Check for issues->Checker Compatibility.
    It lists items which may not be compatible with previous versions ,you can click 'Find' hyperlink, which will take you to the cells in question.
    Best Regards,
    Wind

  • Wrong answers given when searching address book

    Some times when I search my address book for a key word (e.g. king), the cards that are returned in the answer column a) do not have the word or four letters of king highlighted anywhere in them AND b) most do not have the word or phrase of king anywhere in them. That is, too many cards are returned as answers to the search for king and therefore the search function in Address book is not working correctly and it is VERY frustrating. To fix the problem I tried to clean the caches and I repaired permissions and did a disrepair, and I also did a spotlight index rebuild but nothing has fixed this problem. Please help! I'm using Address book 4.1.1 (699) and OS X 10.5.6.

    If you are able to fix the searching problem by editing a card and then searching for it, then it sounds like your database is missing some details. I have a possible solution for you but it is risky and you need to back up your AddressBook folder (or export an Address Book Archive from the File menu).
    1 - Quit all apps except Finder
    2 - Using Finder, go to (home folder)/Library/Application Support/AddressBook/
    3 - Drag your AddressBook-v22.abcddb file to the trash
    4 - Launch Address Book
    What this does is rebuild your Address Book database from the files in the Metadata folder. That should write out the database in a way that includes all of the information required for searching.

  • Invalid Serial number error given when reinstalling Acrobat 9 Standard. How can I reinstall?

    I recently reinstalled Windows7 on my PC and am trying to reinstall Acrobat from the disk that came with my PC. I have the serial number from the Adobe product registration page. I am receiving the error "Invalid Serial Number". I checked for any remnant files in my PC and the registry, there are none. How can I get this install to run?

    Just talked with Chat. I will post the transcript. What a waste of time.

  • Segmentation Fault given when running passwd

    This is an entirely new setup.
    Command run:
    # passwd
    Expected Result:
    Would be able to change password of current user.
    Actual Result:
    Immediately outputs "Segmentation fault" to the console.
    I'm entirely new to Arch linux, and somewhat new to linux in general (one year of ubuntu). I've googled around, and found that https://bugzilla.redhat.com/show_bug.cgi?id=590247 describes the same problem and that a solution is provided in comment 9. I read the man page for pacman, and decided that  "# pacman -S "nss-softokn>=3.12"" would be the arch linux equivalent, but that didn't work. Please help me.

    litemotiv wrote:Can you give more information about which ISO you installed, how you installed it, and which steps you have taken after finishing the installation procedure?
    The filename of the ISO  is "archlinux-2010.05-core-x86_64.iso". After 'finishing the installation procedure' (assuming that installation ends at the point that you can login as root at the console without the help of the disk), I fiddled around to make the wireless connection connect automatically, abandoned that finding out that it would be easier once I had a gui set up, installed KDE, found it wouldn't let me log in as root forever, added a user, and attempted to set a password for it.
    jasonwryan wrote:
    Welcome to the boards.
    A couple of things: you can always search for package details using the Packages link at the top of the page: nss-softokn isn't an Arch package - the package that contains passwd is shadow http://www.archlinux.org/packages/core/i686/shadow/
    Make sure you have the correct version installed (4.1.4.2-3): pacman Syu && pacman -S shadow
    For future reference, you downgrade like so: https://wiki.archlinux.org/index.php/Downgrade
    This worked, thanks very much

  • Unknown error given when trying to sync with Desktop 4.3 on my windows Vista

    Everything worked great with my blackberry pearl and then I got a new computer with WIndows Vista...I am having a tough time getting it to work.  I installed desktop 4.3 because my earlier version was causing my whole computer to turn off...now whenever I connect my BB and try to sync it says   "unkonwn error reported'   any ideas? please help

    The error message indicates that the VBScript engine is not currently registered on the machine
    Resolution
    1.Run Command Prompt as administrator
    1.1 Start menu -> All Programs-> Accessories
    1.2 Right click on Command Prompt and select Run as administrator
    2. type  cd %windir%\system32 "Press Enter"
    3. type regsvr32 vbscript.dll "Press Enter"
    4. Reboot System and re-install program
    That should do it

  • A warning message is given when a daemon is started.

    After missing couple weekly updates to our server, we did an update today. After the update, we got a warning message whenever any daemon is started, stopped, or restarted.
    `/etc/rc.d/functions: line 11: /etc/profile.d/locale.sh: No such file or directory`

    This file is provided by the filesystem package, you can grab it from https://projects.archlinux.org/svntogit … filesystem
    Seems similar to https://bbs.archlinux.org/viewtopic.php?id=148162

  • When I try to back up iCloud on my iPhone 5, it will not complete, no reason given

    I have backed up iCloud on my iPhone 5 many times but lately it won't complete. It goes for a while looking like it is working & then comes up & says it cannot complete, no reason given.

    When I start the backup, it says there is 2.9 GB of space available. The times it would not complete, it never gave progress. I tried again this morning (7am) & it showed progress & I considered that an improvement. It is still plugged in ( noon ) & running (or appears to be) & says about 2 days left.....  I will leave it a while & see what happens & then try your instructions if it still does not backup. I was reading the FAQs on this & it said something about deleting old photos that are on iCloud. I have moved all pics I want into iPhoto. If I delete old ones from iCloud, will it leave the ones in iPhoto?
    Thanks!

  • Lightroom encountered an error when reading from its preview cache and needs to quit

    Lightroom 5.3 quit and would not restart two weeks after the upgrade from LR4.  Imported six folders (30plus GB of pictures) sucessfully after the upgrade and all was well.  Then the error message.  Rebooted several times. No change.  Trashed the LR5 preferences suggested in another adobe forum disscussion about the same error.  Problem is when the previous folder was upgraded to LR5 standards after the preference trash, the six folders of pictures were not included in the upgrade (this is important: the folders were simply not included at all in the upgrade and do not appear in the folder window).  I went through the upgrade motions again and again the folders were not included. That means it's not possible to use the "find the missing folders" option in LR5.3.  The folders do not exist according to LR but they are in the same import location they were when all was working well.  Two questions:  The RAW images are still in the folders (and the backup) both in the same positions.  Can I somehow import from the backup or from the original folder from either of their original locations?  Or, do I need to trash the original folders and re-import all of the missing pictures into the upgraded ircat -- and not back them up again?  And finally, can anyone explain why the error in the first place?  Nothing changed from LR5.3  working perfectly this afternoon to not working at all this evening? Mysterious. Thanks.

    One of the options i'm given when I try to launch LR4 is to upgrade the LR4 catalog so it's compatible with LR5.3.  Might that be the issue?  Before the error message and lockout I had imported the images with LR5.3 (which would be the LR4 -2 version of the previews, and LR4 -2 catalog after I made the LR4 to LR5.3 uggrade). But LR won't let me start from -2 catalog,  only from the -4 catalog which is the latest upgraded catalog version that doesn't include the folders full of the most recent imported images. Those folders should be there unless when I trashed the preferences and "upgraded again",  the original LR4 catalog, not the -2 LR5.3 version, was upgraded instead, which wouldn't include the six missing folders that were imported with LR5.3.  The LR4 -2 catalog is the key wouldn't you think?  Is there a way to launch that catalog?

  • How do I get FF to work with Mod Organizer (for mods used with ES: Skyrim)? I get an error message that it can't understand the address given.

    I am an avid Elder Scrolls fan and am using the new STEP 2.2.9 setup. They've gone to Mod Organizer (MO) and I cannot seem to get my FF working with the download mod portion of things. I click the "earth" icon, which takes me immediately to the Nexus Mod files page but when I choose a file to download after clicking "Download with Manager" I get this error message:
    The address wasn't understood
    Firefox doesn't know how to open this address, because one of the following protocols (nxm) isn't associated with any program or is not allowed in this context.
    You might need to install other software to open this address.
    The address given, when clicking "Download with Manager" begins with nxm://Skyrim/mods/ The address is such due to trying to download with the manager.
    Any help will be greatly appreciated! I've pulled my hair out for the last few hours trying to find a fix. I've disabled Adblock, all other popup blockers and enabled the main address in my exception rules. It's just not working. Ugh!
    Thank you in advance!

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

  • Bizarre error when trying to open .fla files in Windows Explorer

    "Windows cannot find '(path of the .fla file INCLUDING the filename)'. Make sure you typed the name correctly, and try again. To search for a file, click the Start button, and then click Search." error message given when I click on any .fla file in Windows Explorer to open it in Flash 8 Pro (as I've ALWAYS done before). Flash opens but no file is opened in it. If I click the fla file a second time THEN it opens in Flash (which is already opened from the first attempt.). This never happened before. I have 2 more laptops that work fine (as did THIS Win XP-SP3 pc until about a week ago), ALL with Flash 8 Pro (1 laptop w/XP-SP3 - just like the main PC with the new 'problem'), 1 laptop w/Vista Ultimate SP2. Even compared registry entries from XP laptop side-by-side - no differences at all. Everything is literally 'word-for-word'. Also compared FileMap.xml - no differences. Reinstalled Flash (no success) then out of frustration reinstalled XP with full disk format (and then everything else all over again - took 3 days) - still no success. Files open from the Flash 'File\Open' menu no problem - just not from Windows Explorer anymore. Nothing is different than before (when everything was ok - same installed programs, apps, updates, exact same 'set-up' as far as Windows drivers, system settings, prefs etc goes. VERY bizarre!

    As you know Flash 8 was a Macromedia product. They don't exist anymore - being absorbed by the all powerful, all seeing, all knowing Adobe Systems (sort of reminds me of the BORG on Star Trek - you know 'Resistance is futile').
    I tried literally everything - to no avail. Since I did try everything - up to and including a complete HDD full format and OS reinstall (which only accomplished deleting several days of my life that I'll never get back) I have come to the conclusion that it must be something inherent in the program that only affects installations performed after 12/31/12.
    My 2 laptops have no issues because the program has been on them for years and has never been reinstalled, but I would be willing to bet if I had to reinstall it on them I would start getting the same problem (since it's now past 12/31/12).
    On 12/31/12 Adobe did something in a way 'similar' to CS2 owners by rendering the activation of CS2 products inoperative. I found this out the hard way after I had just reinstalled everything while trying to deal with this issue. I had to spend hours on the phone to finally get the news from 'Dave' in Indonesia that Adobe decided to just arbitrarily render their CS2 customers paid-for software obsolete and inoperative! (Out of fairness they DID provide 'replacement' apps that don't require activation - thus avoiding MEGA lawsuits).
    Anyway - I'm just saying that software makers can build anything into their product, including date specific limitations without the consumer ever being aware of it.
    With the exception of this issue it otherwise works fine, and I guess I'll just have to deal with it from now on by dbl-clicking on Fla files TWICE instead of once - otherwise affectionately known as 'quadruple-clicking', (but if you count closing the error window then it's 'quintuple-clicking').
    I don't mind being proven wrong - so if somebody out there knows what is going on here (besides my theory of software developers time limitations resulting in complete world domination) feel free to reply. I'll get an email telling me someone replied and I'll come to this post and have a look.
    (suggestions to reinstall will be ignored - been there, done that)

Maybe you are looking for

  • VAT Related Report

    Hi All, Is it possible to generate a VAT related report in SAP B1? Our requirement is Total Turnover     Sales Reutrns     Discount (Other than discount reflected in Invoice-Credit Notes Only)     Branch Transfer Value Outward     Branch Transfer Val

  • Getting Footnote numbers and Footnote refernce as text

    Hi all, I have tried to convert the footnotes as text using convertToText() option in indesign Javascript. It was retainied the text but not auto footnote number. Alos, I want to retain the footnote reference also. Please guide me how to proceed this

  • Tax code assignment to condition types

    Hi, We have created one tax code for service tax assigned to one service condition type (JSER). But there are another condition types for Ecess & H cess for service tax. So tell me how to assign tha same tax code for another two Ecess & H ecess Condi

  • Plan driven open PR quantity

    Hi All, I've got the following scenario in PDP (SRM extended classic scenario): 1. PR created in backend with quantity 10 unit 2. Run program bbp_extreq_transfer in backend to transfer the PR 3. SC created in SRM with quantity 10 4. Change PR quantit

  • Only one iTunes song plays during DVD slideshow

    I have built a slideshow in iDVD6 that's about fifteen minutes long. I added four purchased iTunes tracks, grouped in a playlist, into the audio well in iDVD. The Project Info shows the four tracks. Only one track plays, however, on the burned DVDs.