Date: Tue, 6 Jul 2010 23:26:26 +1000 From: Andrew Reilly <areilly@bigpond.net.au> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-current@freebsd.org, Matthias Andree <mandree@freebsd.org> Subject: Re: Regression in GSSAPI/libxh509 linking? [PR bin/147175] Message-ID: <457406E5-0E8C-4DB0-97B3-C8CAA7DD3AD0@bigpond.net.au> In-Reply-To: <20100706123325.GF13238@deviant.kiev.zoral.com.ua> References: <op.vfexgepa1e62zd@merlin.emma.line.org> <20100706085435.GC13238@deviant.kiev.zoral.com.ua> <4C3317C6.3020009@FreeBSD.org> <20100706123325.GF13238@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Kostik, 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: */ #include <krb5.h> /* 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. */ #ifdef __cplusplus extern "C" #endif char krb5_init_context (); int main () { return krb5_init_context (); ; return 0; } (fetchmail uses a conftest with a call to gss_check_version(), but the = result is the same.) And the cc fails with=20 /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. Cheers, --=20 Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457406E5-0E8C-4DB0-97B3-C8CAA7DD3AD0>