OpenJDK6 not building

Stacy Millions stacy at Millions.Ca
Wed May 19 22:45:32 UTC 2010


On 05/19/10 15:25, Damian Gerow wrote:
> Stacy Millions wrote:
> : AAAA records are not part of the issue... if you want a quick and dirty
> : test, try this
>
> Regardless, I tried with java.net.preferIPv4Stack=true, and it had no effect.

Dug into the build process a bit... they use a bundled version of ant 
which doesn't call /usr/local/bin/java (who uses JAVAVM_OPTS).

Try adding these two lines to the MAKE_ENV of the port's Makefile
	JAVACMD=${LOCALBASE}/bin/java \
	JAVAVM_OPTS=-Djava.net.preferIPv4Stack=true \

and rerun make. It works for me.

> : At least that is how things behave for me.
>
> That seems ... counter-intuitive.

It seems counter to the documentation too

http://java.sun.com/javase/6/docs/technotes/guides/net/ipv6_guide

but I tend to take the pragmatic approach that when reality disagrees 
with the documentation, I believe reality :-)

-stacy


More information about the freebsd-ports mailing list