ygrek / ocurl

OCaml bindings to libcurl
https://ygrek.org/p/ocurl
MIT License
59 stars 32 forks source link

Build issue on Rasberry PI Debian Bookworm #73

Closed svondras closed 1 week ago

svondras commented 6 months ago

I am trying to install Liquidsoap through Opam on a raspberry pi running Debiam Bookworm but can't because I can't compile it. I try to install like so; opam install taglib mad lame cry samplerate liquidsoap Opam asks me If I would like the system package manager to install the required dependencies especially libcurl4-gnutls-dev and I respond Y to tell it to do so. here is the contents of the attached log file ocurl-18156-8bf202.out

ocamlfind install -patch-version 0.9.2 -ldconf ignore curl META curl.a curl.cmi curl.mli curl.cma libcurl-helper.a dllcurl-helper.so curl.cmt curl.cmti Installed /home/babypi/.opam/default/lib/curl/curl.cmti Installed /home/babypi/.opam/default/lib/curl/curl.cmt Installed /home/babypi/.opam/default/lib/curl/libcurl-helper.a Installed /home/babypi/.opam/default/lib/curl/curl.cma Installed /home/babypi/.opam/default/lib/curl/curl.mli ocurl-18156-8bf202.txt

Installed /home/babypi/.opam/default/lib/curl/curl.cmi ocamlfind: curl.a: No such file or directory make: *** [Makefile:132: install] Error 2

ygrek commented 6 months ago

please show opam config --list and opam exec -- ocamlopt -config

svondras commented 6 months ago

babypi@raspberrypi:~ $ opam config list

<><> Global opam variables ><><><><><><><><><><><><><><><><><><><><><><><><><><> arch arm64 # Inferred from system exe # Suffix needed for executable filenames (Windows) jobs 3 # The number of parallel jobs set up in opam configuration make make # The 'make' command to use opam-version 2.1.2 # The currently running opam version os linux # Inferred from system os-distribution raspbian # Inferred from system os-family debian # Inferred from system os-version 12 # Inferred from system root /home/babypi/.opam # The current opam root directory switch default # The identifier of the current switch sys-ocaml-arch arm # Target architecture of the OCaml compiler present on your system sys-ocaml-cc cc # Host C Compiler type of the OCaml compiler present on your system sys-ocaml-libc libc # Host C Runtime Library type of the OCaml compiler present on your system sys-ocaml-version 4.13.1 # OCaml version present on your system independently of opam, if any

<><> Configuration variables from the current switch ><><><><><><><><><><><><><> prefix /home/babypi/.opam/default lib /home/babypi/.opam/default/lib bin /home/babypi/.opam/default/bin sbin /home/babypi/.opam/default/sbin share /home/babypi/.opam/default/share doc /home/babypi/.opam/default/doc etc /home/babypi/.opam/default/etc man /home/babypi/.opam/default/man toplevel /home/babypi/.opam/default/lib/toplevel stublibs /home/babypi/.opam/default/lib/stublibs user babypi group babypi

<><> Package variables ('opam var --package PKG' to show) <><><><><><><><><><><> PKG:name # Name of the package PKG:version # Version of the package PKG:depends # Resolved direct dependencies of the package PKG:installed # Whether the package is installed PKG:enable # Takes the value "enable" or "disable" depending on whether the package is installed PKG:pinned # Whether the package is pinned PKG:bin # Binary directory for this package PKG:sbin # System binary directory for this package PKG:lib # Library directory for this package PKG:man # Man directory for this package PKG:doc # Doc directory for this package PKG:share # Share directory for this package PKG:etc # Etc directory for this package PKG:build # Directory where the package was built PKG:hash # Hash of the package archive PKG:dev # True if this is a development package PKG:build-id # A hash identifying the precise package version with all its dependencies PKG:opamfile # Path of the curent opam file

babypi@raspberrypi:~ $ opam exec -- ocamlopt -config version: 4.13.1 standard_library_default: /usr/lib/ocaml standard_library: /usr/lib/ocaml ccomp_type: cc c_compiler: arm-linux-gnueabihf-gcc ocamlc_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security ocamlc_cppflags: -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 ocamlopt_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security ocamlopt_cppflags: -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 bytecomp_c_compiler: arm-linux-gnueabihf-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 native_c_compiler: arm-linux-gnueabihf-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 bytecomp_c_libraries: -lm -lpthread native_c_libraries: -lm native_pack_linker: arm-linux-gnueabihf-ld -r -o ranlib: arm-linux-gnueabihf-ranlib architecture: arm model: armv6 int_size: 31 word_size: 32 system: linux_eabihf asm: arm-linux-gnueabihf-as asm_cfi_supported: true with_frame_pointers: false ext_exe: ext_obj: .o ext_asm: .s ext_lib: .a ext_dll: .so os_type: Unix default_executable_name: a.out systhread_supported: true host: arm-unknown-linux-gnueabihf target: arm-unknown-linux-gnueabihf flambda: false safe_string: true default_safe_string: true flat_float_array: true function_sections: false afl_instrument: false windows_unicode: false supports_shared_libraries: true exec_magic_number: Caml1999X030 cmi_magic_number: Caml1999I030 cmo_magic_number: Caml1999O030 cma_magic_number: Caml1999A030 cmx_magic_number: Caml1999Y030 cmxa_magic_number: Caml1999Z030 ast_impl_magic_number: Caml1999M030 ast_intf_magic_number: Caml1999N030 cmxs_magic_number: Caml1999D030 cmt_magic_number: Caml1999T030 linear_magic_number: Caml1999L030

ygrek commented 6 months ago

Hm, doesn't support my guess. I will need full build logs. Please do cd /tmp; opam source ocurl; cd ocurl-0.9.2; ./configure; make; ls -hlA; make install and share here all the output

svondras commented 6 months ago

babypi@raspberrypi:~ $ cd /tmp babypi@raspberrypi:/tmp $ opam source ocurl Successfully extracted to /tmp/ocurl.0.9.2 babypi@raspberrypi:/tmp $ cd ocurl-0.9.2 bash: cd: ocurl-0.9.2: No such file or directory babypi@raspberrypi:/tmp $ ls dbus-A9pFcJJe05 systemd-private-efb369a2e2cf4e779172a1d2ad51a10c-ModemManager.service-KtE2Zv ocurl.0.9.2 systemd-private-efb369a2e2cf4e779172a1d2ad51a10c-systemd-logind.service-WpvQwr ssh-XXXXXXpGXAey systemd-private-efb369a2e2cf4e779172a1d2ad51a10c-systemd-timesyncd.service-sSU3b6 systemd-private-efb369a2e2cf4e779172a1d2ad51a10c-bluetooth.service-au0w6P Temp-a784f553-f6da-4a72-bb59-9abfa883a851 babypi@raspberrypi:/tmp $ cd ocurl.0.9.2/ babypi@raspberrypi:/tmp/ocurl.0.9.2 $ ./configure checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for libcurl cflags... -I/usr/include/arm-linux-gnueabihf checking for libcurl libs... -lcurl checking for libcurl version >= 7.28.0... 7.88.1 checking for a BSD-compatible install... /usr/bin/install -c checking for ocamlc... ocamlc OCaml version is 5.1.1 OCaml library path is /home/babypi/.opam/cs3110-2024sp/lib/ocaml checking for ocamlopt... ocamlopt versions differs from ocamlc; ocamlopt discarded. checking for ocamlc.opt... ocamlc.opt versions differs from ocamlc; ocamlc.opt discarded. checking for ocaml... ocaml checking for ocamldep... ocamldep checking for ocamlmktop... ocamlmktop checking for ocamlmklib... ocamlmklib checking for ocamldoc... ocamldoc checking for ocamlbuild... ocamlbuild checking for ocamlfind... ocamlfind checking for OCaml findlib package bytes... found checking for OCaml findlib package lwt.unix... found checking for OCaml findlib package lwt_ppx... not found checking for prefix by checking for ocamlc... /home/babypi/.opam/cs3110-2024sp/bin/ocamlc checking for bin-annot support... yes checking for ext_dll... .so checking for ext_lib... .a checking for ext_obj... .o checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking curl/curl.h usability... yes checking curl/curl.h presence... yes checking for curl/curl.h... yes checking whether CURLMOPT_TIMERFUNCTION is declared... yes checking whether CURLMOPT_TIMERDATA is declared... yes checking whether CURLMOPT_SOCKETFUNCTION is declared... yes checking whether CURLMOPT_SOCKETDATA is declared... yes checking whether CURLOPT_FILE is declared... yes checking whether CURLOPT_URL is declared... yes checking whether CURLOPT_PORT is declared... yes checking whether CURLOPT_PROXY is declared... yes checking whether CURLOPT_USERPWD is declared... yes checking whether CURLOPT_PROXYUSERPWD is declared... yes checking whether CURLOPT_RANGE is declared... yes checking whether CURLOPT_INFILE is declared... yes checking whether CURLOPT_ERRORBUFFER is declared... yes checking whether CURLOPT_WRITEFUNCTION is declared... yes checking whether CURLOPT_READFUNCTION is declared... yes checking whether CURLOPT_TIMEOUT is declared... yes checking whether CURLOPT_INFILESIZE is declared... yes checking whether CURLOPT_POSTFIELDS is declared... yes checking whether CURLOPT_REFERER is declared... yes checking whether CURLOPT_FTPPORT is declared... yes checking whether CURLOPT_USERAGENT is declared... yes checking whether CURLOPT_LOW_SPEED_LIMIT is declared... yes checking whether CURLOPT_LOW_SPEED_TIME is declared... yes checking whether CURLOPT_RESUME_FROM is declared... yes checking whether CURLOPT_COOKIE is declared... yes checking whether CURLOPT_HTTPHEADER is declared... yes checking whether CURLOPT_HTTPPOST is declared... yes checking whether CURLOPT_SSLCERT is declared... yes checking whether CURLOPT_SSLCERTPASSWD is declared... yes checking whether CURLOPT_SSLKEYPASSWD is declared... yes checking whether CURLOPT_CRLF is declared... yes checking whether CURLOPT_QUOTE is declared... yes checking whether CURLOPT_WRITEHEADER is declared... yes checking whether CURLOPT_COOKIEFILE is declared... yes checking whether CURLOPT_SSLVERSION is declared... yes checking whether CURLOPT_TIMECONDITION is declared... yes checking whether CURLOPT_TIMEVALUE is declared... yes checking whether CURLOPT_CUSTOMREQUEST is declared... yes checking whether CURLOPT_POSTQUOTE is declared... yes checking whether CURLOPT_WRITEINFO is declared... yes checking whether CURLOPT_VERBOSE is declared... yes checking whether CURLOPT_HEADER is declared... yes checking whether CURLOPT_NOPROGRESS is declared... yes checking whether CURLOPT_NOBODY is declared... yes checking whether CURLOPT_FAILONERROR is declared... yes checking whether CURLOPT_UPLOAD is declared... yes checking whether CURLOPT_POST is declared... yes checking whether CURLOPT_FTPLISTONLY is declared... yes checking whether CURLOPT_FTPAPPEND is declared... yes checking whether CURLOPT_NETRC is declared... yes checking whether CURLOPT_FOLLOWLOCATION is declared... yes checking whether CURLOPT_TRANSFERTEXT is declared... yes checking whether CURLOPT_PUT is declared... yes checking whether CURLOPT_PROGRESSFUNCTION is declared... yes checking whether CURLOPT_XFERINFOFUNCTION is declared... yes checking whether CURLOPT_PROGRESSDATA is declared... yes checking whether CURLOPT_AUTOREFERER is declared... yes checking whether CURLOPT_PROXYPORT is declared... yes checking whether CURLOPT_POSTFIELDSIZE is declared... yes checking whether CURLOPT_HTTPPROXYTUNNEL is declared... yes checking whether CURLOPT_INTERFACE is declared... yes checking whether CURLOPT_KRB4LEVEL is declared... yes checking whether CURLOPT_SSL_VERIFYPEER is declared... yes checking whether CURLOPT_CAINFO is declared... yes checking whether CURLOPT_MAXREDIRS is declared... yes checking whether CURLOPT_FILETIME is declared... yes checking whether CURLOPT_TELNETOPTIONS is declared... yes checking whether CURLOPT_MAXCONNECTS is declared... yes checking whether CURLOPT_CLOSEPOLICY is declared... yes checking whether CURLOPT_FRESH_CONNECT is declared... yes checking whether CURLOPT_FORBID_REUSE is declared... yes checking whether CURLOPT_RANDOM_FILE is declared... yes checking whether CURLOPT_EGDSOCKET is declared... yes checking whether CURLOPT_CONNECTTIMEOUT is declared... yes checking whether CURLOPT_HEADERFUNCTION is declared... yes checking whether CURLOPT_HTTPGET is declared... yes checking whether CURLOPT_SSL_VERIFYHOST is declared... yes checking whether CURLOPT_COOKIEJAR is declared... yes checking whether CURLOPT_SSL_CIPHER_LIST is declared... yes checking whether CURLOPT_HTTP_VERSION is declared... yes checking whether CURLOPT_FTP_USE_EPSV is declared... yes checking whether CURLOPT_SSLCERTTYPE is declared... yes checking whether CURLOPT_SSLKEY is declared... yes checking whether CURLOPT_SSLKEYTYPE is declared... yes checking whether CURLOPT_SSLENGINE is declared... yes checking whether CURLOPT_SSLENGINE_DEFAULT is declared... yes checking whether CURLOPT_DNS_USE_GLOBAL_CACHE is declared... yes checking whether CURLOPT_DNS_CACHE_TIMEOUT is declared... yes checking whether CURLOPT_PREQUOTE is declared... yes checking whether CURLOPT_DEBUGFUNCTION is declared... yes checking whether CURLOPT_DEBUGDATA is declared... yes checking whether CURLOPT_COOKIESESSION is declared... yes checking whether CURLOPT_CAPATH is declared... yes checking whether CURLOPT_BUFFERSIZE is declared... yes checking whether CURLOPT_NOSIGNAL is declared... yes checking whether CURLOPT_SHARE is declared... yes checking whether CURLOPT_PROXYTYPE is declared... yes checking whether CURLOPT_ENCODING is declared... yes checking whether CURLOPT_HTTP200ALIASES is declared... yes checking whether CURLOPT_UNRESTRICTED_AUTH is declared... yes checking whether CURLOPT_FTP_USE_EPRT is declared... yes checking whether CURLOPT_HTTPAUTH is declared... yes checking whether CURLOPT_FTP_CREATE_MISSING_DIRS is declared... yes checking whether CURLOPT_PROXYAUTH is declared... yes checking whether CURLOPT_FTP_RESPONSE_TIMEOUT is declared... yes checking whether CURLOPT_IPRESOLVE is declared... yes checking whether CURLOPT_MAXFILESIZE is declared... yes checking whether CURLOPT_INFILESIZE_LARGE is declared... yes checking whether CURLOPT_RESUME_FROM_LARGE is declared... yes checking whether CURLOPT_MAXFILESIZE_LARGE is declared... yes checking whether CURLOPT_NETRC_FILE is declared... yes checking whether CURLOPT_FTP_SSL is declared... yes checking whether CURLOPT_POSTFIELDSIZE_LARGE is declared... yes checking whether CURLOPT_TCP_NODELAY is declared... yes checking whether CURLOPT_FTPSSLAUTH is declared... yes checking whether CURLOPT_IOCTLFUNCTION is declared... yes checking whether CURLOPT_FTP_ACCOUNT is declared... yes checking whether CURLOPT_COOKIELIST is declared... yes checking whether CURLOPT_IGNORE_CONTENT_LENGTH is declared... yes checking whether CURLOPT_FTP_SKIP_PASV_IP is declared... yes checking whether CURLOPT_FTP_FILEMETHOD is declared... yes checking whether CURLOPT_LOCALPORT is declared... yes checking whether CURLOPT_LOCALPORTRANGE is declared... yes checking whether CURLOPT_CONNECT_ONLY is declared... yes checking whether CURLOPT_MAX_SEND_SPEED_LARGE is declared... yes checking whether CURLOPT_MAX_RECV_SPEED_LARGE is declared... yes checking whether CURLOPT_FTP_ALTERNATIVE_TO_USER is declared... yes checking whether CURLOPT_SSL_SESSIONID_CACHE is declared... yes checking whether CURLOPT_SSH_AUTH_TYPES is declared... yes checking whether CURLOPT_SSH_PUBLIC_KEYFILE is declared... yes checking whether CURLOPT_SSH_PRIVATE_KEYFILE is declared... yes checking whether CURLOPT_FTP_SSL_CCC is declared... yes checking whether CURLOPT_TIMEOUT_MS is declared... yes checking whether CURLOPT_CONNECTTIMEOUT_MS is declared... yes checking whether CURLOPT_HTTP_TRANSFER_DECODING is declared... yes checking whether CURLOPT_HTTP_CONTENT_DECODING is declared... yes checking whether CURLOPT_NEW_FILE_PERMS is declared... yes checking whether CURLOPT_NEW_DIRECTORY_PERMS is declared... yes checking whether CURLOPT_POST301 is declared... yes checking whether CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 is declared... yes checking whether CURLOPT_COPYPOSTFIELDS is declared... yes checking whether CURLOPT_PROXY_TRANSFER_MODE is declared... yes checking whether CURLOPT_SEEKFUNCTION is declared... yes checking whether CURLOPT_PROTOCOLS is declared... yes checking whether CURLOPT_REDIR_PROTOCOLS is declared... yes checking whether CURLOPT_RESOLVE is declared... yes checking whether CURLOPT_DNS_SERVERS is declared... yes checking whether CURLOPT_MAIL_FROM is declared... yes checking whether CURLOPT_MAIL_RCPT is declared... yes checking whether CURLOPT_PIPEWAIT is declared... yes checking whether CURLOPT_CERTINFO is declared... yes checking whether CURLOPT_USERNAME is declared... yes checking whether CURLOPT_PASSWORD is declared... yes checking whether CURLOPT_LOGIN_OPTIONS is declared... yes checking whether CURLOPT_CONNECT_TO is declared... yes checking whether CURLOPT_POSTREDIR is declared... yes checking whether CURLOPT_MIMEPOST is declared... yes checking whether CURLOPT_BUFFERSIZE is declared... (cached) yes checking whether CURLOPT_DOH_URL is declared... yes checking whether CURLOPT_TCP_FASTOPEN is declared... yes checking whether CURLINFO_EFFECTIVE_URL is declared... yes checking whether CURLINFO_RESPONSE_CODE is declared... yes checking whether CURLINFO_TOTAL_TIME is declared... yes checking whether CURLINFO_NAMELOOKUP_TIME is declared... yes checking whether CURLINFO_CONNECT_TIME is declared... yes checking whether CURLINFO_PRETRANSFER_TIME is declared... yes checking whether CURLINFO_SIZE_UPLOAD is declared... yes checking whether CURLINFO_SIZE_DOWNLOAD is declared... yes checking whether CURLINFO_SPEED_DOWNLOAD is declared... yes checking whether CURLINFO_SPEED_UPLOAD is declared... yes checking whether CURLINFO_HEADER_SIZE is declared... yes checking whether CURLINFO_REQUEST_SIZE is declared... yes checking whether CURLINFO_SSL_VERIFYRESULT is declared... yes checking whether CURLINFO_FILETIME is declared... yes checking whether CURLINFO_CONTENT_LENGTH_DOWNLOAD is declared... yes checking whether CURLINFO_CONTENT_LENGTH_UPLOAD is declared... yes checking whether CURLINFO_STARTTRANSFER_TIME is declared... yes checking whether CURLINFO_CONTENT_TYPE is declared... yes checking whether CURLINFO_REDIRECT_TIME is declared... yes checking whether CURLINFO_REDIRECT_COUNT is declared... yes checking whether CURLINFO_HTTP_CONNECTCODE is declared... yes checking whether CURLINFO_HTTPAUTH_AVAIL is declared... yes checking whether CURLINFO_PROXYAUTH_AVAIL is declared... yes checking whether CURLINFO_OS_ERRNO is declared... yes checking whether CURLINFO_NUM_CONNECTS is declared... yes checking whether CURLINFO_SSL_ENGINES is declared... yes checking whether CURLINFO_COOKIELIST is declared... yes checking whether CURLINFO_LASTSOCKET is declared... yes checking whether CURLINFO_ACTIVESOCKET is declared... yes checking whether CURLINFO_FTP_ENTRY_PATH is declared... yes checking whether CURLINFO_REDIRECT_URL is declared... yes checking whether CURLINFO_PRIMARY_IP is declared... yes checking whether CURLINFO_LOCAL_IP is declared... yes checking whether CURLINFO_LOCAL_PORT is declared... yes checking whether CURLINFO_CONDITION_UNMET is declared... yes checking whether CURLINFO_CERTINFO is declared... yes checking whether CURLINFO_HTTP_VERSION is declared... yes checking whether CURLE_UNSUPPORTED_PROTOCOL is declared... yes checking whether CURLE_FAILED_INIT is declared... yes checking whether CURLE_URL_MALFORMAT is declared... yes checking whether CURLE_URL_MALFORMAT_USER is declared... yes checking whether CURLE_COULDNT_RESOLVE_PROXY is declared... yes checking whether CURLE_COULDNT_RESOLVE_HOST is declared... yes checking whether CURLE_COULDNT_CONNECT is declared... yes checking whether CURLE_FTP_WEIRD_SERVER_REPLY is declared... yes checking whether CURLE_FTP_ACCESS_DENIED is declared... yes checking whether CURLE_FTP_USER_PASSWORD_INCORRECT is declared... yes checking whether CURLE_FTP_WEIRD_PASS_REPLY is declared... yes checking whether CURLE_FTP_WEIRD_USER_REPLY is declared... yes checking whether CURLE_FTP_WEIRD_PASV_REPLY is declared... yes checking whether CURLE_FTP_WEIRD_227_FORMAT is declared... yes checking whether CURLE_FTP_CANT_GET_HOST is declared... yes checking whether CURLE_FTP_CANT_RECONNECT is declared... yes checking whether CURLE_FTP_COULDNT_SET_BINARY is declared... yes checking whether CURLE_PARTIAL_FILE is declared... yes checking whether CURLE_FTP_COULDNT_RETR_FILE is declared... yes checking whether CURLE_FTP_WRITE_ERROR is declared... yes checking whether CURLE_FTP_QUOTE_ERROR is declared... yes checking whether CURLE_HTTP_RETURNED_ERROR is declared... yes checking whether CURLE_WRITE_ERROR is declared... yes checking whether CURLE_MALFORMAT_USER is declared... yes checking whether CURLE_FTP_COULDNT_STOR_FILE is declared... yes checking whether CURLE_READ_ERROR is declared... yes checking whether CURLE_OUT_OF_MEMORY is declared... yes checking whether CURLE_OPERATION_TIMEOUTED is declared... yes checking whether CURLE_FTP_COULDNT_SET_ASCII is declared... yes checking whether CURLE_FTP_PORT_FAILED is declared... yes checking whether CURLE_FTP_COULDNT_USE_REST is declared... yes checking whether CURLE_FTP_COULDNT_GET_SIZE is declared... yes checking whether CURLE_HTTP_RANGE_ERROR is declared... yes checking whether CURLE_HTTP_POST_ERROR is declared... yes checking whether CURLE_SSL_CONNECT_ERROR is declared... yes checking whether CURLE_BAD_DOWNLOAD_RESUME is declared... yes checking whether CURLE_FILE_COULDNT_READ_FILE is declared... yes checking whether CURLE_LDAP_CANNOT_BIND is declared... yes checking whether CURLE_LDAP_SEARCH_FAILED is declared... yes checking whether CURLE_LIBRARY_NOT_FOUND is declared... yes checking whether CURLE_FUNCTION_NOT_FOUND is declared... yes checking whether CURLE_ABORTED_BY_CALLBACK is declared... yes checking whether CURLE_BAD_FUNCTION_ARGUMENT is declared... yes checking whether CURLE_BAD_CALLING_ORDER is declared... yes checking whether CURLE_INTERFACE_FAILED is declared... yes checking whether CURLE_BAD_PASSWORD_ENTERED is declared... yes checking whether CURLE_TOO_MANY_REDIRECTS is declared... yes checking whether CURLE_UNKNOWN_TELNET_OPTION is declared... yes checking whether CURLE_TELNET_OPTION_SYNTAX is declared... yes checking whether CURLE_SSL_PEER_CERTIFICATE is declared... yes checking whether CURLE_GOT_NOTHING is declared... yes checking whether CURLE_SSL_ENGINE_NOTFOUND is declared... yes checking whether CURLE_SSL_ENGINE_SETFAILED is declared... yes checking whether CURLE_SEND_ERROR is declared... yes checking whether CURLE_RECV_ERROR is declared... yes checking whether CURLE_SHARE_IN_USE is declared... yes checking whether CURLE_SSL_CERTPROBLEM is declared... yes checking whether CURLE_SSL_CIPHER is declared... yes checking whether CURLE_SSL_CACERT is declared... yes checking whether CURLE_BAD_CONTENT_ENCODING is declared... yes checking whether CURLE_LDAP_INVALID_URL is declared... yes checking whether CURLE_FILESIZE_EXCEEDED is declared... yes checking whether CURLE_FTP_SSL_FAILED is declared... yes checking whether CURLE_SEND_FAIL_REWIND is declared... yes checking whether CURLE_SSL_ENGINE_INITFAILED is declared... yes checking whether CURLE_LOGIN_DENIED is declared... yes checking whether CURLE_TFTP_NOTFOUND is declared... yes checking whether CURLE_TFTP_PERM is declared... yes checking whether CURLE_REMOTE_DISK_FULL is declared... yes checking whether CURLE_TFTP_ILLEGAL is declared... yes checking whether CURLE_TFTP_UNKNOWNID is declared... yes checking whether CURLE_REMOTE_FILE_EXISTS is declared... yes checking whether CURLE_TFTP_NOSUCHUSER is declared... yes checking whether CURLE_CONV_FAILED is declared... yes checking whether CURLE_CONV_REQD is declared... yes checking whether CURLE_SSL_CACERT_BADFILE is declared... yes checking whether CURLE_REMOTE_FILE_NOT_FOUND is declared... yes checking whether CURLE_SSH is declared... yes checking whether CURLE_SSL_SHUTDOWN_FAILED is declared... yes checking whether CURLE_AGAIN is declared... yes checking whether CURLMOPT_MAXCONNECTS is declared... yes checking whether CURLMOPT_PIPELINING is declared... yes checking whether CURLMOPT_MAX_PIPELINE_LENGTH is declared... yes checking whether CURLMOPT_MAX_HOST_CONNECTIONS is declared... yes checking whether CURLMOPT_MAX_TOTAL_CONNECTIONS is declared... yes checking whether CURL_SSLVERSION_TLSv1_0 is declared... yes checking whether CURL_SSLVERSION_TLSv1_1 is declared... yes checking whether CURL_SSLVERSION_TLSv1_2 is declared... yes checking whether CURL_SSLVERSION_TLSv1_3 is declared... yes checking whether CURL_HTTP_VERSION_2 is declared... yes checking whether CURL_HTTP_VERSION_2_0 is declared... yes checking whether CURL_HTTP_VERSION_2TLS is declared... yes checking whether CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE is declared... yes checking whether CURL_HTTP_VERSION_3 is declared... yes checking whether CURLSSLBACKEND_NONE is declared... yes checking whether CURLSSLBACKEND_OPENSSL is declared... yes checking whether CURLSSLBACKEND_GNUTLS is declared... yes checking whether CURLSSLBACKEND_NSS is declared... yes checking whether CURLSSLBACKEND_GSKIT is declared... yes checking whether CURLSSLBACKEND_WOLFSSL is declared... yes checking whether CURLSSLBACKEND_SCHANNEL is declared... yes checking whether CURLSSLBACKEND_SECURETRANSPORT is declared... yes checking whether CURLSSLBACKEND_MBEDTLS is declared... yes checking whether CURLSSLBACKEND_MESALINK is declared... yes checking whether CURLSSLBACKEND_BEARSSL is declared... yes checking whether CURLOPT_SSL_OPTIONS is declared... yes checking whether CURL_VERSION_TLSAUTH_SRP is declared... yes checking whether CURL_VERSION_NTLM_WB is declared... yes checking whether curl_multi_poll is declared... yes configure: creating ./config.status config.status: creating Makefile config.status: creating examples/Makefile config.status: creating config.h babypi@raspberrypi:/tmp/ocurl.0.9.2 $ make make[1]: Entering directory '/tmp/ocurl.0.9.2' make[1]: Leaving directory '/tmp/ocurl.0.9.2' make[1]: Entering directory '/tmp/ocurl.0.9.2' ocamlc -c -g -bin-annot curl.mli -o curl.cmi File "none", line 1: Alert ocaml_deprecated_auto_include: OCaml's lib directory layout changed in 5.0. The unix subdirectory has been automatically added to the search path, but you should add -I +unix to the command-line to silence this alert (e.g. by adding unix to the list of libraries in your dune file, or adding use_unix to your _tags file for ocamlbuild, or using -package unix for ocamlfind). ocamlc -c -g -bin-annot curl.ml -o curl.cmo File "none", line 1: Alert ocaml_deprecated_auto_include: OCaml's lib directory layout changed in 5.0. The unix subdirectory has been automatically added to the search path, but you should add -I +unix to the command-line to silence this alert (e.g. by adding unix to the list of libraries in your dune file, or adding use_unix to your _tags file for ocamlbuild, or using -package unix for ocamlfind). ocamlc -c -ccopt "-g -O2 -I/usr/include/arm-linux-gnueabihf -DHAVE_CONFIG_H -Wall -Wundef" curl-helper.c curl-helper.c: In function ‘removeConnection’: curl-helper.c:727:9: warning: ‘curl_formfree’ is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations] 727 | curl_formfree(connection->httpPostFirst); | ^~~~~ In file included from curl-helper.c:23: /usr/include/arm-linux-gnueabihf/curl/curl.h:2611:1: note: declared here 2611 | curl_formfree(struct curl_httppost form); | ^~~~~ curl-helper.c: At top level: curl-helper.c:1316:3: warning: ‘CURLSSLBACKEND_MESALINK’ is deprecated: since 7.82.0. [-Wdeprecated-declarations] 1316 | CURLSSLBACKEND_MESALINK, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:170:3: note: declared here 170 | CURLSSLBACKEND_MESALINK CURL_DEPRECATED(7.82.0, "") = 12, | ^~~~~~~ In file included from curl-helper.c:26: curl-helper.c: In function ‘handle_PROGRESSFUNCTION’: /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_PROGRESSFUNCTION’ is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations] 302 | struct camlroots_block caml_roots##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1549:5: note: in expansion of macro ‘CAMLparam1’ 1549 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:1559:31: note: in expansion of macro ‘SETOPTFUNCTION’ 1559 | #define SETOPT_FUNCTION(name) SETOPTFUNCTION(name,FUNCTION) | ^~~~ curl-helper.c:1567:1: note: in expansion of macro ‘SETOPT_FUNCTION’ 1567 | SETOPT_FUNCTION( PROGRESS) | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1295:3: note: declared here 1295 | CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56, | ^~~~~ curl-helper.c: In function ‘handle_IOCTLFUNCTION’: /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_IOCTLFUNCTION’ is deprecated: since 7.18.0. Use CURLOPT_SEEKFUNCTION [-Wdeprecated-declarations] 302 | struct camlroots_block camlroots_##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1549:5: note: in expansion of macro ‘CAMLparam1’ 1549 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:1559:31: note: in expansion of macro ‘SETOPTFUNCTION’ 1559 | #define SETOPT_FUNCTION(name) SETOPTFUNCTION(name,FUNCTION) | ^~~~ curl-helper.c:1577:1: note: in expansion of macro ‘SETOPT_FUNCTION’ 1577 | SETOPT_FUNCTION( IOCTL) | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1580:3: note: declared here 1580 | CURLOPTDEPRECATED(CURLOPT_IOCTLFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 130, | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_IOCTLDATA’ is deprecated: since 7.18.0. Use CURLOPT_SEEKDATA [-Wdeprecated-declarations] 302 | struct camlroots_block camlroots_##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1549:5: note: in expansion of macro ‘CAMLparam1’ 1549 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:1559:31: note: in expansion of macro ‘SETOPTFUNCTION’ 1559 | #define SETOPT_FUNCTION(name) SETOPTFUNCTION(name,FUNCTION) | ^~~~ curl-helper.c:1577:1: note: in expansion of macro ‘SETOPT_FUNCTION’ 1577 | SETOPT_FUNCTION( IOCTL) | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1582:3: note: declared here 1582 | CURLOPTDEPRECATED(CURLOPT_IOCTLDATA, CURLOPTTYPE_CBPOINT, 131, | ^~~~~ curl-helper.c: In function ‘handle_PUT’: /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_PUT’ is deprecated: since 7.12.1. Use CURLOPT_UPLOAD [-Wdeprecated-declarations] 302 | struct caml__roots_block camlroots_##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1643:5: note: in expansion of macro ‘CAMLparam1’ 1643 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:1654:32: note: in expansion of macro ‘SETOPTVAL’ 1654 | #define SETOPT_VAL(name, conv) SETOPTVAL(handle##name, CURLOPT##name, conv) | ^~~ curl-helper.c:1655:27: note: in expansion of macro ‘SETOPT_VAL’ 1655 | #define SETOPT_BOOL(name) SETOPT_VAL(name, Bool_val) | ^~~~~~ curl-helper.c:1924:1: note: in expansion of macro ‘SETOPT_BOOL’ 1924 | SETOPT_BOOL( PUT) | ^~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1286:3: note: declared here 1286 | CURLOPTDEPRECATED(CURLOPT_PUT, CURLOPTTYPE_LONG, 54, | ^~~~~ curl-helper.c: In function ‘handle_HTTPPOST’: curl-helper.c:2043:9: warning: ‘curl_formfree’ is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations] 2043 | curl_formfree(conn->httpPostFirst); | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2611:1: note: declared here 2611 | curl_formfree(struct curl_httppost form); | ^~~~~ curl-helper.c:2064:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2064 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2066:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2066 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2068:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2068 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2070:30: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2070 | CURLFORM_COPYCONTENTS, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2503:3: note: declared here 2503 | CURLFORM_COPYCONTENTS CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~ curl-helper.c:2072:30: warning: ‘CURLFORM_CONTENTSLENGTH’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2072 | CURLFORM_CONTENTSLENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2505:3: note: declared here 2505 | CURLFORM_CONTENTSLENGTH CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~~~ curl-helper.c:2080:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2080 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2082:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2082 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2084:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2084 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2086:30: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2086 | CURLFORM_COPYCONTENTS, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2503:3: note: declared here 2503 | CURLFORM_COPYCONTENTS CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~ curl-helper.c:2088:30: warning: ‘CURLFORM_CONTENTSLENGTH’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2088 | CURLFORM_CONTENTSLENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2505:3: note: declared here 2505 | CURLFORM_CONTENTSLENGTH CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~~~ curl-helper.c:2090:30: warning: ‘CURLFORM_CONTENTTYPE’ is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations] 2090 | CURLFORM_CONTENTTYPE, | ^~~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2515:3: note: declared here 2515 | CURLFORM_CONTENTTYPE CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"), | ^~~~~~~~ curl-helper.c:2109:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2109 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2111:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2111 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2113:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2113 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2115:30: warning: ‘CURLFORM_FILECONTENT’ is deprecated: since 7.56.0. Use curl_mime_data_cb() [-Wdeprecated-declarations] 2115 | CURLFORM_FILECONTENT, | ^~~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2506:3: note: declared here 2506 | CURLFORM_FILECONTENT CURL_DEPRECATED(7.56.0, "Use curl_mime_data_cb()"), | ^~~~~~~~ curl-helper.c:2123:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2123 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2125:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2125 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2127:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2127 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2129:30: warning: ‘CURLFORM_FILECONTENT’ is deprecated: since 7.56.0. Use curl_mime_data_cb() [-Wdeprecated-declarations] 2129 | CURLFORM_FILECONTENT, | ^~~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2506:3: note: declared here 2506 | CURLFORM_FILECONTENT CURL_DEPRECATED(7.56.0, "Use curl_mime_data_cb()"), | ^~~~~~~~ curl-helper.c:2131:30: warning: ‘CURLFORM_CONTENTTYPE’ is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations] 2131 | CURLFORM_CONTENTTYPE, | ^~~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2515:3: note: declared here 2515 | CURLFORM_CONTENTTYPE CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"), | ^~~~~~~~ curl-helper.c:2150:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2150 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2152:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2152 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2154:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2154 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2156:30: warning: ‘CURLFORM_FILE’ is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations] 2156 | CURLFORM_FILE, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2509:3: note: declared here 2509 | CURLFORM_FILE CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"), | ^~~~~ curl-helper.c:2164:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2164 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2166:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2166 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2168:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2168 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2170:30: warning: ‘CURLFORM_FILE’ is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations] 2170 | CURLFORM_FILE, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2509:3: note: declared here 2509 | CURLFORM_FILE CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"), | ^~~~~ curl-helper.c:2172:30: warning: ‘CURLFORM_CONTENTTYPE’ is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations] 2172 | CURLFORM_CONTENTTYPE, | ^~~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2515:3: note: declared here 2515 | CURLFORM_CONTENTTYPE CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"), | ^~~~~~~~ curl-helper.c:2193:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2193 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2195:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2195 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2197:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2197 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2199:30: warning: ‘CURLFORM_BUFFER’ is deprecated: since 7.56.0. Use curl_mime_filename() [-Wdeprecated-declarations] 2199 | CURLFORM_BUFFER, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2511:3: note: declared here 2511 | CURLFORM_BUFFER CURL_DEPRECATED(7.56.0, "Use curl_mime_filename()"), | ^~~~~~~ curl-helper.c:2201:30: warning: ‘CURLFORM_BUFFERPTR’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2201 | CURLFORM_BUFFERPTR, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2512:3: note: declared here 2512 | CURLFORM_BUFFERPTR CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~~ curl-helper.c:2203:30: warning: ‘CURLFORM_BUFFERLENGTH’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2203 | CURLFORM_BUFFERLENGTH, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2513:3: note: declared here 2513 | CURLFORM_BUFFERLENGTH CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~ curl-helper.c:2213:17: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations] 2213 | curl_formadd(&conn->httpPostFirst, | ^~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2575:1: note: declared here 2575 | curl_formadd(struct curl_httppost httppost, | ^~~~ curl-helper.c:2215:30: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations] 2215 | CURLFORM_COPYNAME, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2500:3: note: declared here 2500 | CURLFORM_COPYNAME CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"), | ^~~~~ curl-helper.c:2217:30: warning: ‘CURLFORM_NAMELENGTH’ is deprecated: since 7.56.0. [-Wdeprecated-declarations] 2217 | CURLFORM_NAMELENGTH, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2502:3: note: declared here 2502 | CURLFORM_NAMELENGTH CURL_DEPRECATED(7.56.0, ""), | ^~~~~~~ curl-helper.c:2219:30: warning: ‘CURLFORM_BUFFER’ is deprecated: since 7.56.0. Use curl_mime_filename() [-Wdeprecated-declarations] 2219 | CURLFORM_BUFFER, | ^~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2511:3: note: declared here 2511 | CURLFORM_BUFFER CURL_DEPRECATED(7.56.0, "Use curl_mime_filename()"), | ^~~~~~~ curl-helper.c:2221:30: warning: ‘CURLFORM_BUFFERPTR’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2221 | CURLFORM_BUFFERPTR, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2512:3: note: declared here 2512 | CURLFORM_BUFFERPTR CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~~ curl-helper.c:2223:30: warning: ‘CURLFORM_BUFFERLENGTH’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations] 2223 | CURLFORM_BUFFERLENGTH, | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2513:3: note: declared here 2513 | CURLFORM_BUFFERLENGTH CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"), | ^~~~~ curl-helper.c:2225:30: warning: ‘CURLFORM_CONTENTTYPE’ is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations] 2225 | CURLFORM_CONTENTTYPE, | ^~~~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2515:3: note: declared here 2515 | CURLFORM_CONTENTTYPE CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"), | ^~~~~~~~ curl-helper.c:2239:5: warning: ‘CURLOPT_HTTPPOST’ is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations] 2239 | result = curl_easy_setopt(conn->handle, | ^~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1195:3: note: declared here 1195 | CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24, | ^~~~~ curl-helper.c: In function ‘handle_RANDOM_FILE’: /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_RANDOM_FILE’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations] 302 | struct camlroots_block caml_roots##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1629:5: note: in expansion of macro ‘CAMLparam1’ 1629 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:2428:1: note: in expansion of macro ‘SETOPT_STRING’ 2428 | SETOPT_STRING( RANDOM_FILE) | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1364:3: note: declared here 1364 | CURLOPTDEPRECATED(CURLOPT_RANDOM_FILE, CURLOPTTYPE_STRINGPOINT, 76, | ^~~~~ curl-helper.c: In function ‘handle_EGDSOCKET’: /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_EGDSOCKET’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations] 302 | struct camlroots_block camlroots_##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1629:5: note: in expansion of macro ‘CAMLparam1’ 1629 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:2429:1: note: in expansion of macro ‘SETOPT_STRING’ 2429 | SETOPT_STRING( EGDSOCKET) | ^~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1368:3: note: declared here 1368 | CURLOPTDEPRECATED(CURLOPT_EGDSOCKET, CURLOPTTYPE_STRINGPOINT, 77, | ^~~~~ curl-helper.c: In function ‘handle_DNS_USE_GLOBAL_CACHE’: /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:302:10: warning: ‘CURLOPT_DNS_USE_GLOBAL_CACHE’ is deprecated: since 7.11.1. Use CURLOPT_SHARE [-Wdeprecated-declarations] 302 | struct camlroots_block caml_roots##x; \ | ^~~~~ /home/babypi/.opam/cs3110-2024sp/lib/ocaml/caml/memory.h:279:3: note: in expansion of macro ‘CAMLxparam1’ 279 | CAMLxparam1 (x) | ^~~ curl-helper.c:1643:5: note: in expansion of macro ‘CAMLparam1’ 1643 | CAMLparam1(option); \ | ^~~~~~ curl-helper.c:1654:32: note: in expansion of macro ‘SETOPTVAL’ 1654 | #define SETOPT_VAL(name, conv) SETOPTVAL(handle##name, CURLOPT##name, conv) | ^~~ curl-helper.c:1655:27: note: in expansion of macro ‘SETOPT_VAL’ 1655 | #define SETOPT_BOOL(name) SETOPT_VAL(name, Bool_val) | ^~~~~~ curl-helper.c:2539:1: note: in expansion of macro ‘SETOPT_BOOL’ 2539 | SETOPT_BOOL( DNS_USE_GLOBAL_CACHE) | ^~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1424:3: note: declared here 1424 | CURLOPTDEPRECATED(CURLOPT_DNS_USE_GLOBAL_CACHE, CURLOPTTYPE_LONG, 91, | ^~~~~ curl-helper.c: In function ‘handle_PROTOCOLS’: curl-helper.c:3193:3: warning: ‘CURLOPT_PROTOCOLS’ is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [-Wdeprecated-declarations] 3193 | handle_PROTOCOLSOPTION(CURLOPT_PROTOCOLS, conn, option); | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1749:3: note: declared here 1749 | CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181, | ^~~~~ curl-helper.c: In function ‘handle_REDIR_PROTOCOLS’: curl-helper.c:3200:3: warning: ‘CURLOPT_REDIR_PROTOCOLS’ is deprecated: since 7.85.0. Use CURLOPT_REDIR_PROTOCOLS_STR [-Wdeprecated-declarations] 3200 | handle_PROTOCOLSOPTION(CURLOPT_REDIR_PROTOCOLS, conn, option); | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:1755:3: note: declared here 1755 | CURLOPTDEPRECATED(CURLOPT_REDIR_PROTOCOLS, CURLOPTTYPE_LONG, 182, | ^~~~~ curl-helper.c: In function ‘caml_curl_easy_getinfo’: curl-helper.c:3927:9: warning: ‘CURLINFO_SIZE_UPLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SIZE_UPLOAD_T [-Wdeprecated-declarations] 3927 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2838:3: note: declared here 2838 | CURLINFO_SIZE_UPLOAD CURL_DEPRECATED(7.55.0, "Use CURLINFO_SIZE_UPLOAD_T") | ^~~~~~~~ curl-helper.c:3937:9: warning: ‘CURLINFO_SIZE_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SIZE_DOWNLOAD_T [-Wdeprecated-declarations] 3937 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2841:3: note: declared here 2841 | CURLINFO_SIZE_DOWNLOAD | ^~~~~~ curl-helper.c:3947:9: warning: ‘CURLINFO_SPEED_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SPEED_DOWNLOAD_T [-Wdeprecated-declarations] 3947 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2845:3: note: declared here 2845 | CURLINFO_SPEED_DOWNLOAD | ^~~~~~~ curl-helper.c:3957:9: warning: ‘CURLINFO_SPEED_UPLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SPEED_UPLOAD_T [-Wdeprecated-declarations] 3957 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2849:3: note: declared here 2849 | CURLINFO_SPEED_UPLOAD | ^~~~~ curl-helper.c:4010:9: warning: ‘CURLINFO_CONTENT_LENGTH_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations] 4010 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2858:3: note: declared here 2858 | CURLINFO_CONTENT_LENGTH_DOWNLOAD | ^~~~~~~~ curl-helper.c:4020:9: warning: ‘CURLINFO_CONTENT_LENGTH_UPLOAD’ is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_UPLOAD_T [-Wdeprecated-declarations] 4020 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2863:3: note: declared here 2863 | CURLINFO_CONTENT_LENGTH_UPLOAD | ^~~~~~~~~~ curl-helper.c:4147:9: warning: ‘CURLINFO_LASTSOCKET’ is deprecated: since 7.45.0. Use CURLINFO_ACTIVESOCKET [-Wdeprecated-declarations] 4147 | curlResult = curl_easy_getinfo(connection->handle, | ^~~~~~ /usr/include/arm-linux-gnueabihf/curl/curl.h:2880:3: note: declared here 2880 | CURLINFO_LASTSOCKET CURL_DEPRECATED(7.45.0, "Use CURLINFO_ACTIVESOCKET") | ^~~~~~~ curl-helper.c: In function ‘caml_curl_multi_socket_all’: curl-helper.c:4838:5: warning: ‘curl_multi_socket_all’ is deprecated: since 7.19.5. Use curl_multi_socket_action() [-Wdeprecated-declarations] 4838 | rc = curl_multi_socket_all(h, &still_running); | ^~ In file included from /usr/include/arm-linux-gnueabihf/curl/curl.h:3191: /usr/include/arm-linux-gnueabihf/curl/multi.h:330:1: note: declared here 330 | curl_multi_socket_all(CURLM multi_handle, int running_handles); | ^~~~~ ocamlmklib -oc curl-helper curl-helper.o -lcurl ocamlmklib -o curl curl.cmo -oc curl-helper -lcurl make[1]: 'libcurl-helper.a' is up to date. make[1]: 'dllcurl-helper.so' is up to date. ocamlfind c -package lwt -c -g -bin-annot curl_lwt.mli -o curl_lwt.cmi ocamlfind c -thread -package lwt.unix -c -g -bin-annot curl_lwt.ml -o curl_lwt.cmo make[1]: Leaving directory '/tmp/ocurl.0.9.2' babypi@raspberrypi:/tmp/ocurl.0.9.2 $ ls -hlA total 6.4M -rw-r--r-- 1 babypi babypi 5.8K Jan 7 2022 aclocal.m4 -rw-r--r-- 1 babypi babypi 362 Jan 7 2022 appveyor.yml -rw-r--r-- 1 babypi babypi 6.1K Jan 7 2022 CHANGES.txt -rw-r--r-- 1 babypi babypi 45K Jan 27 13:54 config.h -rw-r--r-- 1 babypi babypi 44K Jan 7 2022 config.h.in -rw-r--r-- 1 babypi babypi 36K Jan 7 2022 config.h.windows -rw-r--r-- 1 babypi babypi 107K Jan 27 13:54 config.log -rwxr-xr-x 1 babypi babypi 41K Jan 27 13:54 config.status -rwxr-xr-x 1 babypi babypi 269K Jan 7 2022 configure -rw-r--r-- 1 babypi babypi 9.8K Jan 7 2022 configure.ac -rw-r--r-- 1 babypi babypi 1.2K Jan 7 2022 COPYING -rw-r--r-- 1 babypi babypi 335K Jan 27 13:54 curl.cma -rw-r--r-- 1 babypi babypi 97K Jan 27 13:54 curl.cmi -rw-r--r-- 1 babypi babypi 335K Jan 27 13:54 curl.cmo -rw-r--r-- 1 babypi babypi 577K Jan 27 13:54 curl.cmt -rw-r--r-- 1 babypi babypi 410K Jan 27 13:54 curl.cmti -rw-r--r-- 1 babypi babypi 125K Jan 7 2022 curl-helper.c -rw-r--r-- 1 babypi babypi 339K Jan 27 13:54 curl-helper.o -rw-r--r-- 1 babypi babypi 621 Jan 27 13:54 curl_lwt.cmi -rw-r--r-- 1 babypi babypi 15K Jan 27 13:54 curl_lwt.cmo -rw-r--r-- 1 babypi babypi 31K Jan 27 13:54 curl_lwt.cmt -rw-r--r-- 1 babypi babypi 3.9K Jan 27 13:54 curl_lwt.cmti -rw-r--r-- 1 babypi babypi 2.5K Jan 7 2022 curl_lwt.ml -rw-r--r-- 1 babypi babypi 243 Jan 7 2022 curl_lwt.mli -rw-r--r-- 1 babypi babypi 47K Jan 7 2022 curl.ml -rw-r--r-- 1 babypi babypi 40K Jan 7 2022 curl.mli -rw-r--r-- 1 babypi babypi 191 Jan 27 13:54 .depend -rwxr-xr-x 1 babypi babypi 271K Jan 27 13:54 dllcurl-helper.so -rw-r--r-- 1 babypi babypi 3.0K Jan 7 2022 errors.ml drwxr-xr-x 2 babypi babypi 4.0K Jan 27 13:54 examples -rw-r--r-- 1 babypi babypi 35 Jan 7 2022 .gitattributes -rw-r--r-- 1 babypi babypi 384 Jan 7 2022 .gitignore -rwxr-xr-x 1 babypi babypi 6.2K Jan 7 2022 install-sh -rw-r--r-- 1 babypi babypi 340K Jan 27 13:54 libcurl-helper.a -rw-r--r-- 1 babypi babypi 3.9K Jan 27 13:54 Makefile -rw-r--r-- 1 babypi babypi 4.1K Jan 7 2022 Makefile.in -rw-r--r-- 1 babypi babypi 1.6K Jan 7 2022 Makefile.msvc -rw-r--r-- 1 babypi babypi 323 Jan 7 2022 META -rw-r--r-- 1 babypi babypi 932 Jan 7 2022 opam -rwxr-xr-x 1 babypi babypi 2.9M Jan 27 13:53 print_ext -rw-r--r-- 1 babypi babypi 384 Jan 27 13:53 print_ext.cmi -rw-r--r-- 1 babypi babypi 1.1K Jan 27 13:53 print_ext.cmo -rw-r--r-- 1 babypi babypi 227 Jan 7 2022 print_ext.ml -rw-r--r-- 1 babypi babypi 1.6K Jan 7 2022 README.md -rw-r--r-- 1 babypi babypi 388 Jan 7 2022 .travis.yml babypi@raspberrypi:/tmp/ocurl.0.9.2 $ make install ocamlfind install -patch-version 0.9.2 -ldconf ignore curl META curl.a curl.cmi curl.mli curl.cma libcurl-helper.a dllcurl-helper.so curl_lwt.cmo curl.cmt curl.cmti curl_lwt.cmi curl_lwt.mli curl_lwt.o curl_lwt.cmt curl_lwt.cmti Installed /home/babypi/.opam/cs3110-2024sp/lib/curl/curl_lwt.cmti Installed /home/babypi/.opam/cs3110-2024sp/lib/curl/curl_lwt.cmt ocamlfind: curl_lwt.o: No such file or directory make: *** [Makefile:132: install] Error 2 babypi@raspberrypi:/tmp/ocurl.0.9.2 $

ygrek commented 6 months ago

OCaml version is 5.1.1 versions differs from ocamlc; ocamlopt discarded.

So you have ocaml 4.13.1 with ocamlopt and ocaml 5.1.1 with ocamlc only, both in PATH. So there is apparently a bug in ocurl with bytecode only build/install that needs to be fixed. You can workaround it by either 1) using ocaml 4.13.1 (removing 5.1.1.) or 2) reinstall 5.1.1 with ocamlopt or 3) manually running the last ocamlfind command without curl_lwt.o and curl.a arguments

svondras commented 5 months ago

I went with option 1; I uninstalled everything, also deleting .opam directory in /home, and then using synaptic package manager reinstalled Ocaml 4.13.1. This worked to build OCurl successfully and therefore able to build liquidsoap. Thank you for all your assistance! but unfortunately liquidsoap throws segmentation fault when I try to run it. It looks like others have same issue ; apparently need to downgrade to previous version of ffmpeg, details here: https://forums.raspberrypi.com/viewtopic.php?t=358145