when I started apache22 after installation of mod_auth_kerb2 in freebsd 8.0 amd64. But everything is fine in freebsd 7.3. Is it a bug of freebsd 8.0 amd64 of mod_auth_kerb2?x(x(Undefined symbol "gsskrb5_register_acceptor_identity"
[/usr/src/kerberos5/lib/libgssapi_krb5] # grep acceptor gss_krb5.c
gsskrb5_register_acceptor_identity(const char *identity)
expl said:You get this error because your mod in building stage is not linked with libgssapi_krb5.a. Taking a peek at its port I got impression that adding "KRB5_HOME=/usr" to /etc/make.conf should fix this if you rebuild your mod.
zhongyb said:but I got the same message when I rebuilt it after added "KRB5_HOME=/usr" to /etc/make.conf.
Actually. the function gsskrb5_register_acceptor_idendity is exported by libgssapi_krb5.so. Does anyone tell me how to link to libgssapi_krb5.so at building stage.
You do not link with dynamic library file, you link with static library that has instructions to load symbols from dynamic one. Static being .a and dynamic .so.
dougs said:Okay, so how do I actually link to the static library? I've just run into this issue this afternoon and am using the base Heimdal running on FreeBSD 8.1-RELEASE. I'm not a coder and a step-by-step set of instructions would be helpful here. I'm not seeing any other resolution among the many Google hits I've come across thus far.
~Doug
Add -lgssapi_krb5 when you are linking the executable. This will tell linker to lookup and link libgssapi_krb5.a static library.
Add -lgssapi_krb5 when you are linking the executable. This will tell linker to lookup and link libgssapi_krb5.a static library.