From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii6vp-0001wt-Aw for garchives@archives.gentoo.org; Wed, 17 Oct 2007 11:19:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9HB86HU032050; Wed, 17 Oct 2007 11:08:06 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9HB6BmU029758 for ; Wed, 17 Oct 2007 11:06:11 GMT Received: from [10.73.1.31] (uberlaptop.marples.name [10.73.1.31]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id E27C7190038 for ; Wed, 17 Oct 2007 12:06:08 +0100 (BST) Subject: Re: [gentoo-dev] QA question, undefined reference to _getshort From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: <200710171052.48862.hanno@gentoo.org> References: <200710171052.48862.hanno@gentoo.org> Content-Type: text/plain; charset=utf-8 Organization: Gentoo Date: Wed, 17 Oct 2007 12:06:07 +0100 Message-Id: <1192619167.12390.2.camel@uberlaptop.marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l9HB86JB032050 X-Archives-Salt: d1529e6f-f751-4018-9e6a-50fcac516487 X-Archives-Hash: 6460d075ad34a45f206cc8dfab2a717c On Wed, 2007-10-17 at 10:52 +0200, Hanno B=C3=B6ck wrote: > net-analyzer:openvas-libraries-1.0.0:20071013-001835.log- * hg_dns_axfr= .c:85:=20 > warning: implicit declaration of function '_getshort' >=20 > The function _getshort is part of glibc, but it's nowhere referenced in= the=20 > headers. It probably should be in resolv.h. It's a private function - don't use it. However, it's not overly complex - here's how it ends up #define NS_GET16(s, cp) do { \ register u_char *t_cp =3D (u_char *)(cp); \ (s) =3D ((u_int16_t)t_cp[0] << 8) \ | ((u_int16_t)t_cp[1]) \ ; \ (cp) +=3D NS_INT16SZ; \ } while (0)=20 u_int ns_get16(const u_char *src) { u_int dst; =20 NS_GET16(dst, src); return (dst); } libresolv_hidden_def (ns_get16) u_int16_t _getshort(const u_char *src) { return (ns_get16(src)); } Thanks Roy --=20 gentoo-dev@gentoo.org mailing list