Regression in GSSAPI/libxh509 linking? [PR bin/147175]
areilly at bigpond.net.au
Tue Jul 6 13:26:30 UTC 2010
On 06/07/2010, at 22:33 , Kostik Belousov wrote:
> "Install evolution-data-server" as a reference to the command is a sure way
> to not get any help.
Why, because no-one uses ports?
> I asked for explicit command that fails, PR does not contain this information.
> It is not even clear whether the issue is from the static or run-time linker.
The specific command that fails is in the PR, to whit:
cc -o conftest -O2 -pipe -g -DLDAP_DEPRECATED -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/db41 -L/usr/local/lib -pthread conftest.c -L/usr/local/lib -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lroken -lcrypt
where, in this instance, conftest.c is something like (extracted from the configure script from evolution-data-server):
/* contentes of confdefs.h, whatever that is, probably at least: */
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
char krb5_init_context ();
return krb5_init_context ();
(fetchmail uses a conftest with a call to gss_check_version(), but the result is the same.)
And the cc fails with
/usr/lib/libhx509.so: undefined reference to `MD2_Init'
/usr/lib/libhx509.so: undefined reference to `MD2_Final'
/usr/lib/libhx509.so: undefined reference to `MD2_Update'
as reported in the PR.
It doesn't do this on my system any more, because I've fixed it with the patch attached to that PR.
More information about the freebsd-current