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 07-29-2008, 09:55 PM
Junior Member
 
Posts: 6
Unhappy 508 build cyrus-sasl error

hi, all
When building the third parth package cyrus-sasl, an error occoured, a frament of the log is as follow:

zmpost.o: In function `zmpost':
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:73: undefined reference to `curl_slist_append'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:74: undefined reference to `curl_easy_setopt'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:86: undefined reference to `curl_easy_perform'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:88: undefined reference to `curl_slist_free_all'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:106: undefined reference to `curl_easy_cleanup'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:61: undefined reference to `curl_easy_setopt'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:62: undefined reference to `curl_easy_setopt'
/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd/zmpost.c:112: undefined reference to `curl_easy_cleanup'
collect2: ld returned 1 exit status
make[5]: *** [saslauthd] Error 1
make[5]: Leaving directory `/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z/saslauthd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl/build/cyrus-sasl-2.1.22.3z'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/public/p4/zcs/FRANKLIN-507/ThirdParty/cyrus-sasl'
make[1]: Entering directory `/home/public/p4/zcs/FRANKLIN-507/ThirdParty/openldap'

I can't figure out what's going wrong from this log, it seems like the ld command failed, any idea?

Thanks in advanced
Reply With Quote
  #2 (permalink)  
Old 07-30-2008, 02:45 PM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

clearly it's not finding curl. make sure you have compiled curl successfully and it's the version specified in sasl makefile.
Reply With Quote
  #3 (permalink)  
Old 11-20-2008, 05:23 PM
Intermediate Member
 
Posts: 21
Unhappy

I have the same error message, with
*** Building in curl SUCCEEDED.
*** Building in cyrus-sasl FAILED.

So I checked /opt/zimbra/curl-7.18.1, there is only share directory there. The version is correct between curl and cyrus-sasl. I manually put lib, bin and include into /opt/zimbra/curl-7.18.1, but still it didn't help.

Any ideas? Maybe the Makefile of curl or cyrus-sasl is not good? Thanks
Reply With Quote
  #4 (permalink)  
Old 11-20-2008, 05:35 PM
Intermediate Member
 
Posts: 21
Default

I think I found the problem, but not sure how to fix it, in curl's build, there are errors as the following. any ideas?

gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.c -fPIC -DPIC -o .libs/file.o
mv -f .deps/timeval.Tpo .deps/timeval.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c -o base64.lo base64.c
In file included from urldata.h:119,
from file.c:74:
/usr/include/gssapi/gssapi_generic.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
make[3]: *** [file.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.c -fPIC -DPIC -o .libs/base64.o
In file included from urldata.h:119,
from base64.c:43:
/usr/include/gssapi/gssapi_generic.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
make[3]: *** [base64.lo] Error 1
make[3]: Leaving directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1'
make[1]: Entering directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1'
Making install in lib
make[2]: Entering directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1/lib'
make install-am
make[3]: Entering directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1/lib'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c -o file.lo file.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c -o base64.lo base64.c
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.c -fPIC -DPIC -o .libs/base64.o
In file included from urldata.h:119,
from base64.c:43:
/usr/include/gssapi/gssapi_generic.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
make[3]: *** [base64.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/opt/zimbra/heimdal-1.2/include -I/opt/zimbra/openssl-0.9.8g/include/openssl -I/opt/zimbra/openssl-0.9.8g/include -I/usr/lib64/include -I/usr/lib64/include -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.c -fPIC -DPIC -o .libs/file.o
In file included from urldata.h:119,
from file.c:74:
/usr/include/gssapi/gssapi_generic.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gssapi/gssapi_generic.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
make[3]: *** [file.lo] Error 1
make[3]: Leaving directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1/lib'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1/lib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1'
make[1]: Entering directory `/root/workspace/zimbra/FRANKLIN-5011/ThirdParty/curl/curl-7.18.1'
Reply With Quote
  #5 (permalink)  
Old 11-20-2008, 09:07 PM
Zimbra Employee
 
Posts: 580
Default

Are you sure the patch was applied and configure updated properly? See curl/patches/heimdal.patch

Curl's kerberos detection is very broken, so if it picks up the MIT headers in the system path, it gets very confused. Unless you need them for building something against MIT kerberos, I'd remove the krb-dev package.

I'm working on a permanent fix for the curl folks to apply to their configure script.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #6 (permalink)  
Old 11-20-2008, 10:42 PM
Intermediate Member
 
Posts: 21
Default

Thanks for the reply, however, the source I have doesn't have patches directory under curl and doesn't have the the patch file heimdal.patch. The source was obtained through P4. Is it possible that you put the patch somewhere in the forum? Thanks again
Reply With Quote
  #7 (permalink)  
Old 11-20-2008, 11:14 PM
Zimbra Employee
 
Posts: 580
Default

Thanks, that was missed in the branch spec. I just synched it over, so if you refresh your source you should find it.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #8 (permalink)  
Old 11-21-2008, 05:36 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

apologies, i've been copying this over by hand while building for ages and didn't raise a bug to alert this to zimbra.
Reply With Quote
  #9 (permalink)  
Old 11-21-2008, 08:00 AM
Intermediate Member
 
Posts: 21
Default

I see. Let me try again. thanks!
Reply With Quote
  #10 (permalink)  
Old 11-21-2008, 02:10 PM
Intermediate Member
 
Posts: 21
Default

after put the patch file in place, this build works now. thx
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.