This is (most likely) a problem with the ordering of libraries. I suggest you use the output of `krb5-config --libs`. /Johan