Results 1 to 10 of 10

Thread: 508 build cyrus-sasl error

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Rep Power
    7

    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

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

    Default

    clearly it's not finding curl. make sure you have compiled curl successfully and it's the version specified in sasl makefile.

  3. #3
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    7

    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

  4. #4
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    7

    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'

  5. #5
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    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
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  6. #6
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    7

    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

  7. #7
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    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
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

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

    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.

  9. #9
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    7

    Default

    I see. Let me try again. thanks!

  10. #10
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    7

    Default

    after put the patch file in place, this build works now. thx

Similar Threads

  1. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 05:42 PM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  3. [SOLVED] Debian Etch 32 / 64: MTA not working
    By xflip in forum Installation
    Replies: 2
    Last Post: 01-18-2008, 04:58 AM
  4. 3.0 to 4.5.3 Upgrade failed (mysql error)
    By dealt in forum Installation
    Replies: 35
    Last Post: 03-19-2007, 11:30 PM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 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
  •