Cyrus SASL + Compile

Kyle Chapman Kyle.Chapman at pb.com
Thu Sep 17 14:32:00 EDT 2009


in your CFLAGS, remove +DA2.0, that is parisc specific.

________________________________
From: Hiro Lalwani [mailto:meetmehiro at gmail.com]
Sent: Thursday, September 17, 2009 2:21 PM
To: Kyle Chapman; Alexey Melnikov
Cc: cyrus-sasl at lists.andrew.cmu.edu
Subject: Re: Cyrus SASL + Compile

Hi Kyle,Alexy

thanks a lot for your support and help.
I am successfully build the cyrusasl on PA-HP-UX system and I am able to successfully use the Cyrus-SASL with the sendmail.

one another thing I would like to know that , Now same thing I have to build on the IPF-system-11.23, can i use the same step which i have used for the PA-HP-UX system.

For PA-HP-UX, I have used the below run.sh, can i use same for IA?
============================================================================
export LIBS="-lgss -lkrb5 -lk5crypto -lcom_err -lcrypto"
export CC="cc -Ae +z +Z"
export CFLAGS="+DA2.0 -I/usr/local/include"
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -Wl,+b -Wl,/usr/local/lib"
./configure --prefix=/opt/iexpress/cyrussasl --enable-krb4 \
--enable-login --with-openssl=/opt/openssl \
--with-bdb-incdir=/usr/local/include --enable-static --enable-shared=yes \
--enable-digest --enable-gssapi=/usr/lib/
==========================================================================================

thanks again
Hiro Lalwani



On Fri, Sep 11, 2009 at 12:56 AM, Hiro Lalwani <meetmehiro at gmail.com<mailto:meetmehiro at gmail.com>> wrote:
Hi Kyle,

Problem get resolved. thanks again and again.

I have tried below steps.

1.downloaded to the libtool
/usr/local/bin/libtool --version
ltmain.sh (GNU libtool) 2.2.6
2.extract the whole source code and run ./configure.
3.Copied the libtool file into the cyrus SASL code.
4.run the gmake and check ./libs and chatr/ldd no any symbol missing.

Now I will try to configure with the sendmail and update you.
============================================================
chatr libgssapiv2.sl<http://libgssapiv2.sl/>
libgssapiv2.sl<http://libgssapiv2.sl/>:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  enabled   first  /usr/lib/sasl2
         shared library list:
             dynamic   /usr/lib/libgssapi_krb5.sl<http://libgssapi_krb5.sl/>
             dynamic   /usr/lib/libkrb5support.sl<http://libkrb5support.sl/>
             dynamic   /usr/lib/libgss.sl<http://libgss.sl/>
             dynamic   /usr/lib/libkrb5.sl<http://libkrb5.sl/>
             dynamic   /usr/lib/libk5crypto.sl<http://libk5crypto.sl/>
             dynamic   /usr/lib/libcom_err.sl<http://libcom_err.sl/>
             dynamic   /opt/openssl/lib/libcrypto.sl.0
             dynamic   /usr/lib/libpthread.1

             dynamic   /usr/lib/libc.2
==========================================

thanks again.
Hiro Lalwani



On Fri, Sep 11, 2009 at 12:04 AM, Kyle Chapman <Kyle.Chapman at pb.com<mailto:Kyle.Chapman at pb.com>> wrote:
try this as a test:
1. grab libtool 1.5.10 (or higher)
2. extract and run ./configure
3. in your sasl src dir, run gmake clean
4. copy the libtool file from the 1.5.10 dir into your sasl src root
5. gmake, go into plugins/.libs
6. check chatr/ldd on the libs then

i have seen libtool act odd on hp in the past so just trying something diff...

________________________________
From: Hiro Lalwani [mailto:meetmehiro at gmail.com<mailto:meetmehiro at gmail.com>]
Sent: Thursday, September 10, 2009 2:25 PM
To: Kyle Chapman
Cc: Alexey Melnikov; cyrus-sasl at lists.andrew.cmu.edu<mailto:cyrus-sasl at lists.andrew.cmu.edu>
Subject: Re: Cyrus SASL + Compile

Hi Kyle,
Thanks again !!!!!

Please find the libc Patch and ld version details. all are updated.

PHCO_34599                            1.0            libc cumulative patch

ld -V
92453-07 linker command s800.sgs ld PA64 B.11.59 REL 061208
ld: 92453-07 linker linker ld B.11.55 060724

Please find the below chatr out. which seems Completely different which you have pasted chatr o/p in the previous mail .


chatr libdigestmd5.sl<http://libdigestmd5.sl/>
libdigestmd5.sl<http://libdigestmd5.sl/>:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  disabled  first  Not Defined
             internal name:
             libdigestmd5.sl.2
         shared vtable support disabled
         explicit unloading enabled
         static branch prediction disabled
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation disabled
         text segment locking disabled
         data segment locking disabled
         third quadrant private data space disabled
         fourth quadrant private data space disabled
         third quadrant global data space disabled
         data page size: D (default)
         instruction page size: D (default)
         nulptr references disabled
         shared library private mapping disabled


Could you please tell me, what is  going wrong here ?


thanks in advance
Hiro Lalwani


On Thu, Sep 10, 2009 at 11:13 PM, Kyle Chapman <Kyle.Chapman at pb.com<mailto:Kyle.Chapman at pb.com>> wrote:
when i check:

chatr libgssapiv2.sl<http://libgssapiv2.sl/>
libgssapiv2.sl<http://libgssapiv2.sl/>:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  enabled   first  /usr/lib/sasl2
         internal name:
             libgssapiv2.sl.2
         shared library list:
             dynamic   /opt/mit/lib/libgssapi_krb5.2
             dynamic   /opt/mit/lib/libkrb5.3
             dynamic   /opt/mit/lib/libk5crypto.3
             dynamic   /opt/mit/lib/libcom_err.3
             dynamic   /opt/mit/lib/libkrb5support.0
             dynamic   /usr/lib/libc.2

chatr libotp.sl<http://libotp.sl/>
libotp.sl<http://libotp.sl/>:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  enabled   first  /usr/lib/sasl2
         internal name:
             libotp.sl.2
         shared library list:
             dynamic   /opt/openssl/lib/libcrypto.sl<http://libcrypto.sl/>
             dynamic   /usr/local/lib/libopie.sl.2.4
             dynamic   /usr/lib/libc.2

chatr libdigestmd5.sl<http://libdigestmd5.sl/>
libdigestmd5.sl<http://libdigestmd5.sl/>:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  enabled   first  /usr/lib/sasl2
         internal name:
             libdigestmd5.sl.2
         shared library list:
             dynamic   /opt/openssl/lib/libcrypto.sl<http://libcrypto.sl/>
             dynamic   /usr/lib/libc.2


i happen to be using openldap 2.4.17 on this system, and using gssapi and digest-md5 sasl mechs with ldapsearch work...
perhaps related, are you up to date with libc/ld patches?

here is my ld ver.
ld -V
92453-07 linker command s800.sgs ld PA64 B.11.63 REL 071126

my libc patch level:
PHCO_34599

________________________________
From: Hiro Lalwani [mailto:meetmehiro at gmail.com<mailto:meetmehiro at gmail.com>]
Sent: Thursday, September 10, 2009 1:25 PM
To: Kyle Chapman; Alexey Melnikov

Cc: cyrus-sasl at lists.andrew.cmu.edu<mailto:cyrus-sasl at lists.andrew.cmu.edu>
Subject: Re: Cyrus SASL + Compile

Hi Kyle / Alexey,

I have run the configure with parameters(CC,CFLAGS...)  which is suggested by Kyle on 11.23 PA-UNIX system and still I am seeing same Undefined symbol issue with PA system also.

Please find the below run.sh file , which I have used for the "configure"

==========================================================
export LIBS="-lgss -lkrb5 -lk5crypto -lcom_err -lcrypto -lpthread"
export CC="cc -Ae"
export CFLAGS="-I/usr/local/include"
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -Wl,+b -Wl,/usr/local/lib"
./configure --prefix=/opt/iexpress/cyrussasl --enable-krb4 \
--enable-login --with-openssl=/opt/openssl \
--with-bdb-incdir=/usr/local/include --enable-static --enable-shared=yes \
--enable-digest --enable-gssapi=/usr/lib/
============================================================

Please find the attached "configure_logs",  "gmake_logs" and "gmake_install_logs" . could you please look into this and let me know what is still missing?

I am requesting you, please help me to resolve this issue and I am continuously seeing this issue.



===================================================
ldd -r libgssapiv2.sl.2.23
        symbol not found: GSS_C_NT_HOSTBASED_SERVICE    (libgssapiv2.sl.2.23)
        symbol not found: GSS_C_NT_USER_NAME    (libgssapiv2.sl.2.23)
        symbol not found: __SB_masks    (libgssapiv2.sl.2.23)
        symbol not found: memset        (libgssapiv2.sl.2.23)
        symbol not found: _isdigit      (libgssapiv2.sl.2.23)
        symbol not found: getaddrinfo   (libgssapiv2.sl.2.23)
        symbol not found: memcpy        (libgssapiv2.sl.2.23)
        symbol not found: freeaddrinfo  (libgssapiv2.sl.2.23)
        symbol not found: strlen        (libgssapiv2.sl.2.23)
        symbol not found: strcpy        (libgssapiv2.sl.2.23)
        symbol not found: strchr        (libgssapiv2.sl.2.23)
        symbol not found: strncpy       (libgssapiv2.sl.2.23)
        symbol not found: strcat        (libgssapiv2.sl.2.23)
        symbol not found: strerror      (libgssapiv2.sl.2.23)
        symbol not found: uname (libgssapiv2.sl.2.23)
        symbol not found: snprintf      (libgssapiv2.sl.2.23)
        symbol not found: gss_display_status    (libgssapiv2.sl.2.23)
        symbol not found: gss_release_buffer    (libgssapiv2.sl.2.23)
        symbol not found: gss_wrap      (libgssapiv2.sl.2.23)
        symbol not found: gss_unwrap    (libgssapiv2.sl.2.23)
        symbol not found: gss_delete_sec_context        (libgssapiv2.sl.2.23)
        symbol not found: gss_release_name      (libgssapiv2.sl.2.23)
        symbol not found: gss_release_cred      (libgssapiv2.sl.2.23)
        symbol not found: sprintf       (libgssapiv2.sl.2.23)
        symbol not found: gss_import_name       (libgssapiv2.sl.2.23)
        symbol not found: gss_acquire_cred      (libgssapiv2.sl.2.23)
        symbol not found: gss_accept_sec_context        (libgssapiv2.sl.2.23)
        symbol not found: gss_display_name      (libgssapiv2.sl.2.23)
        symbol not found: gss_compare_name      (libgssapiv2.sl.2.23)
        symbol not found: strdup        (libgssapiv2.sl.2.23)
        symbol not found: gss_wrap_size_limit   (libgssapiv2.sl.2.23)
        symbol not found: gss_init_sec_context  (libgssapiv2.sl.2.23)
        symbol not found: gss_inquire_context   (libgssapiv2.sl.2.23)
        symbol not found: __sys_atexit  (/usr/ccs/lib/lddstub)
        symbol not found: __errno       (/usr/ccs/lib/lddstub)
=================================================================================


Thanks in advance
Hiro Lalwani




On Thu, Sep 10, 2009 at 1:05 AM, Kyle Chapman <Kyle.Chapman at pb.com<mailto:Kyle.Chapman at pb.com>> wrote:
it cant hurt to try that.

________________________________
From: Hiro Lalwani [mailto:meetmehiro at gmail.com<mailto:meetmehiro at gmail.com>]
Sent: Wednesday, September 09, 2009 2:45 PM
To: Kyle Chapman
Cc: Alexey Melnikov; cyrus-sasl at lists.andrew.cmu.edu<mailto:cyrus-sasl at lists.andrew.cmu.edu>

Subject: Re: Cyrus SASL + Compile

Hi Kyle,

This is the hpux ia64 system. and system is up with 11.23.

Can I go ahead and re-build again with below flags which you have mentioned in mail ?

========================
CC=cc -Ae
CFLAGS=-I/usr/local/include
CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib -Wl,+b -Wl,/usr/local/lib
=====================================



Regards
Hiro Lawani


On Wed, Sep 9, 2009 at 11:58 PM, Kyle Chapman <Kyle.Chapman at pb.com<mailto:Kyle.Chapman at pb.com>> wrote:
i would not use: LDFLAGS="-Wl,+nodefaultrpath"

is this hpux ai64 and parisc?  i have just built this on 11iv2/parisc and not had this missing symbol issue.  note that i set:
CC=cc -Ae
CFLAGS=-I/usr/local/include
CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib -Wl,+b -Wl,/usr/local/lib


________________________________
From: cyrus-sasl-bounces+kyle_chapman=g1.com<http://g1.com/>@lists.andrew.cmu.edu<http://lists.andrew.cmu.edu/> [mailto:cyrus-sasl-bounces+kyle_chapman<mailto:cyrus-sasl-bounces%2Bkyle_chapman>=g1.com<http://g1.com/>@lists.andrew.cmu.edu<http://lists.andrew.cmu.edu/>] On Behalf Of Hiro Lalwani
Sent: Wednesday, September 09, 2009 2:21 PM
To: Alexey Melnikov
Cc: cyrus-sasl at lists.andrew.cmu.edu<mailto:cyrus-sasl at lists.andrew.cmu.edu>
Subject: Re: Cyrus SASL + Compile

missed to add below also in previous mail for DIGEST-MD5.


ldd -r libdigestmd5.so.2.23
        symbol not found: malloc        (./libdigestmd5.so.2.23)
        symbol not found: _memcpy       (./libdigestmd5.so.2.23)
        symbol not found: uname (./libdigestmd5.so.2.23)
        symbol not found: _memset       (./libdigestmd5.so.2.23)
        symbol not found: freeaddrinfo  (./libdigestmd5.so.2.23)
        symbol not found: _isupper      (./libdigestmd5.so.2.23)
        symbol not found: strerror      (./libdigestmd5.so.2.23)
        symbol not found: snprintf      (./libdigestmd5.so.2.23)
        symbol not found: DES_key_sched (./libdigestmd5.so.2.23)
        symbol not found: sprintf       (./libdigestmd5.so.2.23)
        symbol not found: strncpy       (./libdigestmd5.so.2.23)
        symbol not found: getaddrinfo   (./libdigestmd5.so.2.23)
        symbol not found: strpbrk       (./libdigestmd5.so.2.23)
        symbol not found: __SB_masks    (./libdigestmd5.so.2.23)
        symbol not found: strcasecmp    (./libdigestmd5.so.2.23)
        symbol not found: DES_ede3_cbc_encrypt  (./libdigestmd5.so.2.23)
        symbol not found: free  (./libdigestmd5.so.2.23)
        symbol not found: _isdigit      (./libdigestmd5.so.2.23)
        symbol not found: strncasecmp   (./libdigestmd5.so.2.23)
        symbol not found: DES_cbc_encrypt       (./libdigestmd5.so.2.23)
        symbol not found: strcat        (./libdigestmd5.so.2.23)
        symbol not found: strchr        (./libdigestmd5.so.2.23)
        symbol not found: strcmp        (./libdigestmd5.so.2.23)
        symbol not found: strcpy        (./libdigestmd5.so.2.23)
        symbol not found: strdup        (./libdigestmd5.so.2.23)
        symbol not found: strlen        (./libdigestmd5.so.2.23)
        symbol not found: strtol        (./libdigestmd5.so.2.23)
        symbol not found: time  (./libdigestmd5.so.2.23)


 Please help me to resolve this issue... I am continuously seeing this issue.


Regards
Hiro Lalwani




On Wed, Sep 9, 2009 at 11:40 PM, Hiro Lalwani <meetmehiro at gmail.com<mailto:meetmehiro at gmail.com>> wrote:
Hi Alexey,

I have applied a changes what you have suggested and the issue gets resolved and build successfully done.

I have used the below parameter during configure,

===================================================================================
 export LIBS="-lgss -lkrb5 -lk5crypto -lcom_err -lcrypto -lpthread"
 export CC="aCC "
 export LDFLAGS="-Wl,+nodefaultrpath"
 export CFLAGS="+DD32"
./configure --prefix=/opt/iexpress/cyrussasl --enable-krb4 \
--enable-login --with-openssl=/opt/openssl \
--with-bdb-incdir=/usr/local/include --enable-static --enable-shared=yes \
--enable-digest --enable-gssapi=/usr/lib/
======================================================================================

But still I am seeing Undefined symbol in below shared libraries after completely successfully  build.

==================================================================================================
itanika7# ldd -r libgssapiv2.so
        symbol not found: gss_display_name      (./libgssapiv2.so)
        symbol not found: _memcpy       (./libgssapiv2.so)
        symbol not found: gss_inquire_context   (./libgssapiv2.so)
        symbol not found: uname (./libgssapiv2.so)
        symbol not found: _memset       (./libgssapiv2.so)
        symbol not found: freeaddrinfo  (./libgssapiv2.so)
        symbol not found: gss_release_name      (./libgssapiv2.so)
        symbol not found: strerror      (./libgssapiv2.so)
        symbol not found: GSS_C_NT_HOSTBASED_SERVICE    (./libgssapiv2.so)
        symbol not found: snprintf      (./libgssapiv2.so)
        symbol not found: sprintf       (./libgssapiv2.so)
        symbol not found: strncpy       (./libgssapiv2.so)
        symbol not found: getaddrinfo   (./libgssapiv2.so)
        symbol not found: gss_acquire_cred      (./libgssapiv2.so)
        symbol not found: __SB_masks    (./libgssapiv2.so)
        symbol not found: gss_init_sec_context  (./libgssapiv2.so)
        symbol not found: gss_import_name       (./libgssapiv2.so)
        symbol not found: gss_delete_sec_context        (./libgssapiv2.so)
        symbol not found: gss_release_buffer    (./libgssapiv2.so)
        symbol not found: gss_wrap      (./libgssapiv2.so)
        symbol not found: gss_compare_name      (./libgssapiv2.so)
        symbol not found: _isdigit      (./libgssapiv2.so)
        symbol not found: GSS_C_NT_USER_NAME    (./libgssapiv2.so)
        symbol not found: gss_unwrap    (./libgssapiv2.so)
        symbol not found: gss_wrap_size_limit   (./libgssapiv2.so)
        symbol not found: gss_display_status    (./libgssapiv2.so)
        symbol not found: gss_accept_sec_context        (./libgssapiv2.so)
        symbol not found: gss_release_cred      (./libgssapiv2.so)
        symbol not found: strcat        (./libgssapiv2.so)
        symbol not found: strchr        (./libgssapiv2.so)
        symbol not found: strcpy        (./libgssapiv2.so)
        symbol not found: strdup        (./libgssapiv2.so)
        symbol not found: strlen        (./libgssapiv2.so)
==============================================================================================================


Could you please tell me, what is wrong here ?

Regards
Hiro Lalwani






On Tue, Sep 8, 2009 at 10:45 PM, Alexey Melnikov <alexey.melnikov at isode.com<mailto:alexey.melnikov at isode.com>> wrote:
Hiro Lalwani wrote:

Hi All,

Hi,
I have downloaded the Cyrus-SASL-2.1.23.
 I am seeing below errors while initiating the "gmake".
 -------------------------------------------------------------------------------------------------------------------------
"common.c", line 500: error #2852: expression must be a pointer to a complete
         object type
             next_buf = last_invec.iov_base + last_invec.iov_len;
                        ^
"common.c", line 516: error #2852: expression must be a pointer to a complete
         object type
                 next_buf = last_invec.iov_base + last_invec.iov_len;

-------------------------------------------------------------------------------------------------------------

I wonder if "last_invec.iov_base" is defined as "void *". Try changing each of the two "last_invec.iov_base" to "(char *)last_invec.iov_base".

Could any of please tell me, How can I resolve this?

--
thanks & regards
Hiro Lalwani





--
thanks & regards
Hiro Lalwani



--
thanks & regards
Hiro Lalwani



--
thanks & regards
Hiro Lalwani



--
thanks & regards
Hiro Lalwani



--
thanks & regards
Hiro Lalwani



--
thanks & regards
Hiro Lalwani



--
thanks & regards
Hiro Lalwani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/attachments/20090917/0a5dbe7e/attachment-0001.html 


More information about the Cyrus-sasl mailing list