This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj on osx questions
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: java at gcc dot gnu dot org, Andi Vajda <andi at osafoundation dot org>, jym at Cs dot Nott dot AC dot UK, Tom Tromey <tromey at redhat dot com>
- Date: Mon, 12 Dec 2005 21:27:01 -0600
- Subject: Re: gcj on osx questions
- Reply-to: gnustuff at thisiscool dot com
Hi Bryce,
>> + memset (&u, 0, sizeof (u));
>> if (len == 4)
>>
>> I did this against a 4.02 snapshot but am not sure where to
>> go from here since the trunk is already at 4.2.
>>
>
>This is odd. Off-hand I do not see a reason why clearing the SockAddr
>should be necessary, because it appears that all fields of u.sin_addr
>will be initialized properly, at least in the INET4 case. Do you know
>how/why it fails without this?
No idea, but these posts clued me off and the fix worked for me:
- http://lists.danga.com/pipermail/memcached/2004-November/000859.html
- http://lists.danga.com/pipermail/memcached/2004-November/000860.html
- http://lists.danga.com/pipermail/memcached/2004-November/000864.html
>> My question is: How does one go about doing this? Are we allowed to look at the
>> Apple headers or does doing so taint us?
>
>Interesting question. IIRC, in order to implement libjawt it was
>necessary to read their header file since the header file essentially is
>the specification. So, perhaps that could be considered a precedent for
>this being ok. Any other opinions? It would be interesting to get a diff
>of Apple's jni.h against the generic Sun header to see how extensive the
>required changes are.
Do I wait for other opinions or just go ahead?
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/