From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 15:24:35 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 112B116A416 for ; Tue, 19 Dec 2006 15:24:35 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 065D343CA4 for ; Tue, 19 Dec 2006 15:24:31 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.8/8.13.8/NETPLEX) with ESMTP id kBJFONEg023844; Tue, 19 Dec 2006 10:24:23 -0500 (EST) Date: Tue, 19 Dec 2006 10:24:23 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Jean-Philippe Daigle In-Reply-To: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> Message-ID: References: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Tue, 19 Dec 2006 10:24:23 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: RE: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 15:24:35 -0000 On Tue, 19 Dec 2006, Jean-Philippe Daigle wrote: >> -----Original Message----- >> From: Brooks Davis [mailto:brooks@one-eyed-alien.net] >> Sent: Monday, December 18, 2006 5:03 PM >> To: Jean-Philippe Daigle >> Cc: freebsd-threads@freebsd.org >> Subject: Re: freebsd/ace: Errors when compiling ACE application >> >> Any reason you aren't using /usr/ports/devel/ace to build it? Even if >> there is, you might want to check the patches they apply and see what >> changes need to be made. >> >> -- Brooks > > Hello Brooks, > I might be misunderstanding your comment, but if I'm not, I need to > clarify the following: I am not attempting to build the ACE libraries > themselves; I'm using the ACE package from the ports system. > > Problem is, when you include /usr/local/include/ace/OS_NS_netdb.h > (installed when you install ACE from ports) in an application, it fails > to build because the functions "::gethostbyaddr_r", "::gethostbyname_r", > "::getprotobyname_r", "::getprotobynumber_r", "::getservbyname_r" don't > appear to be defined anywhere. I was wondering if anyone with experience > using ACE on FreeBSD had encountered this issue themselves. This is a problem for the ports maintainer then. We do have these functions in /usr/include/netdb.h and in libc. I'm not sure when they appeared in FreeBSD, but I see them in -current. It looks like they appeared in 6-stable July 17th, 2006, so if you are using FreeBSD < 6.2 or something from before July 17th, they will not be found. The ace port checks for this and should only apply the _r patch if your version of FreeBSD supports it. What version of FreeBSD are you using (uname -a) and are you sure you properly rebuilt and installed your system so everything is in sync (buildworld, buildkernel, installkernel, installworld)? Did you rebuild ports/devel/ace so it is in sync with the version of FreeBSD that you are using? It almost looks like you installed a port or package of ace that was built for a newer version of FreeBSD than you are using (did you downgrade without rebuild devel/ace?). -- DE