Date: Wed, 13 Nov 2002 02:15:27 +0900 From: Hajimu UMEMOTO <ume@FreeBSD.org> To: gnome@FreeBSD.org, phoenix@FreeBSD.org Cc: Hajimu UMEMOTO <ume@mahoroba.org> Subject: enabling IPv4-mapped IPv6 address in NSPR Message-ID: <ygeznseiua8.wl%ume@mahoroba.org>
next in thread | raw e-mail | index | archive | help
--Multipart_Wed_Nov_13_02:15:27_2002-1 Content-Type: text/plain; charset=US-ASCII Hi, I'm tracking down the problem which www/phoenix cannot play with IPv4 under 5-CURRENT. IPv4-mapped IPv6 address is default to off under 5-CURRENT. So, if application wish to use IPv4-mapped IPv6 address, the application should enable IPv4-mapped IPv6 address explicitly per socket basis as www/mozilla do. Since phoenix is closed to mozilla 1.2beta, ports/www/mozilla-devel/files/patch-nsprpub::pr::src::pthreads::ptio.c is simply applicable for ports/www/phoenix. Yes, it should be applied to ports/www/phoenix, too. However, this didn't solve the problem, here. This is because phoenix wrongly refers /usr/local/lib/libnspr4.so.1, I dunno why. So, I made a patch to devel/nspr. This patch should save the applications which depend on devel/nspr under 5-CURRENT. --Multipart_Wed_Nov_13_02:15:27_2002-1 Content-Type: text/x-patch; charset=US-ASCII Content-Disposition: attachment; filename="patch-..::pr::src::pthreads::ptio.c" Content-Transfer-Encoding: 7bit $FreeBSD$ --- ../pr/src/pthreads/ptio.c.orig Fri Apr 12 03:14:39 2002 +++ ../pr/src/pthreads/ptio.c Tue Jul 30 18:52:11 2002 @@ -3414,6 +3414,17 @@ if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno); else { +#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \ + defined(__FreeBSD__) && defined(IPV6_V6ONLY) + if (domain == PR_AF_INET6) { + int opt = 0; + if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, + &opt, sizeof(opt))) { + close(osfd); + return NULL; + } + } +#endif fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE); if (fd == NULL) close(osfd); } --Multipart_Wed_Nov_13_02:15:27_2002-1 Content-Type: text/plain; charset=US-ASCII -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ --Multipart_Wed_Nov_13_02:15:27_2002-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygeznseiua8.wl%ume>