Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-2006, 09:43 PM
Senior Member
 
Posts: 64
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
File Type: jpg 2.JPG (139.7 KB, 124 views)

Last edited by wildhuman; 08-16-2006 at 10:50 PM..
Reply With Quote
  #2 (permalink)  
Old 08-17-2006, 03:51 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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.
Reply With Quote
  #3 (permalink)  
Old 08-17-2006, 05:55 AM
Senior Member
 
Posts: 64
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.
Reply With Quote
  #4 (permalink)  
Old 08-17-2006, 06:16 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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.
Reply With Quote
  #5 (permalink)  
Old 08-17-2006, 07:15 AM
Senior Member
 
Posts: 64
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
File Type: zip make.log.zip (6.3 KB, 107 views)
File Type: txt make.log.allclean.txt (3.4 KB, 167 views)
Reply With Quote
  #6 (permalink)  
Old 08-17-2006, 07:40 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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?
Reply With Quote
  #7 (permalink)  
Old 08-17-2006, 08:34 AM
Senior Member
 
Posts: 64
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..
Reply With Quote
  #8 (permalink)  
Old 08-17-2006, 10:07 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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
Reply With Quote
  #9 (permalink)  
Old 08-17-2006, 12:59 PM
Senior Member
 
Posts: 64
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?
Reply With Quote
  #10 (permalink)  
Old 08-18-2006, 03:24 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.