build: configure fails to process libnatpmp from depends for HOST=x86_64-w64-mingw32 #21350

issue hebasto openend this issue on March 3, 2021
  1. hebasto commented at 11:28 am on March 3, 2021: member

    From the config.log:

      0configure:25743: checking for initnatpmp in -lnatpmp
      1configure:25768: x86_64-w64-mingw32-g++ -std=c++17 -o conftest.exe -pipe -O2  -fno-extended-identifiers -I/home/hebasto/GitHub/gui/depends/x86_64-w64-mingw32/include/  -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_MT -DWIN32 -D_WINDOWS -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN -D_FILE_OFFSET_BITS=64 -DPROVIDE_FUZZ_MAIN_FUNCTION -L/home/hebasto/GitHub/gui/depends/x86_64-w64-mingw32/lib  -Wl,--major-subsystem-version -Wl,6 -Wl,--minor-subsystem-version -Wl,1 conftest.cpp -lnatpmp  -lssp -liphlpapi -lshlwapi -lws2_32 -ladvapi32 -luuid -loleaut32 -lole32 -lcomctl32 -lshell32 -lwinmm -lcomdlg32 -lgdi32 -luser32 -lkernel32  >&5
      2/usr/bin/x86_64-w64-mingw32-ld: /home/hebasto/GitHub/gui/depends/x86_64-w64-mingw32/lib/libnatpmp.a(natpmp.o):natpmp.c:(.text+0x16f): undefined reference to `natpmp_gettimeofday'
      3/usr/bin/x86_64-w64-mingw32-ld: /home/hebasto/GitHub/gui/depends/x86_64-w64-mingw32/lib/libnatpmp.a(natpmp.o):natpmp.c:(.text+0x1c8): undefined reference to `natpmp_gettimeofday'
      4/usr/bin/x86_64-w64-mingw32-ld: /home/hebasto/GitHub/gui/depends/x86_64-w64-mingw32/lib/libnatpmp.a(natpmp.o):natpmp.c:(.text+0x3d0): undefined reference to `__imp_readnatpmpresponse'
      5/usr/bin/x86_64-w64-mingw32-ld: /home/hebasto/GitHub/gui/depends/x86_64-w64-mingw32/lib/libnatpmp.a(natpmp.o):natpmp.c:(.text+0x3f0): undefined reference to `natpmp_gettimeofday'
      6collect2: error: ld returned 1 exit status
      7configure:25768: $? = 1
      8configure: failed program was:
      9| /* confdefs.h */
     10| #define PACKAGE_NAME "Bitcoin Core"
     11| #define PACKAGE_TARNAME "bitcoin"
     12| #define PACKAGE_VERSION "21.99.0"
     13| #define PACKAGE_STRING "Bitcoin Core 21.99.0"
     14| #define PACKAGE_BUGREPORT "https://github.com/bitcoin/bitcoin/issues"
     15| #define PACKAGE_URL "https://bitcoincore.org/"
     16| #define HAVE_CXX17 1
     17| #define STDC_HEADERS 1
     18| #define HAVE_SYS_TYPES_H 1
     19| #define HAVE_SYS_STAT_H 1
     20| #define HAVE_STDLIB_H 1
     21| #define HAVE_STRING_H 1
     22| #define HAVE_MEMORY_H 1
     23| #define HAVE_STRINGS_H 1
     24| #define HAVE_INTTYPES_H 1
     25| #define HAVE_STDINT_H 1
     26| #define HAVE_UNISTD_H 1
     27| #define LT_OBJDIR ".libs/"
     28| #define USE_ASM 1
     29| #define ENABLE_SSE41 1
     30| #define ENABLE_AVX2 1
     31| #define ENABLE_SHANI 1
     32| #define HAVE_LIBKERNEL32 1
     33| #define HAVE_LIBUSER32 1
     34| #define HAVE_LIBGDI32 1
     35| #define HAVE_LIBCOMDLG32 1
     36| #define HAVE_LIBWINMM 1
     37| #define HAVE_LIBSHELL32 1
     38| #define HAVE_LIBCOMCTL32 1
     39| #define HAVE_LIBOLE32 1
     40| #define HAVE_LIBOLEAUT32 1
     41| #define HAVE_LIBUUID 1
     42| #define HAVE_LIBADVAPI32 1
     43| #define HAVE_LIBWS2_32 1
     44| #define HAVE_LIBSHLWAPI 1
     45| #define HAVE_LIBIPHLPAPI 1
     46| #define HAVE___INT128 1
     47| #define HAVE_PTHREAD_PRIO_INHERIT 1
     48| #define HAVE_PTHREAD 1
     49| #define _FILE_OFFSET_BITS 64
     50| #define HAVE_DECL_STRERROR_R 0
     51| #define HAVE_LIBSSP 1
     52| #define HAVE_STDIO_H 1
     53| #define HAVE_STDLIB_H 1
     54| #define HAVE_UNISTD_H 1
     55| #define HAVE_STRINGS_H 1
     56| #define HAVE_SYS_TYPES_H 1
     57| #define HAVE_SYS_STAT_H 1
     58| #define HAVE_DECL_GETIFADDRS 0
     59| #define HAVE_DECL_FREEIFADDRS 0
     60| #define HAVE_DECL_STRNLEN 1
     61| #define HAVE_DECL_DAEMON 0
     62| #define HAVE_DECL_PIPE2 0
     63| #define HAVE_DECL_LE16TOH 0
     64| #define HAVE_DECL_LE32TOH 0
     65| #define HAVE_DECL_LE64TOH 0
     66| #define HAVE_DECL_HTOLE16 0
     67| #define HAVE_DECL_HTOLE32 0
     68| #define HAVE_DECL_HTOLE64 0
     69| #define HAVE_DECL_BE16TOH 0
     70| #define HAVE_DECL_BE32TOH 0
     71| #define HAVE_DECL_BE64TOH 0
     72| #define HAVE_DECL_HTOBE16 0
     73| #define HAVE_DECL_HTOBE32 0
     74| #define HAVE_DECL_HTOBE64 0
     75| #define HAVE_DECL_BSWAP_16 0
     76| #define HAVE_DECL_BSWAP_32 0
     77| #define HAVE_DECL_BSWAP_64 0
     78| #define HAVE_BUILTIN_CLZL 1
     79| #define HAVE_BUILTIN_CLZLL 1
     80| #define HAVE_DEFAULT_VISIBILITY_ATTRIBUTE 1
     81| #define HAVE_DLLEXPORT_ATTRIBUTE 1
     82| #define HAVE_FDATASYNC 0
     83| #define HAVE_O_CLOEXEC 0
     84| #define HAVE_STD__SYSTEM 1
     85| #define HAVE_SYSTEM HAVE_STD__SYSTEM || HAVE_WSYSTEM
     86| #define QT_STATICPLUGIN 1
     87| #define QT_QPA_PLATFORM_MINIMAL 1
     88| #define QT_QPA_PLATFORM_WINDOWS 1
     89| #define USE_BDB 1
     90| #define USE_SQLITE 1
     91| #define HAVE_MINIUPNPC_MINIWGET_H 1
     92| #define HAVE_MINIUPNPC_MINIUPNPC_H 1
     93| #define HAVE_MINIUPNPC_UPNPCOMMANDS_H 1
     94| #define HAVE_MINIUPNPC_UPNPERRORS_H 1
     95| #define HAVE_NATPMP_H 1
     96| /* end confdefs.h.  */
     97| 
     98| /* Override any GCC internal prototype to avoid an error.
     99|    Use char because int might match the return type of a GCC
    100|    builtin and then its argument prototype would still apply.  */
    101| #ifdef __cplusplus
    102| extern "C"
    103| #endif
    104| char initnatpmp ();
    105| int
    106| main ()
    107| {
    108| return initnatpmp ();
    109|   ;
    110|   return 0;
    111| }
    112configure:25777: result: no
    
  2. hebasto added the label Bug on Mar 3, 2021
  3. fanquake commented at 11:31 am on March 3, 2021: member
    I’d assume fixed by #21209.
  4. hebasto commented at 11:55 am on March 3, 2021: member

    @fanquake

    I’d assume fixed by #21209.

    Nope. Just tested.

  5. fanquake closed this on Mar 10, 2021

  6. DrahtBot locked this on Aug 18, 2022


hebasto fanquake

Labels
Bug


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-30 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me