Linking gsasl on mingw fails with: gsasl.o: In function `readln': /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl.c:101: undefined reference to `_recv_used_without_requesting_gnulib_module_recv' gsasl.o: In function `main': /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl.c:480: undefined reference to `_rpl_connect' /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl.c:483: undefined reference to `_rpl_close' /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl.c:473: undefined reference to `_rpl_socket' /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl.c:825: undefined reference to `_shutdown_used_without_requesting_gnulib_module_shutdown' /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl.c:826: undefined reference to `_rpl_close' gsasl_cmd.o: In function `cmdline_parser_file_save': /home/jas/src/gsasl/gsasl-0.2.29/src/gsasl_cmd.c:447: undefined reference to `_rpl_fclose'
The linker failures are understandable, I haven't added these gnulib modules (yet). But why does it complain about '_rpl_connect' rather than 'socket_used_without_requesting_gnulib_module_connect'? Looking at sys_socket.in.h, I'd expect that the failures would be similar for all socket functions, and that they follow the longer form. /Simon