Results 1 to 5 of 5

Thread: Make the full version of Ice to run in S3C2410.

  1. #1
    zhangzq71's Avatar
    zhangzq71 is offline Registered User
    Name: ZhangZQ
    Organization: WanYi
    Project: Test
    Join Date
    Mar 2005
    Location
    GuangZhou, GuangDong
    Posts
    43

    Make the full version of Ice to run in S3C2410.

    There are too many limitation in using the IceE, so I decided to port the full version of Ice to my board, now everything are OK except the Frezze service, it is the problem of the porting of BerkeleyDB.

    here is the code from BerkeleyDB documentation,

    DbEnv myEnv(0);
    try {
    myEnv.open(envHome.c_str(), env_flags, 0);
    } catch(DbException &e) {
    std::cerr << "Error opening database environment: " << envHome << std::endl;
    std::cerr << e.what() << std::endl;
    exit( -1 );
    } catch(std::exception &e) {
    std::cerr << "Error opening database environment: " << envHome << std::endl;
    std::cerr << e.what() << std::endl;
    exit( -1 );
    }

    but got the following error, do you know what is the problem?

    Error opening database environment: ./testEnv
    My DbEnv:pen: Function not implemented
    Zhang Zhi Qiang
    Macrohard Inc.
    Testing IceE on my embedded system based on S3C2410 CPU

  2. #2
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    It looks like BerkeleyDB is using a system call which is not implemented (or doesn't support some options) on your system. You could try to track down this system call with the debugger... In any case, note that we don't provide support for BerkeleyDB, I would recommend to check with Sleepycat for information regarding this issue.

    Cheers,

    Benoit.

  3. #3
    zhangzq71's Avatar
    zhangzq71 is offline Registered User
    Name: ZhangZQ
    Organization: WanYi
    Project: Test
    Join Date
    Mar 2005
    Location
    GuangZhou, GuangDong
    Posts
    43
    The error occurs in env_open.c

    /*
    * Create/join the environment. We pass in the flags that will be of
    * interest to an environment joining later; if we're not the ones to
    * do the create, we pull out whatever has been stored.
    */
    init_flags = 0;
    if (LF_ISSET(DB_INIT_CDB))
    FLD_SET(init_flags, DB_INITENV_CDB);
    if (LF_ISSET(DB_INIT_LOCK))
    FLD_SET(init_flags, DB_INITENV_LOCK);
    if (LF_ISSET(DB_INIT_LOG))
    FLD_SET(init_flags, DB_INITENV_LOG);
    if (LF_ISSET(DB_INIT_MPOOL))
    FLD_SET(init_flags, DB_INITENV_MPOOL);
    if (LF_ISSET(DB_INIT_REP))
    FLD_SET(init_flags, DB_INITENV_REP);
    if (LF_ISSET(DB_INIT_TXN))
    FLD_SET(init_flags, DB_INITENV_TXN);
    if (F_ISSET(dbenv, DB_ENV_CDB_ALLDB))
    FLD_SET(init_flags, DB_INITENV_CDB_ALLDB);
    if ((ret = __db_e_attach(dbenv, &init_flags)) != 0)
    goto err;

    __db_e_attach return error.
    Zhang Zhi Qiang
    Macrohard Inc.
    Testing IceE on my embedded system based on S3C2410 CPU

  4. #4
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    I'd recommend to post this question to the comp.databases.berkeley-db newsgroup.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  5. #5
    zhangzq71's Avatar
    zhangzq71 is offline Registered User
    Name: ZhangZQ
    Organization: WanYi
    Project: Test
    Join Date
    Mar 2005
    Location
    GuangZhou, GuangDong
    Posts
    43
    I got help from the google group to fix this problem, now all of the Ice Full Version can be run in my board NOW!!!
    Zhang Zhi Qiang
    Macrohard Inc.
    Testing IceE on my embedded system based on S3C2410 CPU

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I make a server run long time?
    By level in forum Help Center
    Replies: 4
    Last Post: 02-14-2006, 02:02 PM
  2. Replies: 1
    Last Post: 01-06-2006, 06:25 AM
  3. Replies: 1
    Last Post: 04-05-2005, 03:18 AM
  4. Why IceJ is full realization with Java?
    By damingyipai in forum Comments
    Replies: 2
    Last Post: 03-07-2004, 11:34 PM
  5. Can't run make
    By svranyes in forum Bug Reports
    Replies: 4
    Last Post: 07-16-2003, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •