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 04-06-2006, 09:58 AM
Senior Member
 
Posts: 67
Default cvs-zimbra opensuse 10/x86_64

I keep having issues at the point where postfix wants to use the mysql headers. I've cvs'd the code, made some makefile changes, but I can't seem to get the right combo with mysql. There is a postfix 2.2.3 and 2.2.5 in the default postfix folder. I renamed 2.2.5 to 2.2.9 since that is the latest and then made some changes in the 2.2.9 makefile for mysql and ldap includes, etc. It gets to the point where it wants mysql_version.h and the mysql version I have has a mysql_version.h.in. Do you have a tree of code for opensuse 10 i386 that could be compiled on an x86_64 box I have? There is a mysql_client_version makefile var that I'm not sure where it might get the right info from the mysql-4.1.18 tarball.
Reply With Quote
  #2 (permalink)  
Old 04-06-2006, 10:41 AM
Senior Member
 
Posts: 53
Default

I am having the same type of problem with CentOS 4.3 (RHEL) on x86_64 though I'm not sure what's happening, I get to a point where it loops in an error with postfix-2.2.9 flashing something about unrecoverable error but it's too fast to read and if I ctrl-c out the system locks up.

Is it silly of me to think that someone with a completed x86_64 build could/would package up the binaries and post them somewhere? Or at least create updated build instructions for poor shmoos like me?

Last edited by Dux T; 04-06-2006 at 10:48 AM..
Reply With Quote
  #3 (permalink)  
Old 04-06-2006, 10:58 AM
Senior Member
 
Posts: 67
Default

Quote:
Originally Posted by Dux T
I am having the same type of problem with CentOS 4.3 (RHEL) on x86_64 though I'm not sure what's happening, I get to a point where it loops in an error with postfix-2.2.9 flashing something about unrecoverable error but it's too fast to read and if I ctrl-c out the system locks up.

Is it silly of me to think that someone with a completed x86_64 build could/would package up the binaries and post them somewhere?

I'm in the process of trying to do this. I have to keep going back and make changes to some of the default Makefiles to make sure they of the right version numbers for the software I wget'd for the full zimbra build process. I first get problems with clamav then openldap.

The procedure I'm following is here:

http://comptekki.googlepages.com/zimbra.html

These instructions come from the docs dir from the cvs version for zimbra.

When I do

make allclean all

it currently is choaking on finding mysql_version.h.

If I were to get this packaged into a binary, it would work on opensuse 10, but I'm not sure about work on other platforms. The thing that might work is to get the cvs tree all working so it compiles with all the compents in the right place, then if you had the source tar ball you could just compile it then "install" it and then have a working zimbra on your platorm.
Reply With Quote
  #4 (permalink)  
Old 04-06-2006, 12:29 PM
Zimbra Employee
 
Posts: 4,792
Default

Do you have the MySQL source or are you using a precompiled version?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 04-06-2006, 12:53 PM
Senior Member
 
Posts: 67
Default

Quote:
Originally Posted by KevinH
Do you have the MySQL source or are you using a precompiled version?
I downloaded the source tarball from mysql.com.
Reply With Quote
  #6 (permalink)  
Old 04-06-2006, 01:07 PM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by comptekki
I downloaded the source tarball from mysql.com.
Did you compile it?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #7 (permalink)  
Old 04-06-2006, 02:37 PM
Senior Member
 
Posts: 67
Default

Quote:
Originally Posted by KevinH
Did you compile it?
The "make allclean all" does this and places a copy in /opt/zimbra but it doesn't have the mysql_version.h in there. I have gotten past that now by compiling it alone and pointing the Postfix makefile to that src area. Now I'm having problems with -lsasl2 being found. I do rpm -qa sasl and get

rpm -qa|grep -i sasl
cyrus-sasl-digestmd5-2.1.21-3
cyrus-sasl-2.1.21-3
cyrus-sasl-saslauthd-2.1.21-3
cyrus-sasl-32bit-2.1.21-3


I also look in /usr/lib and /usr/lib64 and get:

# find /usr/lib -name "*sasl*" -print
/usr/lib/libsasl2.so.2.0.21
/usr/lib/sasl2
/usr/lib/sasl2/libsasldb.so
/usr/lib/sasl2/libsasldb.so.2
/usr/lib/sasl2/libsasldb.so.2.0.21
/usr/lib/libsasl2.so.2

# find /usr/lib64 -name "*sasl*" -print
/usr/lib64/libsasl2.so.2.0.21
/usr/lib64/sasl2
/usr/lib64/sasl2/libsasldb.so
/usr/lib64/sasl2/libsasldb.so.2
/usr/lib64/sasl2/libsasldb.so.2.0.21
/usr/lib64/libsasl2.so.2

I can't figure out why -lsasl2 doesn't work.

Here is the error:

....
-L/usr/lib64/sasl2 -L/usr/lib64 -lsasl2 -lpthread -lssl -lcrypto -ldb -lnsl -lresolv
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lsasl2
collect2: ld returned 1 exit status
Reply With Quote
  #8 (permalink)  
Old 04-16-2006, 03:52 PM
Senior Member
 
Posts: 51
Default

Make sure the following lib directories are in your /etc/ld.so.conf

/opt/zimbra/mysql/lib
/opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/lib/
/opt/zimbra/openldap-2.3.21/lib

If you add something make sure to run ldconfig afterwards.

Ben
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.