New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure option --with-gssapi=path does not work anymore without pkg-config #8289
Comments
I think we should always try pkg-config first, both with and without path given. Simply because pkg-config is the superior way for this kind of data. But if there is no pkg-config available or if gssapi is not supported by it, we should continue to try krb5-config next and then go best-effort without. |
IMHO, if the user is supplying a path, it's there for a reason and should be
used. My expectation as a user would be, if no path is given, for it to first
use pkg-config then fall back to some default location, but if a path is given
to use that and fail if the path doesn't work.
|
pkg-config may be superior but when I say "use this", I want to it to use "this". Or tell me, that I'm stupid/need more sleep. But never to try to outsmart me. |
Yes, but many (modern) softwares install the pkg-config data in that path and it contains info that helps the build. So why not use it if its there? |
I mean if there's :
(or however it's organised) |
On Tue, Jan 18, 2022 at 01:06:46AM -0800, Daniel Stenberg wrote:
Yes, but many (modern) softwares install the pkg-config data in that path and
it contains info that helps the build. So why not use it if its there?
Because that's the system-supplied library whereas the user wants to use a local
one.
|
I met the same issue, I needs to customized the gssapi lib in my case, |
Hi, this is me today. |
I dug into this a bit more since I'm having the same problems with curl 7.80.0+, and unfortunately just locally reverting #7916 is not enough for me because I'm building on an older platform that doesn't have a new enough autotools to regenerate |
I did this
I have used the "configure" option
--with-gssapi=path
to specify the MIT Kerberos to use for GSS API.This does not work anymore, because pull request #7916 has introduced a bug: When the option
--with-gssapi=path
is used, the configure script tries to use pkg-config anyway. If pkg-config is not available, or if pkg-config does not find the necessary information, it is assumed that the GSS library's name is "gssapi". But the correct name (in my case) is "gssapi_krb5".The configure script prints a (seemingly) unrelated error:
From config.log:
I think that
pkg-config
should only be used if--with-gssapi
is specified without a path, but it should not be used if a path is present. Probably the toolkrb5-config
should be used in this case to detect the GSS library's name.I expected the following
configure
should not abort with an errorcurl/libcurl version
operating system
CentOS Linux release 7.9.2009 (Core)
The text was updated successfully, but these errors were encountered: