Closed psafont closed 2 years ago
I believe this is a bug in the OCaml header <caml/misc.h>
: instead of #elif __MSC_VER >= ...
it should be #elif defined(__MSC_VER) && __MSC_VER >= ...
.
Thanks for looking into this!
MSC_VER is noisy, but the errors are actually in ocurl code, can you please try the latest git if it works for you (opam pin add ocurl --dev-repo
)
Thanks for looking into this, unfortunately compilation still fails on the missing curl_sslbackend
type:
$ cat /usr/lib64/opamroot/log/curl-117-2f78b5.out
gcc curl-helper.o (exit 1)
(cd _build/default && /usr/bin/gcc -DHAVE_CONFIG_H -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -fno-builtin-memcmp -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -g -I /usr/lib64/ocaml -o curl-helper.o -c curl-helper.c)
curl-helper.c:1269:1: error: unknown type name 'curl_sslbackend'
curl_sslbackend sslBackendMap[] = {
^
curl-helper.c: In function 'caml_curl_easy_getinfo':
curl-helper.c:4262:9: note: #pragma message: libcurl does not provide CURLINFO_ACTIVESOCKET
#pragma message("libcurl does not provide CURLINFO_ACTIVESOCKET")
^
curl-helper.c:4276:9: note: #pragma message: libcurl does not provide CURLINFO_HTTP_VERSION
#pragma message("libcurl does not provide CURLINFO_HTTP_VERSION")
^
curl-helper.c: At top level:
curl-helper.c:996:12: warning: 'cb_XFERINFOFUNCTION' defined but not used [-Wunused-function]
static int cb_XFERINFOFUNCTION(void *data,
^
curl-helper.c:2513:13: warning: 'ocaml_HTTP_VERSION' defined but not used [-Wunused-function]
static long ocaml_HTTP_VERSION(long curl_version)
My bad, I assumed it was fixed in previous fixes in git. Please check master again.
That worked!
I'm struggling with this issue, cloning and pinning the master branch results in
The following dependencies couldn't be met:
- ocurl → curl >= 0.9.2
no matching version
Tried the following, also tried opam pin add ocurl --dev-repo
with same result:
git clone https://github.com/ygrek/ocurl.git;
cd ocurl
opam pin .;
Any assistance here would be very much appreciated
I believe that's a different issue. The repository now provides the package curl as well as ocurl, install it as well
When building ocurl 0.9.2 with libcurl 0.29.0 (in a centos 7 environment) I get:
The two errors I see are: