From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 22:41:08 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 AD9BC16A415 for ; Mon, 18 Dec 2006 22:41:08 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44FAC43CA3 for ; Mon, 18 Dec 2006 22:41:06 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id kBIM2YHI089167; Mon, 18 Dec 2006 16:02:34 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id kBIM2YYM089166; Mon, 18 Dec 2006 16:02:34 -0600 (CST) (envelope-from brooks) Date: Mon, 18 Dec 2006 16:02:34 -0600 From: Brooks Davis To: Jean-Philippe Daigle Message-ID: <20061218220234.GC88878@lor.one-eyed-alien.net> References: <6B865826E860EF42B3A387A03F395396147E73D6@EX0004.AllstreamITS.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R+My9LyyhiUvIEro" Content-Disposition: inline In-Reply-To: <6B865826E860EF42B3A387A03F395396147E73D6@EX0004.AllstreamITS.local> User-Agent: Mutt/1.5.11 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 List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 22:41:08 -0000 --R+My9LyyhiUvIEro Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2006 at 04:29:49PM -0500, Jean-Philippe Daigle wrote: > Hello, >=20 > I'm trying to compile an application using the FreeBSD port of ACE 5.5. > We've been successfully supporting the application under Linux, and are > currently trying to port to FreeBSD 6.1. >=20 > The problem I'm having now is that including ace/OS_NS_netdb.h results > in errors; from what I've read, gethost*_r functions are not defined on > FreeBSD? >=20 > My compiler output looks like the following, and since this is FreeBSD, > I believe "ACE_LACKS_NETDB_REENTRANT_FUNCTIONS" is defined. Help from > any other ACE-on-FreeBSD users would be greatly appreciated! >=20 > g++ -Wall -Wpointer-arith -g -pipe -O0 -DACE_HAS_EXCEPTIONS > -D__ACE_INLINE__ -I/usr/local/include -Werror -I- > -I/usr/home/solaceuser/dev/cppcsmp/.. > -I/usr/home/solaceuser/dev/cppcsmp/solace -I/usr/local/include/ -c > /usr/home/solaceuser/dev/cppcsmp/CSMPFactory.cpp -o CSMPFactory.o > In file included from /usr/local/include/ace/OS_NS_netdb.h:142, > from > /usr/home/solaceuser/dev/cppcsmp/CSMPFactory.cpp:19: > /usr/local/include/ace/OS_NS_netdb.inl: In function `hostent* > ACE_OS::gethostbyaddr_r(const char*, int, int, hostent*, char*, int*)': > /usr/local/include/ace/OS_NS_netdb.inl:108: error: `::gethostbyaddr_r' > has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `hostent* > ACE_OS::gethostbyname_r(const char*, hostent*, char*, int*)': > /usr/local/include/ace/OS_NS_netdb.inl:218: error: `::gethostbyname_r' > has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `protoent* > ACE_OS::getprotobyname_r(const char*, protoent*, char*)': > /usr/local/include/ace/OS_NS_netdb.inl:365: error: `::getprotobyname_r' > has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `protoent* > ACE_OS::getprotobynumber_r(int, protoent*, char*)': > /usr/local/include/ace/OS_NS_netdb.inl:432: error: > `::getprotobynumber_r' has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `servent* > ACE_OS::getservbyname_r(const char*, const char*, servent*, char*)': > /usr/local/include/ace/OS_NS_netdb.inl:506: error: `::getservbyname_r' > has not been declared 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 --R+My9LyyhiUvIEro Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFhw/6XY6L6fI4GtQRAodcAKDaiEzL1ujolfDuRijVmH5dOkQKXQCeLMSG YsxCt/JUbY471sLA/nmMaPM= =qQg7 -----END PGP SIGNATURE----- --R+My9LyyhiUvIEro--