[28017] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Compiling 1.5.3 or 1.6.1 on Solaris 5.9

daemon@ATHENA.MIT.EDU (Booker C. Bense)
Thu Jul 5 19:37:52 2007

Mime-Version: 1.0 (Apple Message framework v752.2)
Message-Id: <E740530E-78E0-4EF7-887D-EE54CC326A41@stanford.edu>
Resent-To: kerberos@mit.edu
From: "Booker C. Bense" <bbense@stanford.edu>
Resent-From: "Booker C. Bense" <bbense@stanford.edu>
Date: Thu, 5 Jul 2007 16:23:15 -0700
To: undisclosed-recipients:;undisclosed-recipients:;@MIT.EDU
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu


> On Jul 5, 2007, at 3:57 PM, Tom Yu wrote:

>> The configure script should detect GCC and change the shared library
>> build command accordingly, and in my experience it works.  The
>> "-shared -h libkrb5support.so.0" looks like the configure script
>> thought it was compiling with Sun's C compiler.
>


I did a clean slate and configured 1.6.1 with

./configure --prefix=/afs/slac.stanford.edu/package/krb5/1.6.1/sun4x_59

and got the same error. I then poked around in config/shlib.conf and
as near as I can tell it will never do the right thing with solaris  
and gcc.


*-*-solaris*)
         if test "$krb5_cv_prog_gcc" = yes; then
                 PICFLAGS=-fPIC
                 LDCOMBINE='$(CC) $(CFLAGS) -shared -h $(LIBPREFIX)$ 
(LIBBASE)$(SHLIBSEXT)'
         else


Changing the -h to -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT), seems  
to have fixed the problem.

_ Booker C. Bense

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post