From owner-freebsd-java Fri Feb 7 20:17: 4 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A33037B401 for ; Fri, 7 Feb 2003 20:17:01 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E74743FA3 for ; Fri, 7 Feb 2003 20:17:00 -0800 (PST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (rdu57-229-060.nc.rr.com [66.57.229.60]) by habanero.hesketh.net (8.12.6/8.12.6) with ESMTP id h184Gkfx010660; Fri, 7 Feb 2003 23:16:47 -0500 X-Received-From: brent@mutt.rcfile.org X-Delivered-To: freebsd-java@FreeBSD.ORG X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.6/8.12.6) with ESMTP id h184H1XD006252; Fri, 7 Feb 2003 23:17:01 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.6/8.12.6/Submit) id h184H0HO006251; Fri, 7 Feb 2003 23:17:00 -0500 (EST) Date: Fri, 7 Feb 2003 23:17:00 -0500 From: Brent Verner To: freebsd-java@FreeBSD.ORG Cc: William Holt Subject: Re: problem and workaround for java/tomcat on -current Message-ID: <20030208041700.GA6124@rcfile.org> References: <20030203105027.GA86700@rcfile.org> <20030208033902.GA5841@rcfile.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20030208033902.GA5841@rcfile.org> X-muttrc: $Id: .muttrc,v 1.9 2002/01/02 07:04:49 brent Exp $ X-uname: FreeBSD 4.7-STABLE #32: Tue Feb 4 11:04:18 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.3i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [2003-02-07 22:39] Brent Verner said: | I've simply renamed the gethostby...._r to l_gethostby...._r, and am | rebuilding now to verify this theory. I'll let yall know what the | outcome is. Indeed, applying the attached patch works around the problem. cheers. brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="InetAddressImpl.c.diff-p7" --- j2sdk1.3.1/src/solaris/native/java/net/InetAddressImpl.c.p7 Fri Feb 7 22:17:46 2003 +++ j2sdk1.3.1/src/solaris/native/java/net/InetAddressImpl.c Fri Feb 7 21:34:23 2003 @@ -34,11 +34,11 @@ /* forward declarations --billh */ HOST_R_RETURN -gethostbyname_r(const char *name, struct hostent *hptr, +l_gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS); HOST_R_RETURN -gethostbyaddr_r(const char *addr, int len, int type, +l_gethostbyaddr_r(const char *addr, int len, int type, struct hostent *hptr, HOST_R_ARGS); @@ -100,14 +100,14 @@ #ifdef __GLIBC__ gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error); #else - hp = gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); + hp = l_gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); #endif if (hp) { #ifdef __GLIBC__ gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, &res2, buf2, sizeof(buf2), &hp, &h_error); #else - hp = gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, + hp = l_gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, &res2, buf2, sizeof(buf2), &h_error); #endif if (hp) { @@ -190,7 +190,7 @@ #ifdef __GLIBC__ gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error); #else - hp = gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); + hp = l_gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); #endif /* With the re-entrant system calls, it's possible that the buffer @@ -204,7 +204,7 @@ gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, &hp, &h_error); #else - hp = gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, + hp = l_gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, &h_error); #endif } @@ -284,7 +284,7 @@ gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &h_error); #else - hp = gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, + hp = l_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &h_error); #endif /* With the re-entrant system calls, it's possible that the buffer @@ -298,7 +298,7 @@ gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, tmp, BIG_HENT_BUF_SIZE, &hp, &h_error); #else - hp = gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, + hp = l_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, tmp, BIG_HENT_BUF_SIZE, &h_error); #endif } else { @@ -336,7 +336,7 @@ copy_hostent(struct hostent *, struct hostent *, HOST_R_COPY_ARGS); HOST_R_RETURN -gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS) { +l_gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS) { struct hostent *he = gethostbyname(name); HOST_R_ERRNO; @@ -348,7 +348,7 @@ } HOST_R_RETURN -gethostbyaddr_r(const char *addr, int len, int type, +l_gethostbyaddr_r(const char *addr, int len, int type, struct hostent *hptr, HOST_R_ARGS) { struct hostent *he = gethostbyaddr(addr, len, type); --SUOF0GtieIMvvwua-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message