In regard to: Compiling 1.5.3 or 1.6.1 on Solaris 5.9, Booker C. Bense said...:

> I've been pulling my hair out over this for a couple hours and I
> can't see forest for trees at this
> point. Both version fail to compile libkrb5support.so.0.1 with this
> error
>
> + gcc -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -
> Wconversion -Wshadow -pedantic
> -shared -h libkrb5support.so.0 -o libkrb5support.so.0.1 threads.so
> init-addrinfo.so plugins.so
> errors.so gmt_mktime.so fake-addrinfo.so -R/afs/slac.stanford.edu/
> package/krb5/1.5.3/sun4x_59/lib
> -lresolv -lsocket -lnsl -ldl
> ld: fatal: file libkrb5support.so.0: open failed: No such file or
> directory
> collect2: ld returned 1 exit status
>
> I am using gcc 3.2.3 and the only odd thing I can see is the
>
> -shared -h libkrb5support.so.0
>
> option. Documentation on what -h actually does seems sparse... It
> certainly doesn't do
> what is listed in the man page.

-h should be getting passed to ld, and it should be setting the SONAME.

adding -v to gcc's line would probably show how it's invoking ld to
create the shared object, but what happens if you modify the build
line so that instead of

        -h libkrb5support.so.0

it tries

        -Wl,-h,libkrb5support.so.0

or uses gcc's -Xlinker equivalent.

Tim
-- 
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to