From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 08:00:00 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 010B916A4CE for ; Thu, 13 Nov 2003 08:00:00 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id A58BA43FD7 for ; Thu, 13 Nov 2003 07:59:58 -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 hADFxLfU004445 for ; Thu, 13 Nov 2003 16:59:22 +0100 (CET) (envelope-from cpghost@cordula.ws) Date: Thu, 13 Nov 2003 16:59:21 +0100 (CET) Message-Id: <200311131559.hADFxLfU004445@fw.farid-hajji.net> From: "Cordula's Web" To: freebsd-questions@freebsd.org X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE Subject: 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 16:00:00 -0000 Hi, 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): ------------------------------------------------------------------------------ #if !defined(__linux__) || !defined(__GLIBC__) if ( !gethostbyname_r (lookup_name, &ret, buf, sizeof buf, &herrnum) ) continue; #else if ( gethostbyname_r (lookup_name, &ret, buf, sizeof buf, &result, &herrnum) ) continue; #endif ------------------------------------------------------------------------------ Am I just missing something here (like linking to some obscure library), or is that really a known issue? I'm using: FreeBSD 4.9-STABLE #0: Fri Nov 7 03:24:27 CET 2003 with a GENERIC kernel. Thanks, cpghost. -- Cordula's Web. http://www.cordula.ws/