How to find out bitness of gss library?

Weijun Wang weijun.wang at oracle.com
Thu Nov 21 03:57:47 EST 2013



On 11/19/13, 8:16, Greg Hudson wrote:
> On 11/18/2013 09:35 AM, Weijun Wang wrote:
>> The problem is, a 64 bit Linux system can have both 32 bit and 64 bit
>> libraries installed, and we would like to find out if the installed
>> libgss is one, the other, or both, so that we can determine which
>> version of Java we can test. Is there a way to find out this?
>
> I don't think we provide a way to do this, as I don't think it's
> currently common for *-config scripts or pkg-config files to give out
> this information.  Perhaps this is an omission in the current state of
> the art for build-time dependency discovery.
>
> Can you simply check whether you are able to successfully load the GSS
> library and run the tests if it works?  (I'm assuming that you are
> loading the library with dlopen or similar.  If you are building a
> program and linking against it, you can similarly check for the success
> or failure of the linker.)

Yes, we use dlopen but we don't know the name. It was only libgssapi.so, 
but then we see libgssapi_krb5.so and libgssapi_krb5.so.2. This test is 
to make sure any new name can be detected quickly.

Thanks
Max


More information about the krbdev mailing list