building krb5-1.4 on hpux and solaris with native compilers

Arlene Berry aberry0364 at hotmail.com
Wed Feb 16 14:58:05 EST 2005



>From: "Arlene Berry" <aberry0364 at hotmail.com>
>To: raeburn at MIT.EDU
>CC: krbdev at MIT.EDU
>Subject: Re: building krb5-1.4 on hpux and solaris with native compilers
>Date: Tue, 15 Feb 2005 19:04:54 +0000
>
>
>
>>From: Ken Raeburn <raeburn at MIT.EDU>
>>To: "Arlene Berry" <aberry0364 at hotmail.com>
>>CC: krbdev at mit.edu
>>Subject: Re: building krb5-1.4 on hpux and solaris with native compilers
>>Date: Mon, 14 Feb 2005 22:41:43 -0500
>>
>>On Feb 14, 2005, at 19:58, Arlene Berry wrote:
>I can do that.  I attempted a fix using the HPUX 11 +fini and +init options 
>last night that appears to have worked but unfortunately I had a subsequent 
>build failure which I haven't had a chance to look into yet.  At first 
>glance it doesn't seem related.
>

It was unrelated.  It's a cpp bug that I have a workaround for.  I'm looking 
for a patch for it and if I find one I will let you know.  Here's the change 
I made to the hpux section of src/config/shlib.conf:

        if test "$krb5_cv_prog_gcc" = yes; then
                SHLIB_EXPFLAGS='-Wl,+s -Wl,+b,$(SHLIB_RDIRS) $(SHLIB_DIRS) 
$(SHLIB_EXPLIBS)'
                LDCOMBINE='gcc -fPIC -shared 
-Wl,+h,lib$(LIBBASE)$(SHLIBSEXT)'
        else
                SHLIB_EXPFLAGS='+s +b $(SHLIB_RDIRS) $(SHLIB_DIRS) 
$(SHLIB_EXPLIBS)'
                LDCOMBINE='ld -b +h lib$(LIBBASE)$(SHLIBSEXT) $$initfini'
                #
                INIT_FINI_PREP='if test -z "$(LIBINITFUNC)"; then initfini=; 
else initfini="+init $(LIBINITFUNC)__auxinit"; fi ; if test -z 
"$(LIBFINIFUNC)"; then :; else initfini="$$initfini +fini $(LIBFINIFUNC)" ; 
fi'
                use_linker_init_option=yes
                use_linker_fini_option=yes
        fi

Note the addition of $$initfini to the second LDCOMBINE and the additional 
lines which set values similarly to the solaris section.  This was almost 
enough to make the build work.  I found that I had to set 
LDFLAGS="-lpthread" or else I got unresolved pthread references when the 
build reached src/lib/kadm5/unit-test.  After that the build ran to 
completion and a basic kinit test worked.

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



More information about the krbdev mailing list