[UDT] OSX compilation errors
Brought to you by:
lilyco
From: Ben R. <ben...@so...> - 2006-03-15 12:21:11
|
Hi, Is anyone else compiling for OSX at the moment ? I am getting errors with version 2.3 I am compiling on a powerPC machine running tiger the xcode version is 2.0 xcode IDE 514.0 xcode core 515.0 tool support 514.0 I am compiling with gcc in a terminal gcc is Usage: powerpc-apple-darwin8-gcc-4.0.0 The make flags are as follows make -e os=BSD arch=POWERPC I see the following error, is this known issue ? channel.cpp is version 1.20 ~/projects/udt2 ben$ make -e os=BSD arch=POWERPC make -C src all g++ -fPIC -Wall -DBSD -finline-functions -DTRACE -DNO_BUSY_WAITING -mcpu=powerpc channel.cpp -c channel.cpp: In member function `int CChannel::recvfrom(CPacket&, sockaddr*) const': channel.cpp:301: error: invalid conversion from 'int*' to 'socklen_t*' channel.cpp:301: error: initializing argument 6 of 'ssize_t recvfrom(int, void*, size_t, int, sockaddr*, socklen_t*)' channel.cpp: In member function `int CChannel::getSndBufSize()': channel.cpp:344: error: invalid conversion from 'int*' to 'socklen_t*' channel.cpp:344: error: initializing argument 5 of 'int getsockopt(int, int, int, void*, socklen_t*)' channel.cpp: In member function `int CChannel::getRcvBufSize()': channel.cpp:357: error: invalid conversion from 'int*' to 'socklen_t*' channel.cpp:357: error: initializing argument 5 of 'int getsockopt(int, int, int, void*, socklen_t*)' channel.cpp: In member function `void CChannel::getSockAddr(sockaddr*) const': channel.cpp:380: error: invalid conversion from 'int*' to 'socklen_t*' channel.cpp:380: error: initializing argument 3 of 'int getsockname(int, sockaddr*, socklen_t*)' channel.cpp: In member function `void CChannel::getPeerAddr(sockaddr*) const': channel.cpp:391: error: invalid conversion from 'int*' to 'socklen_t*' channel.cpp:391: error: initializing argument 3 of 'int getpeername(int, sockaddr*, socklen_t*)' make[1]: *** [channel.o] Error 1 make: *** [src.all] Error 2 same version is fine on debian sarge regards Ben Roeder |