Re: [UDT] OSX compilation errors
Brought to you by:
lilyco
From: Yunhong Gu <yu...@la...> - 2006-03-15 18:08:08
|
in ./src/channel.cpp, around line 66, remove #define socklen_t int for BSD. OS X has started to use socklen_t instead of int. There may be more problem, if so, in ./src/Makefile use $(C++) -dynamiclib -o libudt.dylib -lstdc++ -lpthread -lm $^ to replace the original "libtool ..." line. Thanks, Yunhong On Wed, 15 Mar 2006, Ben Roeder wrote: > 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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > UDT-general mailing list > UDT...@li... > https://lists.sourceforge.net/lists/listinfo/udt-general > |