Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: make sleepycat error

  1. #1
    wildhuman is offline Senior Member
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    8

    Default make sleepycat error

    Hi, guys,

    when I make sleepycat, there are some mistakes, and I attched the snapshot.
    I also found when I re-make sleepycat, the error information may be changed, for example, in thesnapshot, it is that mut_pthread.c is error, sometimes is other c file error.

    I followed the build_cvs_howto.txt to make file:
    firstly add /opt/zimbra/mysql/lib to /etc/ld.so.conf

    second #ldconfig
    third # export LD_LIBRARY_PATH=/opt/zimbra/mysql/lib:{LD_LIBRARY_PATH}
    then #make allclean all.

    BTW, where I can download the source code version 3.1?
    Attached Images Attached Images
    • File Type: jpg 2.JPG (139.7 KB, 125 views)
    Last edited by wildhuman; 08-16-2006 at 10:50 PM.

  2. #2
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    source code is now hosted on sourceforge svn i believe, search the forums for svn.

    don't set LD_LIBRARY_PATH, ldconfig should do the job.

    your screenshot doesn't show enough info, but from the errors given i suspect it's missing an include file.

  3. #3
    wildhuman is offline Senior Member
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    8

    Default

    Thanks. I will try it.

    BTW, do I need configure the java path? I just only install java and didn't configure the java path.

  4. #4
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    read build_cvs_howto.txt, i think you just have to set JAVA_HOME or maybe not, the makefile might set it for you.

  5. #5
    wildhuman is offline Senior Member
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    8

    Question

    Quote Originally Posted by dijichi2
    read build_cvs_howto.txt, i think you just have to set JAVA_HOME or maybe not, the makefile might set it for you.
    Yes, I followed the build_cvs_howto.txt to install java and set JAVA_HOME.

    Now, I attached my make.log.zip (which only includes make mysql and sleepycat) because file size is larger than 40K, I packaged it using winzip.
    make.log.allclean.txt is allclean log.


    please help me what cuases errors.

    Thanks
    Attached Files Attached Files

  6. #6
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    i'm not sure you need to keep doing allclean - i never did when building and got through it ok. it sure will make the whole process veeeeeeery long and painful..

    your problem is clearly occurring here:

    Code:
    config.status: creating Makefile
    config.status: creating db_cxx.h
    config.status: creating db_int.h
    config.status: creating include.tcl
    config.status: creating db.h
    config.status: creating db_config.h
    make[2]: Entering directory `/tmp/zimbra/ThirdParty/sleepycat/db-4.2.52.4/build_unix'
    /bin/sh ./libtool --mode=compile cc -fPIC ../dist/../mutex/mut_pthread.c
     cc -fPIC ../dist/../mutex/mut_pthread.c -o mut_pthread.o
    ../dist/../mutex/mut_pthread.c:8:23: error: db_config.h: No such file or directory
    ../dist/../mutex/mut_pthread.c:20:20: error: db_int.h: No such file or directory
    what os are you running? does it have nptl?

  7. #7
    wildhuman is offline Senior Member
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    8

    Question

    I use Fedora 4, I don't if it has nptl. how do I know it has nptl?

    When I installed the fedora 4, I chosed the total installing , I think nptl should be installed.
    Last edited by wildhuman; 08-17-2006 at 09:35 AM.

  8. #8
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    erm, i think fedora4 should have it, this is the way zimbra checks:
    /usr/bin/getconf GNU_LIBPTHREAD_VERSION

    personally i always went into each third party directory and compiled each one manually, then went back and ran the main make afterwards. have you downloaded the bdb patches as well? what happens if you run the commands in the bdb by hand?

    any particular reason you're rolling your own? the binary releases are pretty regular you know

  9. #9
    wildhuman is offline Senior Member
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    8

    Default

    Quote Originally Posted by dijichi2
    erm, i think fedora4 should have it, this is the way zimbra checks:
    /usr/bin/getconf GNU_LIBPTHREAD_VERSION

    personally i always went into each third party directory and compiled each one manually, then went back and ran the main make afterwards. have you downloaded the bdb patches as well? what happens if you run the commands in the bdb by hand?

    any particular reason you're rolling your own? the binary releases are pretty regular you know
    I am not sure, I just followed the build_cvs_howto and Building Zimbra on Fedora Core 5.

    what is bdb? When I make thirdparty software one by one, also there are some errors about mtu_thread in sleepycat. But one time I don't know the reason there is no error, when I try again, error is coming.

    I have installed binary releases version and it can work well.
    For I will develop myself application, I need install this source version. but it is difficult.

    what should I do next?

  10. #10
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    bdb = berkeleydb = sleepycat

    cd into the sleepycat directory and run the make from in there, that will compile just bdb on its own. have you downloaded the patches needed? you can also looking at the makefile and following the steps inside by hand. often you'll find one of the steps fails, then the following steps might also fail with causes problems similar to what you're seeing. doing the process step by step by hand is the only way to resolve this.

    for sure compiling zimbra is complex and difficult!

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 23
    Last Post: 01-24-2013, 03:44 PM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM
  4. Replies: 14
    Last Post: 12-22-2005, 04:59 PM
  5. Building native libraries on MacOS X
    By ajmas in forum Developers
    Replies: 3
    Last Post: 10-14-2005, 11:00 PM

Posting Permissions

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