bstansell / conserver

Logged, multi-user access to device consoles
https://www.conserver.com/
BSD 3-Clause "New" or "Revised" License
130 stars 38 forks source link

Does not build with GSSAPI support on Debian/Fedora #59

Closed bernhardschmidt closed 2 years ago

bernhardschmidt commented 3 years ago

While trying to fix an old wishlist bug for compilation with GSSAPI in Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826230) I noticed that even with the appropriate gssapi-Headers installed (libkrb5-dev in Debian) it would not enable support for it.

./configure [...] --with-gssapi
[...]
checking gssapi/gssapi.h usability... yes
checking gssapi/gssapi.h presence... yes
checking for gssapi/gssapi.h... yes
checking for gssapi library -lgssapi... no
checking for gssapi library -lgssglue... no
checking for gssapi library -lgss... no
[...]
              GSS-API (--with-gssapi)    : NO

Debugging this I've found an old patch in Fedora from 2013 that tries to link to libgssapi_krb5.

https://src.fedoraproject.org/rpms/conserver/c/753991149a52c7685139f04245573a005c7459a2?branch=master

This patch fixes the issue on Debian as well (renaming the .in to .ac extension in the patch). I have not actually tested GSSAPI, as I don't have the necessary infrastructure in place.