librtmfp woes

sources/Base/Timezone.cpp: In constructor ‘Base::Timezone::Timezone()‘:

sources/Base/Timezone.cpp:497:31: error: cannot bind non-const lvalue reference of type ‘std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, const char*> >&‘ to an rvalue of type ‘std::map<std::__cxx11::basic_string<char>, const char*>::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, const char*> >}

   auto& it = WindowToTZID.find(_name);

              ~~~~~~~~~~~~~~~~~^~~~~~~

 

 

I think meant declare it like

const auto& it = &_sockets.find(

add const…

9 thoughts on “librtmfp woes”

  1. error: function ‘char RTMFP_WaitForEvent(unsigned int, RTMFPMask)’ definition is marked dllimport

    meant remove the API part…

    +char RTMFP_WaitForEvent(unsigned int RTMFPcontext, RTMFPMask mask) {

    or possibly define +#define LIBRTMFP_STATIC 1
    ?

  2. undefined reference to _imp__ RTMFP_GetPublicationAndUrlFromUr

    meant “remove all declspec stuff” so it doesn’t anticipate it coming from dll land…methinks?

  3. apps/win32_init.c:10:10: fatal error: ‘windows.h’ file not found

    openssl 1.1.1

    meant “you are configuring for mingw but then compiling for os x…”

  4. same with

    g-windows-build-helpers/sandbox/cross_compilers/native/ssl\”” -DENGINESDIR=”\”/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/lib/engines-1_1\”” -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -m64 -Wall -O2 -D_MT -D_WINDLL -MMD -MF crypto/bn/asm/x86_64-gcc.d.tmp -MT crypto/bn/asm/x86_64-gcc.o -c -o crypto/bn/asm/x86_64-gcc.o crypto/bn/asm/x86_64-gcc.c
    crypto/bn/asm/x86_64-gcc.c:70:11: warning: ‘BN_ULONG’ macro redefined [-Wmacro-redefined]
    # define BN_ULONG unsigned long
    ^
    include/openssl/bn.h:51:11: note: previous definition is here
    # define BN_ULONG unsigned long long
    ^
    crypto/bn/asm/x86_64-gcc.c:117:10: error: conflicting types for ‘bn_mul_add_words’
    BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num,
    ^
    crypto/bn/asm/../bn_lcl.h:208:10: note: previous declaration is here
    BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num,
    ^
    crypto/bn/asm/x86_64-gcc.c:148:10: error: conflicting types for ‘bn_mul_words’
    BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
    ^
    crypto/bn/asm/../bn_lcl.h:210:10: note: previous declaration is here
    BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
    ^
    crypto/bn/asm/x86_64-gcc.c:176:6: error: conflicting types for ‘bn_sqr_words’
    void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n)
    ^
    crypto/bn/asm/../bn_lcl.h:211:6: note: previous declaration is here
    void bn_sqr_words(BN_ULONG *rp, const BN_ULONG *ap, int num);
    ^
    crypto/bn/asm/x86_64-gcc.c:201:10: error: conflicting types for ‘bn_div_words’
    BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
    ^
    crypto/bn/asm/../bn_lcl.h:212:10: note: previous declaration is here
    BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d);
    ^
    crypto/bn/asm/x86_64-gcc.c:212:10: error: conflicting types for ‘bn_add_words’
    BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
    ^
    crypto/bn/asm/../bn_lcl.h:213:10: note: previous declaration is here
    BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
    ^
    crypto/bn/asm/x86_64-gcc.c:238:10: error: conflicting types for ‘bn_sub_words’
    BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
    ^
    crypto/bn/asm/../bn_lcl.h:215:10: note: previous declaration is here
    BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
    ^
    crypto/bn/asm/x86_64-gcc.c:398:6: error: conflicting types for ‘bn_mul_comba8’
    void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b)
    ^
    crypto/bn/asm/../bn_lcl.h:641:6: note: previous declaration is here
    void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b);
    ^
    crypto/bn/asm/x86_64-gcc.c:501:6: error: conflicting types for ‘bn_mul_comba4’
    void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b)
    ^
    crypto/bn/asm/../bn_lcl.h:642:6: note: previous declaration is here
    void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b);
    ^
    crypto/bn/asm/x86_64-gcc.c:540:6: error: conflicting types for ‘bn_sqr_comba8’
    void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a)
    ^
    crypto/bn/asm/../bn_lcl.h:644:6: note: previous declaration is here
    void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a);
    ^
    crypto/bn/asm/x86_64-gcc.c:615:6: error: conflicting types for ‘bn_sqr_comba4’
    void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a)
    ^
    crypto/bn/asm/../bn_lcl.h:645:6: note: previous declaration is here
    void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a);

    methinks…

  5. yIDType DEPRECATED_IN_MAC_OS_X_VERSION_10_6_AND_LATER;
    ^
    In file included from audio_out.c:171:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h:67:
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Ink.framework/Headers/Ink.h:200:51: error: expected ‘;’ after top level
    declarator
    typedef struct OpaqueInkTextRef* InkTextRef DEPRECATED_IN_MAC_OS_X_VERSION_10_14_AND_LATER;
    ^
    ;
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Ink.framework/Headers/Ink.h:222:53: error: expected ‘;’ after top level
    declarator
    typedef struct OpaqueInkStrokeRef* InkStrokeRef DEPRECATED_IN_MAC_OS_X_VERSION_10_14_AND_LATER;
    ^
    ;
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Ink.framework/Headers/Ink.h:251:49: error: expected ‘;’ after top level
    declarator
    typedef struct InkPoint InkPoint DEPRECATED_IN_MAC_OS_X_VERSION_10_14_AND_LATER;
    ^
    ;
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Ink.framework/Headers/Ink.h:252:52: error: expected ‘;’ after top level
    declarator
    typedef InkPoint * InkPointPtr DEPRECATED_IN_MAC_OS_X_VERSION_10_14_AND_LATER;

    libsamplerate

    meant “bump to newer version”??

  6. In file included from /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/lensfun-0.3.95/libs/lensfun/modifier.cpp:7:0:
    /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/lensfun-0.3.95/lensfun.h: In constructor ‘lfModifier::lfModifier(float, int, int, lfPixelFormat, bool)’:
    /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/lensfun-0.3.95/lensfun.h:3058:19: warning: ‘lfModifier::PixelFormat’ will be initialized after [-Wreorder]
    lfPixelFormat PixelFormat;
    ^~~~~~~~~~~
    /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/lensfun-0.3.95/lensfun.h:3048:12: warning: ‘double lfModifier::Crop’ -Wreorder]
    double Crop;
    ^~~~
    /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/lensfun-0.3.95/libs/lensfun/modifier.cpp:132:1: warning: when initialized here [-Wreorder]
    lfModifier::lfModifier (float imgcrop, int imgwidth, int imgheight,
    ^~~~~~~~~~
    [100%] Linking CXX shared library liblensfun.dylib
    i686-w64-mingw32-g++: error: 2.0.0: No such file or directory
    i686-w64-mingw32-g++: error: 0.3.95: No such file or directory
    i686-w64-mingw32-g++: error: /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/lensfun-0.3.95/libs/lensfun/liblensfun.2.dylib: No such file or directory
    i686-w64-mingw32-g++: error: unrecognized command line option ‘-compatibility_version’
    i686-w64-mingw32-g++: error: unrecognized command line option ‘-current_version’; did you mean ‘-Wconversion’?
    i686-w64-mingw32-g++: error: unrecognized command line option ‘-install_name’
    make[2]: *** [libs/lensfun/liblensfun.0.3.95.dylib] Error 1
    make[1]: *** [libs/lensfun/CMakeFiles/lensfun.dir/all] Error 2
    make: *** [all] Error 2

    meant “nuke dir and try again, somehow it forgot it was cross compiling” (wait what?)

  7. /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-gcc -Wl,–nxcompat,–dynamicbase -Wl,–high-entropy-va -Wl,–as-needed -Wl,–pic-executable,-e,mainCRTStartup -Wl,–image-base,0x140000000 -I/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/include -L/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/ -L/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib -o /var/folders/52/02ywtc9j2n9145q29g58g5s40000gn/T//ffconf.3ibUgxB3/test.exe /var/folders/52/02ywtc9j2n9145q29g58g5s40000gn/T//ffconf.3ibUgxB3/test.o -lrtmfp -lstdc++ -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -lpthread -lm -lmingwex
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Net.o):Net.cpp:(.text+0x399): undefined reference to `GetBestInterfaceEx’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Net.o):Net.cpp:(.text+0x399): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `GetBestInterfaceEx’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x1c): undefined reference to `HMAC_CTX_cleanup’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x1c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `HMAC_CTX_cleanup’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x21c): undefined reference to `EVP_MD_CTX_create’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x21c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `EVP_MD_CTX_create’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x2de): undefined reference to `HMAC_CTX_init’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x2de): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `HMAC_CTX_init’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x4): undefined reference to `EVP_MD_CTX_destroy’
    @

    meant

    link -lWs2_32 -liphlpapi -lssl -lcrypto

    for mingw cross compile anyway

  8. /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-gcc -Wl,–nxcompat,–dynamicbase -Wl,–high-entropy-va -Wl,–as-needed -Wl,–pic-executable,-e,mainCRTStartup -Wl,–image-base,0x140000000 -I/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/include -L/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/ -L/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib -o /var/folders/52/02ywtc9j2n9145q29g58g5s40000gn/T//ffconf.Ne5TdZPf/test.exe /var/folders/52/02ywtc9j2n9145q29g58g5s40000gn/T//ffconf.Ne5TdZPf/test.o -lrtmfp -lstdc++ -lWs2_32 -liphlpapi -lssl -lcrypto -lstdc++ -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -lpthread -lm -lmingwex
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x1c): undefined reference to `HMAC_CTX_cleanup’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x1c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `HMAC_CTX_cleanup’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x21c): undefined reference to `EVP_MD_CTX_create’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x21c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `EVP_MD_CTX_create’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x2de): undefined reference to `HMAC_CTX_init’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x2de): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `HMAC_CTX_init’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x4): undefined reference to `EVP_MD_CTX_destroy’
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib//librtmfp.a(Crypto.o):Crypto.cpp:(.text+0x4): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `EVP_MD_CTX_destroy’

    may have meant maybe “you linked against one version of openssl that’s no longer on your system anymore?”
    Anyway, reinstalling 1.0.2 and it went away FWIW

    cross compile here…

  9. compiling sources/FlowManager.cpp
    compiling sources/RTMFPSender.cpp
    compiling sources/RTMFPWriter.cpp
    compiling sources/FlashWriter.cpp
    compiling sources/Base/IPAddress.cpp
    sources/Base/IPAddress.cpp:22:10: fatal error: Iphlpapi.h: No such file or directory
    #include
    ^~~~~~~~~~~~
    compilation terminated.
    Makefile:90: recipe for target ‘tmp/Release/Base/IPAddress.o’ failed
    make[1]: *** [tmp/Release/Base/IPAddress.o] Error 1
    compiling sources/Base/BufferPool.cpp
    compiling sources/Base/UDPSocket.cpp
    compiling sources/Base/Thread.cpp
    compiling sources/Base/DiffieHellman.cpp
    compiling sources/Base/Congestion.cpp
    compiling sources/Base/Timer.cpp
    compiling sources/Base/ThreadPool.cpp
    compiling sources/Base/Path.cpp
    compiling sources/Base/Socket.cpp
    compiling sources/Base/Process.cpp
    compiling sources/Base/FileSystem.cpp
    compiling sources/Base/Packet.cpp
    compiling sources/Base/Parameters.cpp
    compiling sources/Base/Date.cpp
    compiling sources/Base/Net.cpp
    sources/Base/Net.cpp:20:10: fatal error: Iphlpapi.h: No such file or directory
    #include

    ^~~~~~~~~~~~
    compilation terminated.
    Makefile:90: recipe for target ‘tmp/Release/Base/Net.o’ failed
    make[1]: *** [tmp/Release/Base/Net.o] Error 1
    compiling sources/Base/IOSocket.cpp
    compiling sources/Base/Crypto.cpp
    compiling sources/Base/Handler.cpp
    compiling sources/Base/ThreadQueue.cpp
    compiling sources/Base/String.cpp
    compiling sources/Base/Logger.cpp
    compiling sources/Base/BinaryReader.cpp
    compiling sources/Base/DNS.cpp
    compiling sources/Base/SocketAddress.cpp
    compiling sources/Base/Logs.cpp
    compiling sources/Base/Signal.cpp
    compiling sources/Base/BinaryWriter.cpp
    compiling sources/Base/Mona.cpp
    compiling sources/Base/HostEntry.cpp
    compiling sources/Base/Buffer.cpp
    compiling sources/Base/Util.cpp
    In file included from ./include/Base/Util.h:20,
    from sources/Base/Util.cpp:17:
    In function ‘const string& Base::Parameters::setString(const string&, const char*, std::size_t)’,
    inlined from ‘Base::Util::Environment()::Environment::Environment()’ at sources/Base/Util.cpp:76:26,
    inlined from ‘static const Base::Parameters& Base::Util::Environment()’ at sources/Base/Util.cpp:79:4:
    ./include/Base/Parameters.h:83:180: warning: argument 1 null where non-null expected [-Wnonnull]
    nst std::string& setString(const std::string& key, const char* value, std::size_t size = std::string::npos) { return setParameter(key, value, size == std::string::npos ? strlen(value) : size); }
    ~~~~~~^~~~~~~

    In file included from /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/cstring:42,
    from ./include/Base/Mona.h:24,
    from ./include/Base/Util.h:19,
    from sources/Base/Util.cpp:17:
    /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/string.h: In static member function ‘static const Base::Parameters& Base::Util::Environment()’:
    /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/string.h:64:18: note: in a call to function ‘size_t strlen(const char*)’ declared here
    size_t __cdecl strlen(const char *_Str);
    ^~~~~~

    meant “the correct name of the header is iphlpapi.h but they got it some funky way with capitalization in that code, so in linux land where case sensitive matters, it doesn’t compile right”
    fix: fix the capitalization…

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.