Comments (6)
@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.
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.
Grab the latest version from npm, the changes are there.
from node-libcurl.
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.
Those warnings are about a known issue, but that has no implications to the client code.
Try the latest version.
from node-libcurl.
Latest version installed fine. Thanks.
from node-libcurl.
Related Issues (20)
- How can I write a custom request asynchronously? HOT 1
- [feat] rewrite `node-libcurl` with, the **ONLY** isomorphic way, napi HOT 1
- Curl Easy segmentation fault with requests to external site HOT 3
- Expected npx node-libcurl $URL to work as curl $URL HOT 1
- TypeError: Class extends value #<Object> is not a constructor or null HOT 1
- HTTP_CONTENT_DECODING = false but still decodes the server's responses HOT 1
- How to make multiple curly instances maintain separate connections to same host? HOT 2
- unable to npm install HOT 3
- npm install issues. HOT 5
- libcurl vuln HOT 2
- Add prebuilt binaries for nodejs 20 LTS HOT 13
- read raw msg HOT 3
- Does node-libcurl support res_init? HOT 1
- Error after upgrade to Node 20.10 ...: ERR_DLOPEN_FAILED HOT 2
- SFTP / SSH stuck on login when using Curl/Multi and password auth HOT 2
- Curly - Close connection - Timeout Exception HOT 3
- Cannot install HOT 3
- Send binary data with HTTPPOST option HOT 1
- Hanging on PROTOCONNECTING
- Add prebuilt binaries for node 21(macOS) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-libcurl.