opensubscriber
   Find in this group all groups
 
Unknown more information…

o : openplay-dev@lists.apple.com 16 December 2005 • 10:24PM -0500

Re: OpenPlay with a Mach-O app?
by Ed Zavada

REPLY TO AUTHOR
 
REPLY TO GROUP




Brad,

I'm actually having problems with your posix_size_type change compiling
with XCode 1.5 on Panther. XCode 2.0 & 2.1 require Tiger, so anyone
still working with Panther would need to use 1.5

The problem appears to be that the posix_size_type isn't defined in the
same place, or perhaps that the XCode 1.5 project doesn't have some
needed include path or compile option that the new XCode project has.
I'll try to track this down more over the weekend, but if you have any
insight that would be helpful.

Thanks!
Ed

On Dec 15, 2005, at 3:27 PM, Brad Oliver wrote:

> On Dec 15, 2005, at 1:03 PM, openplay-dev-request@list...
> wrote:
>
>> 4) Build everything and you get the 28 errors that are all similar to
>> this one:
>> /Source/Project_Files/xcode/../../Source/OPNetModules/posix/TCP_IP/
>> tcp_module_communication.cpp:220: error: invalid conversion from
>> 'posix_size_type*' to 'socklen_t*'
>>
>> 5) The line of code for this error is:
>> status = getsockname(datagramSockets[counter], (sockaddr*) &address,
>> &size);
>>
>> 6) Applying the appropriate cast makes the line of code:
>> status = getsockname(datagramSockets[counter], (sockaddr*) &address,
>> (socklen_t *)&size);
>>
>> 7) Repeat this same cast for the other errors.
>
> I would not recommend making these changes.
>
> There is actually a much better and easier fix for this, and it's one
> I applied to my source tree (which Ed is looking at). It's essentially
> a two-liner.
>
> Open up OPNetModules/Posix/TCP_IP/tcp_module.h and search for the
> posix_size_type typedef.
>
> You want to change it from:
>
> #if defined(OP_PLATFORM_MAC_MACHO) || defined (OP_PLATFORM_WINDOWS)
> typedef int posix_size_type;
> ...
>
> to
>
> #if defined(OP_PLATFORM_MAC_MACHO)
> typedef socklen_t posix_size_type;
> #elif defined (OP_PLATFORM_WINDOWS)
> typedef int posix_size_type;
> ...
>
> If you do this, you'll be left with one case that still gives an error
> - it's around like 1473 of tcp_module_communication.cpp in my tree (in
> NMGetIdentifier). You'll need to change a "int remote_length;" to
> "posix_size_type remote_length;". Again, this is also fixed in the
> tree I uploaded a short time ago.
>
> --
> Brad Oliver
> bradman@pobo...
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Openplay-dev mailing list      (Openplay-dev@list...)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/openplay-dev/ezavada%40io.com
>
> This email sent to ezavada@io.c...
>
>
Ed Zavada
Pixel Dust Games
ed@pixe...
http://www.pixeldustgames.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Openplay-dev mailing list      (Openplay-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/openplay-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.