2006-08-31 23:55:59

by Mike Frysinger

[permalink] [raw]
Subject: linking librpcsecgss against libgssapi

is there a reason librpcsecgss is not linked against libgssapi ? the simple
fix here would be to add a line like:
LDADD = $(GSSAPI_LIBS)
to the librcpsecgss/src/Makefile.am file

problem being that librpcsecgss uses symbols from libgssapi but never actually
links against it so doing something simple like:
echo 'int main(){}' > test.c
gcc -lrpcsecgss test.c
fails miserably unless you add -lgssapi
-mike


Attachments:
(No filename) (408.00 B)
(No filename) (827.00 B)
(No filename) (373.00 B)
(No filename) (140.00 B)
Download all attachments

2006-09-05 13:44:28

by Kevin Coffman

[permalink] [raw]
Subject: Re: linking librpcsecgss against libgssapi

On 8/31/06, Mike Frysinger <[email protected]> wrote:
> is there a reason librpcsecgss is not linked against libgssapi ? the simple
> fix here would be to add a line like:
> LDADD = $(GSSAPI_LIBS)
> to the librcpsecgss/src/Makefile.am file
>
> problem being that librpcsecgss uses symbols from libgssapi but never actually
> links against it so doing something simple like:
> echo 'int main(){}' > test.c
> gcc -lrpcsecgss test.c
> fails miserably unless you add -lgssapi
> -mike

The patch below will be included in the next release...

Thanks,
K.C.

--- src/Makefile.am 1 Aug 2006 17:06:37 -0000 1.8
+++ src/Makefile.am 5 Sep 2006 13:26:40 -0000
@@ -1,5 +1,6 @@
lib_LTLIBRARIES = librpcsecgss.la
librpcsecgss_la_LDFLAGS = -version-info 3:0:0
+librpcsecgss_la_LIBADD = $(GSSAPI_LIBS)
librpcsecgss_la_SOURCES = \
auth_gss.c authgss_prot.c svc.c svc_run.c svc_auth.c \
svc_auth_none.c svc_auth_unix.c svc_auth_gss.c \

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs