kerberos build on solaris 10

Douglas E. Engert deengert at anl.gov
Mon Sep 17 14:57:15 EDT 2012



On 9/17/2012 12:46 PM, Nitin Thakur wrote:
>
> Hi
> can somebody help me with error: -
>
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/../../../../sparc-sun-solaris2.10/bin/ld: read-only segment has dynamic relocations.
> collect2: ld returned 1 exit status
> make[1]: *** [pkinit.so] Error 1
> make[1]: Leaving directory `/var/tmp/samba-download/krb5-1.10.3/src/plugins/preauth/pkinit'
> make: *** [all-recurse] Error 1
>
> This is how i configured it
>   # echo $LD_LIBRARY_PATH
> /usr/local/lib
>   # echo $PATH
> /opt/SUNWspro/SUNWspro12/sparc/SUNWspro/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/local/bin
> # LIBS="-lintl -lrt" ./configure --prefix=/opt/local/samba --enable-dns-for-realm

On Solaris 10, I have always used gcc, /usr/sfw/bin/gcc
and added --enable-shared. Something like:

CC=gcc
CFLAGS=-O -g
OPENSSL_LIBS=-L/opt/smartcard/lib -R/opt/smartcard/lib
LDFLAGS=-g -L/opt/smartcard/lib -R/opt/smartcard/lib -lrt -lintl
CPPFLAGS= -I/opt/smartcard/include
export CC CFLAGS CPPFLAGS LDFLAGS
export OPENSSL_LIBS

LD_LIBRARY_PATH=
export LD_LIBRARY_PATH
../src/configure --enable-shared --prefix=/krb5m

Where PATH has /usr/sfw/bin:/usr/afsws/local/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/ucb
and some local among others. The /usr/afsws/local/bin has a number of open
source packages that are not on Solaris or more generic then any in /usr/bin.

>
> thanks
>
> Nitin
>
>   		 	   		
> _______________________________________________
> krbdev mailing list             krbdev at mit.edu
> https://mailman.mit.edu/mailman/listinfo/krbdev
>
>

-- 

  Douglas E. Engert  <DEEngert at anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444




More information about the krbdev mailing list