Skip to content

Failing to build for Windows targets due to libcurl redefinition #208

Description

@sempervictus

Seeing this for i686 and x64:

configure: WARNING: the previous check could not be made default was used
Building curl for x86_64-w64-mingw32
/usr/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../lib/.libs/libcurl.a(libcurl_la-system_win32.o):system_win32.c:(.bss+0x10): multiple definition of `Curl_freq'; curl-tool_doswin.o:tool_doswin.c:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../lib/.libs/libcurl.a(libcurl_la-system_win32.o):system_win32.c:(.bss+0x8): multiple definition of `Curl_isVistaOrGreater'; curl-tool_doswin.o:tool_doswin.c:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:933: curl.exe] Error 1
make[3]: *** [Makefile:2000: install-recursive] Error 1
make[2]: *** [Makefile:949: install-recursive] Error 1
make[1]: *** [make/Makefile.curl:30: /.../mettle/build/x86_64-w64-mingw32/lib/libcurl.a] Error 2
make[1]: Leaving directory '/opt/code/Ruby/MSF/mettle'
make: *** [Makefile:33: x86_64-w64-mingw32.build] Error 2

Host system is Arch Linux, though that probably shouldn't have much bearing on this.
Ping @acammack-r7 and @OJ - any thoughts on what i broke this time? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions