Trouble building OpenJDK on FreeBSD 7

Daniel Engberg diizzyy at gmail.com
Thu Oct 16 12:09:10 PDT 2008


Greg Lewis wrote:
> On Tue, Oct 14, 2008 at 08:19:48AM +0200, Daniel Engberg wrote:
>   
>> Now that Greg pushed his patches I can build OpenJDK but unfortunately 
>> Azureus (which in my case was the program I wanted to get working) 
>> doesn't work. It fails at binding network interfaces which is a bit of a 
>> drawback compared to earlier JRE's which at least starts Azureus. As 
>> I've said earlier I'm not a developer not I can't help with coding (i.e 
>> fixing the issue) but keep up the good work. For those who are wondering 
>> here's the error message I get:
>>
>> StartServer ERROR: unable to bind to 127.0.0.1:6880 for passed torrent info
>> StartSocket: passing startup args to already-running process.
>> java.net.SocketException: Invalid argument
>>     
>
> Can you try to boil it down to a simpler test case?  Azureus is a pretty
> complex app.
>
>   
>>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>>         at 
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
>>         at 
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
>>         at 
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
>>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:380)
>>         at java.net.Socket.connect(Socket.java:569)
>>         at java.net.Socket.connect(Socket.java:519)
>>         at java.net.Socket.<init>(Socket.java:416)
>>         at java.net.Socket.<init>(Socket.java:199)
>>         at 
>> org.gudy.azureus2.ui.common.Main$StartSocket.<init>(Main.java:370)
>>         at org.gudy.azureus2.ui.common.Main.main(Main.java:155)
>>
>> Best regards,
>> Daniel
>>     
Hi,

I've made some research and this issue seems to be (Free)BSD-specific 
and occurs when you dont have an IPv6 interface configured. You can get 
around this by adding -Djava.net.preferIPv4Stack=true but you'll still 
have the same old issues (slow downloads and no upload at all) as 
before. This two links have a lot more to tell regarding this issue 
(this is beyond my abilitiy to debug).

http://lists.freebsd.org/pipermail/freebsd-java/2008-September/007656.html
http://lists.freebsd.org/pipermail/freebsd-java/2008-October/007705.html

Best regards,
Daniel



More information about the bsd-port-dev mailing list