linking libgssapi_krb5.a into a .so file
Douglas E. Engert
deengert at anl.gov
Wed Aug 6 13:57:43 EDT 2003
Build Kerberos with shared libs, (--enable-shared ) then you would endup using the
libgssapi_krb5.so.2.2 rather then the static version.
Frank Balluffi wrote:
>
> When I link GSS-API into a .so file on Solaris with gcc I get the following errors:
>
> Text relocation remains referenced
> against symbol offset in file
> <unknown> 0xac4 /home/ballfra/external/krb5-1.2.8/src/lib/libgssapi_krb5.a(k5seal.o)
> <unknown> 0xac8 /home/ballfra/external/krb5-1.2.8/src/lib/libgssapi_krb5.a(k5seal.o)
>
> I think that I can fix these errors by setting CFLAGS=-fPIC in each Makefile.
>
> 1. Can someone confirm that I need to pass -fPIC to gcc.
>
> 2. If I need to pass -fPIC to gcc, what is the best way to ask the configure script to use -fPIC? I read configure --help and unsuccessfully tried the following:
>
> CFLAGS=-fPIC
> export CFLAGS
> ./configure --with-cc=gcc
>
> and
>
> ./configure --with-cc=gcc CFLAGS=-fPIC
>
> Thanks.
>
> Frank
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
>
> _______________________________________________
> 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