- status: open --> accepted
- assigned_to: Robert McMahon
building iperf 2.1.4 using the cygwin mingw32 cross-compiler I get a lot of errors.
... That all go away if I do
./configure --host=i686-w64-mingw32 \
--disable-multicast
errors with the default multicast enabled:
i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wall -O2 --static -MT Listener.o -MD -MP -MF .deps/Listener.Tpo -c -o Listener.o Listener.cpp
Listener.cpp: In member function ‘void Listener::my_multicast_join()’:
Listener.cpp:605:70: error: cannot convert ‘group_source_req’ to ‘const char’
605 | rc = setsockopt(ListenSocket,IPPROTO_IPV6,MCAST_JOIN_SOURCE_GROUP, &group_source_req,
| ^~~~~~~~~~~~~~~~~
| |
| group_source_req
In file included from ../include/headers.h:161,
from Listener.cpp:75:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:1029:88: note: initializing argument 4 of ‘int setsockopt(SOCKET, int, int, const char, int)’
1029 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char optval,int optlen);
| ~~~~~~~~~~~~^~~~~~
Listener.cpp:624:63: error: cannot convert ‘group_req’ to ‘const char’
624 | rc = setsockopt(ListenSocket,IPPROTO_IPV6,MCAST_JOIN_GROUP, &group_req,
| ^~~~~~~~~~
| |
| group_req
In file included from ../include/headers.h:161,
from Listener.cpp:75:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:1029:88: note: initializing argument 4 of ‘int setsockopt(SOCKET, int, int, const char, int)’
1029 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char optval,int optlen);
| ~~~~~~~~~~~~^~~~~~
Listener.cpp:672:68: error: cannot convert ‘group_source_req’ to ‘const char’
672 | rc = setsockopt(ListenSocket,IPPROTO_IP,MCAST_JOIN_SOURCE_GROUP, &group_source_req,
| ^~~~~~~~~~~~~~~~~
| |
| group_source_req
In file included from ../include/headers.h:161,
from Listener.cpp:75:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:1029:88: note: initializing argument 4 of ‘int setsockopt(SOCKET, int, int, const char, int)’
1029 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char optval,int optlen);
| ~~~~~~~~~~~~^~~~~~
Listener.cpp:709:61: error: cannot convert ‘group_req’ to ‘const char’
709 | rc = setsockopt(ListenSocket,IPPROTO_IP,MCAST_JOIN_GROUP, &group_req,
| ^~~~~~~~~~
| |
| group_req
In file included from ../include/headers.h:161,
from Listener.cpp:75:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:1029:88: note: initializing argument 4 of ‘int setsockopt(SOCKET, int, int, const char, int)’
1029 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char optval,int optlen);
| ~~~~~~~~~~~~^~~~~~
make[2]: *** [Makefile:536: Listener.o] Error 1
make[2]: Leaving directory '/source/iperf-2.1.4/src'