Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
linking shared-library msvcrt-ruby200.dll
Creating library file: libmsvcrt-ruby200.dll.a
dln.o: In function `rb_w32_check_imported':
C:\Users\Worker\Code\ruby\ruby\build32/../dln.c:1212: undefined reference to `_imp__ImageDirectoryEntryToData@16'
vm_dump.o: In function `dump_thread':
C:\Users\Worker\Code\ruby\ruby\build32/../vm_dump.c:696: undefined reference to `_imp__SymSetOptions@4'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `open_ifs_socket':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3410: undefined reference to `_imp__WSAEnumProtocolsA@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3411: undefined reference to `_imp__WSAGetLastError@0'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3435: undefined reference to `_imp__WSASocketA@24'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3427: undefined reference to `_imp__WSASocketA@24'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3418: undefined reference to `_imp__WSASetLastError@4'
win32/win32.o: In function `exit_handler':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:640: undefined reference to `_imp__WSACleanup@0'
win32/win32.o: In function `do_select':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `finish_overlapped_socket':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3094: undefined reference to `_imp__WSAGetLastError@0'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3097: undefined reference to `_imp__WSAGetOverlappedResult@20'
win32/win32.o: In function `overlapped_socket_io':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3143: undefined reference to `_imp__recvfrom@24'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3143: undefined reference to `_imp__sendto@24'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3143: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `overlapped_socket_io':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3166: undefined reference to `_imp__WSARecv@28'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3143: undefined reference to `imp(long double,...)(char, void)@16'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3143: undefined reference to `_imp__send@16'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3166: undefined reference to `_imp__WSASendTo@36'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3166: undefined reference to `_imp__WSARecvFrom@36'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3166: undefined reference to `_imp__WSASend@28'
win32/win32.o: In function `do_select':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__select@20'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `do_select':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__select@20'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `rb_w32_fdisset':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2489: undefined reference to `__WSAFDIsSet@8'
win32/win32.o: In function `do_select':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__select@20'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `do_select':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__select@20'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `do_select':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2695: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_accept@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2925: undefined reference to `_imp__accept@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2925: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_bind@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2960: undefined reference to `_imp__bind@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2960: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_connect@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2978: undefined reference to `_imp__connect@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2978: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getpeername@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3002: undefined reference to `_imp__getpeername@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3002: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getsockname@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3020: undefined reference to `_imp__getsockname@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3020: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getsockopt@20':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3036: undefined reference to `_imp__getsockopt@20'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3036: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_ioctlsocket@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3054: undefined reference to `_imp__ioctlsocket@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3054: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_listen@8':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3072: undefined reference to `_imp__listen@8'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3072: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `get_wsa_extension_function':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2906: undefined reference to `_imp__WSAIoctl@36'
win32/win32.o: In function `recvmsg':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3287: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `StartSockets':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:670: undefined reference to `_imp__WSAStartup@8'
win32/win32.o: In function `get_wsa_extension_function':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:2906: undefined reference to `_imp__WSAIoctl@36'
win32/win32.o: In function `sendmsg':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3344: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_setsockopt@20':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3376: undefined reference to `_imp__setsockopt@20'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3376: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_shutdown@8':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3394: undefined reference to `_imp__shutdown@8'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3394: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_socket@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3462: undefined reference to `_imp__closesocket@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3462: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_gethostbyaddr@12':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3489: undefined reference to `_imp__gethostbyaddr@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3489: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_gethostbyname@4':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3507: undefined reference to `_imp__gethostbyname@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3507: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_gethostname@8':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3525: undefined reference to `_imp__gethostname@8'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3525: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getprotobyname@4':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3543: undefined reference to `_imp__getprotobyname@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3543: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getprotobynumber@4':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3561: undefined reference to `_imp__getprotobynumber@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3561: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getservbyname@8':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3579: undefined reference to `_imp__getservbyname@8'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3579: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_getservbyport@8':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3597: undefined reference to `_imp__getservbyport@8'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3597: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `setfl':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3766: undefined reference to `_imp__ioctlsocket@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3766: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_fclose':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:5430: undefined reference to `_imp__closesocket@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:5431: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `rb_w32_close':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:5545: undefined reference to `_imp__closesocket@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:5546: undefined reference to `_imp__WSAGetLastError@0'
win32/win32.o: In function `socketpair_internal':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3629: undefined reference to `_imp__htonl@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__bind@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__getsockname@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__listen@8'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__connect@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__accept@12'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__WSAGetLastError@0'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__closesocket@4'
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:3653: undefined reference to `_imp__closesocket@4'
win32/win32.o: In function `rb_w32_inet_ntop@16':
C:\Users\Worker\Code\ruby\ruby\build32/../win32/win32.c:6247: undefined reference to `_imp__inet_ntoa@4'
collect2: ld returned 1 exit status
make[2]: *** [msvcrt-ruby200.dll] Error 1
make[2]: Leaving directory `/c/Users/Worker/Code/ruby/ruby/build32'
make[1]: *** [ruby.exe] Error 2
make[1]: Leaving directory `/c/Users/Worker/Code/ruby/ruby/build32'
make: *** [build-ext] Error 2
@rdp

This comment has been minimized.

Copy link

rdp commented Sep 9, 2013

As a note to followers (I know I was one who found this from googling a similar error message in an unrelated project), this was for https://bugs.ruby-lang.org/issues/6462 and apparently was caused by some linking parameters being dropped (in this case, -lws2_32 was missing).

@andreldm

This comment has been minimized.

Copy link

andreldm commented Jun 8, 2015

@rdp thank you sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.