From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 12:32:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EFBC16A4CE for ; Thu, 13 Nov 2003 12:32:09 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FFF443F3F for ; Thu, 13 Nov 2003 12:32:07 -0800 (PST) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (8.12.10/8.12.10) with ESMTP id hADKVTfU015985; Thu, 13 Nov 2003 21:31:31 +0100 (CET) (envelope-from cpghost@cordula.ws) Date: Thu, 13 Nov 2003 21:31:30 +0100 (CET) Message-Id: <200311132031.hADKVTfU015985@fw.farid-hajji.net> From: "Cordula's Web" To: kris@obsecurity.org In-reply-to: <20031113181648.GA52950@xor.obsecurity.org> (message from Kris Kennaway on Thu, 13 Nov 2003 10:16:48 -0800) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <200311131559.hADFxLfU004445@fw.farid-hajji.net> <20031113181648.GA52950@xor.obsecurity.org> cc: freebsd-questions@freebsd.org Subject: Re: No gethostbyname_r() in FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 20:32:09 -0000 > > I'm trying to compile milter-dnsrbl.c from > > ftp://ftp.atnf.csiro.au/pub/people/rgooch/email-utilities/mailutils.tgz > > > > The problem is that gethostbyname_r() doesn't seem to exist > > in FreeBSD. This is the code which uses it (from milter-dnsrbl.c): > > It's a known issue. There are some third party DNS libraries that > provide an implementation, e.g. in newer versions of bind. Ah, okay. Since I'm using system's BIND, I'll simply replace gethostbyname_r() with a call to gethostbyname() in this program and hope for the best [it doesn't look like a reentrant version is needed in this special case]. I'll google for the synopsis of gethostbyname_r() now. Thanks for clarifying this! -- Cordula's Web. http://www.cordula.ws/