GithubHelp home page GithubHelp logo

Comments (6)

JCMais avatar JCMais commented on July 3, 2024

@jrsinclair Those errors are because the compiler is not compiling the code with c++11 support enabled, I've probably fixed this in 05fcea7, but as I don't own a mac to test it, idk for sure, can you check it?

from node-libcurl.

jrsinclair avatar jrsinclair commented on July 3, 2024

Hi @JCMais, thanks heaps for the quick response. Is there any chance you could tag that commit to make it easier to grab through npm?

Cheers,

James

from node-libcurl.

JCMais avatar JCMais commented on July 3, 2024

Grab the latest version from npm, the changes are there.

from node-libcurl.

jrsinclair avatar jrsinclair commented on July 3, 2024

Thanks for that. It seems to have fixed a few of the errors, but revealed new ones. Compiler output is below:

npm WARN engine [email protected]: wanted: {"node":">= 0.8.0 && < 0.11.0"} (current: {"node":"0.10.35","npm":"2.1.17"})
-
> [email protected] install /Users/james/Dropbox/carmm_shared/ServerWatcher_James/node-checker/node_modules/node-libcurl
> node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild

  CXX(target) Release/obj.target/node-libcurl/src/node-libcurl.o
  CXX(target) Release/obj.target/node-libcurl/src/Curl.o
In file included from ../src/Curl.cc:17:
../src/generated-stubs/curlAuth.h:5:10: error: constant expression evaluates to 18446744073709551599 which cannot be narrowed to type 'int32_t' (aka 'int') [-Wc++11-narrowing]
        {"ANY", CURLAUTH_ANY},
                ^~~~~~~~~~~~
/usr/include/curl/curl.h:640:31: note: expanded from macro 'CURLAUTH_ANY'
#define CURLAUTH_ANY          (~CURLAUTH_DIGEST_IE)
                              ^~~~~~~~~~~~~~~~~~~~~
../src/generated-stubs/curlAuth.h:5:10: note: override this message by inserting an explicit cast
        {"ANY", CURLAUTH_ANY},
                ^~~~~~~~~~~~
                static_cast<int32_t>( )
/usr/include/curl/curl.h:640:31: note: expanded from macro 'CURLAUTH_ANY'
#define CURLAUTH_ANY          (~CURLAUTH_DIGEST_IE)
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from ../src/Curl.cc:17:
../src/generated-stubs/curlAuth.h:6:14: error: constant expression evaluates to 18446744073709551598 which cannot be narrowed to type 'int32_t' (aka 'int') [-Wc++11-narrowing]
        {"ANYSAFE", CURLAUTH_ANYSAFE},
                    ^~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:641:31: note: expanded from macro 'CURLAUTH_ANYSAFE'
#define CURLAUTH_ANYSAFE      (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/generated-stubs/curlAuth.h:6:14: note: override this message by inserting an explicit cast
        {"ANYSAFE", CURLAUTH_ANYSAFE},
                    ^~~~~~~~~~~~~~~~
                    static_cast<int32_t>( )
/usr/include/curl/curl.h:641:31: note: expanded from macro 'CURLAUTH_ANYSAFE'
#define CURLAUTH_ANYSAFE      (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/Curl.cc:17:
../src/generated-stubs/curlAuth.h:14:11: error: constant expression evaluates to 2147483648 which cannot be narrowed to type 'int32_t' (aka 'int') [-Wc++11-narrowing]
        {"ONLY", CURLAUTH_ONLY}
                 ^~~~~~~~~~~~~
/usr/include/curl/curl.h:639:31: note: expanded from macro 'CURLAUTH_ONLY'
#define CURLAUTH_ONLY         (((unsigned long)1)<<31)
                              ^~~~~~~~~~~~~~~~~~~~~~~~
../src/generated-stubs/curlAuth.h:14:11: note: override this message by inserting an explicit cast
        {"ONLY", CURLAUTH_ONLY}
                 ^~~~~~~~~~~~~
                 static_cast<int32_t>( )
/usr/include/curl/curl.h:639:31: note: expanded from macro 'CURLAUTH_ONLY'
#define CURLAUTH_ONLY         (((unsigned long)1)<<31)
                              ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/Curl.cc:17:
../src/generated-stubs/curlAuth.h:5:10: warning: implicit conversion from 'unsigned long' to 'int32_t' (aka 'int') changes value from 18446744073709551599 to -17
      [-Wconstant-conversion]
        {"ANY", CURLAUTH_ANY},
        ~       ^~~~~~~~~~~~
/usr/include/curl/curl.h:640:32: note: expanded from macro 'CURLAUTH_ANY'
#define CURLAUTH_ANY          (~CURLAUTH_DIGEST_IE)
                               ^~~~~~~~~~~~~~~~~~~
In file included from ../src/Curl.cc:17:
../src/generated-stubs/curlAuth.h:6:14: warning: implicit conversion from 'unsigned long' to 'int32_t' (aka 'int') changes value from 18446744073709551598 to -18
      [-Wconstant-conversion]
        {"ANYSAFE", CURLAUTH_ANYSAFE},
        ~           ^~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:641:32: note: expanded from macro 'CURLAUTH_ANYSAFE'
#define CURLAUTH_ANYSAFE      (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 3 errors generated.
make: *** [Release/obj.target/node-libcurl/src/Curl.o] Error 1

from node-libcurl.

JCMais avatar JCMais commented on July 3, 2024

Those warnings are about a known issue, but that has no implications to the client code.

Try the latest version.

from node-libcurl.

jrsinclair avatar jrsinclair commented on July 3, 2024

Latest version installed fine. Thanks.

from node-libcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.