You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build.rs program attempts to do find /usr -name libgssapi_krb5.so*. This will take a very long time on many systems because it is a recursive find. It never seems to work on my system and certainly takes a very long time. It probably finds multiple incorrect matches. The source of the problem is that krb5-config --prefix returns /usr. Now at the very least you should append "/lib" and maybe "/lib64" to this before running find but it should sooner take the output of krb5-config --libs gssapi and interpret that. On my system, that is:
Only the second argument there really seems to be necessary (the first is relevant but a default). Alternatuvely, krb5-config --version does identify my GSS implementation as being heimdal.
I really can't stress enough what a bad idea running a recursive find is. Prefixes can be nested such as /usr/local being below /usr so you'll potentially pick up libraries there. find also tends to search in directory order so the results may not be deterministic. Also as a final pedantic point, omitting the -print option to find is a non-standard (but common) extension. I'm not really using libgssapi directly but it gets picked up as a transitive dependency.
The text was updated successfully, but these errors were encountered:
The
build.rs
program attempts to dofind /usr -name libgssapi_krb5.so*
. This will take a very long time on many systems because it is a recursive find. It never seems to work on my system and certainly takes a very long time. It probably finds multiple incorrect matches. The source of the problem is thatkrb5-config --prefix
returns/usr
. Now at the very least you should append "/lib" and maybe "/lib64" to this before running find but it should sooner take the output ofkrb5-config --libs gssapi
and interpret that. On my system, that is:Only the second argument there really seems to be necessary (the first is relevant but a default). Alternatuvely,
krb5-config --version
does identify my GSS implementation as being heimdal.I really can't stress enough what a bad idea running a recursive
find
is. Prefixes can be nested such as/usr/local
being below/usr
so you'll potentially pick up libraries there.find
also tends to search in directory order so the results may not be deterministic. Also as a final pedantic point, omitting the-print
option tofind
is a non-standard (but common) extension. I'm not really using libgssapi directly but it gets picked up as a transitive dependency.The text was updated successfully, but these errors were encountered: