Open benoitc opened 13 years ago
centos 5.6 only provides curl 7.15 and CURLOPT_SEEKFUNCTION have been added in 7.18. Followin patch fix this:
--- a/couchjs/c_src/SConscript
+++ b/couchjs/c_src/SConscript
@@ -51,9 +51,13 @@ if not env.GetOption('clean'):
require_lib('m')
require_lib('pthread')
- require_lib('curl')
require_lib('nspr4')
+ ## check curl
+ if conf.CheckHeader('curl/curl.h'):
+ if conf.CheckDeclaration('CURLOPT_SEEKFUNCTION', 'curl/curl.h'):
+ conf.Define('WITH_CURL', 1)
+
## check for SpiderMonkey development header
if conf.CheckHeader('mozjs/jsapi.h'):
jsapi = 'mozjs/jsapi.h'
lgtm
LGTM as well
Hrm. But its not. Hacking together a fix. We've needed this for awhile anyway.
@benoitc Can you try this version?
works for me .
When you try to build couch_js on this platform you get this error :