Skip to content

Broken build in Mingw #2915

Description

@artenax

The version from this commit is not built in Mingw.
I am using Debian 11 i386. Not Docker, manually. Mingw 10.2. The versions of self-builded libraries roughly match the versions from docker/mingw/prepare.sh file. libev 4.25, mbedtls 2.16.5, libsodium 1.0.18, pcre 8.44, c-ares 1.16.
shadows-locks-libev 3.3.5 builds up to commit c2fc967, but then error when building ss_local-udprelay.o:

  CC       ss_local-udprelay.o
udprelay.c: In function ‘convert_ipv4_mapped_ipv6’:
udprelay.c:759:9: error: unknown type name ‘in_addr_t’; did you mean ‘ss_addr_t’?
  759 |         in_addr_t ipv4_raw_addr = ntohl(ipv4_addr->sin_addr.s_addr);
      |         ^~~~~~~~~
      |         ss_addr_t
make[2]: *** [Makefile:1086: ss_local-udprelay.o] Error 1
make[2]: выход из каталога «/home/denis/shadowsocks-libev/src»
make[1]: *** [Makefile:489: all-recursive] Error 1
make[1]: выход из каталога «/home/denis/shadowsocks-libev»
make: *** [Makefile:398: all] Error 2

Including the latest git.
By the way, the patched version of libev 4.24-mingw doesn't pass ./configure (loop ev check doesn't pass), so I used the vanilla libev 4.25, but that doesn't matter here. And some URLs in prepare.sh are not available and I had to look for alternatives.

However, the native shared linux build (latest git) builds even in ubuntu 16.04 with gcc5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions