Skip to contentSkip to conversation

linking librpcsecgss against libgssapi

DISCUSSION Mike Frysinger 2 participants 2 messages Aug 31, 2006 – Sep 5, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

-------------------------------------------------------------------------
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

#1 lore raw
Quoted 11 lines · Mike Frysinger

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.

Makefile.am 5 Sep 2006 13:26:40 -0000 renamed from Makefile.am 1 Aug 2006 17:06:37 -0000 1.8 +1 -0
@@ -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