jeroen / curl

A Modern and Flexible Web Client for R
https://jeroen.r-universe.dev/curl
Other
216 stars 71 forks source link

An unknown option was passed in to libcurl #343

Open andresimi opened 1 month ago

andresimi commented 1 month ago

Hi guys I am havin a problem with blastula R package, with the smtp_send command. I am getting this error

library(blastula)
blastula::smtp_send(prepare_test_message(), 
                     to = "test@gmail.com", 
                     from = "test2@gmail.com", 
                     credentials = creds_file("gmail_creds"))
Error in handle_setopt(h, ...) : 
**An unknown option was passed in to libcurl**

Asked for help here and here with no success.

So i saw that they use curl on the backend. Then I tried this curl command, that showed the same error.

library(curl)

send_mail(mail_from = "test@gmail.com",
          mail_rcpt = "test@gmail.com",
          smtp_server = "smtps://smtp.gmail.com:465 ",
          message = "test")

I am using fedora 40, and curl seems runing ok on terminal.

Versions R 4.4.1 Fedora 40 Blastula 0.35 curl 8.6.0 libcurl 8.6.0

What could it be? Best!

jeroen commented 1 month ago

I cannot reproduce this, it works fine on my fedora-40.

You must have done something wrong with your installation of the curl R package. This error typically only appears if you have multiple versions of libcurl on your machine.

Did you by any change try to install libcurl from source on this machine? Or how did you install R/libcurl? Can you try reinstalling the curl package from source and show us the full install log?

install.packages("curl")
andresimi commented 1 month ago

Hi, thank you for the response. It is strange because I am getting this on two computers. And one of them was recently formated. Anyway, I removed the curl package and installed again. Still witth the same problem.

> install.packages("curl")
Instalando pacote em ‘/home/andresimi/R/x86_64-redhat-linux-gnu-library/4.4’
(como ‘lib’ não foi especificado)
tentando a URL 'https://cran.rstudio.com/src/contrib/curl_5.2.1.tar.gz'
Content type 'application/x-gzip' length 716695 bytes (699 KB)
==================================================
downloaded 699 KB

* installing *source* package ‘curl’ ...
** pacote ‘curl’ desempacotado com sucesso e somas MD5 verificadas
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
** libs
using C compiler: ‘gcc (GCC) 14.2.1 20240801 (Red Hat 14.2.1-1)’
rm -f curl.so callbacks.o curl.o download.o escape.o fetch.o findport.o form.o getdate.o handle.o ieproxy.o init.o interrupt.o multi.o nslookup.o options.o reflist.o split.o ssl.o typechecking.o utils.o version.o winidn.o writer.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c callbacks.c -o callbacks.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c curl.c -o curl.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c download.c -o download.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c escape.c -o escape.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c fetch.c -o fetch.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c findport.c -o findport.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c form.c -o form.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c getdate.c -o getdate.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c handle.c -o handle.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c ieproxy.c -o ieproxy.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c init.c -o init.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c interrupt.c -o interrupt.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c multi.c -o multi.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c nslookup.c -o nslookup.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c options.c -o options.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c reflist.c -o reflist.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c split.c -o split.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c ssl.c -o ssl.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c typechecking.c -o typechecking.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c utils.c -o utils.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c version.c -o version.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c winidn.c -o winidn.o
gcc -I"/usr/include/R" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c writer.c -o writer.o
gcc -shared -L/usr/lib64/R/lib -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o curl.so callbacks.o curl.o download.o escape.o fetch.o findport.o form.o getdate.o handle.o ieproxy.o init.o interrupt.o multi.o nslookup.o options.o reflist.o split.o ssl.o typechecking.o utils.o version.o winidn.o writer.o -lcurl -L/usr/lib64/R/lib -lR
installing to /home/andresimi/R/x86_64-redhat-linux-gnu-library/4.4/00LOCK-curl/00new/curl/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘curl’
    finding HTML links ... concluído
    curl                                    html  
    curl_download                           html  
    curl_echo                               html  
    curl_escape                             html  
    curl_fetch                              html  
    curl_options                            html  
    curl_upload                             html  
    file_writer                             html  
    handle                                  html  
    handle_cookies                          html  
    ie_proxy                                html  
    multi                                   html  
    multi_download                          html  
    multipart                               html  
    nslookup                                html  
    parse_date                              html  
    parse_headers                           html  
    send_mail                               html  
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (curl)

Os pacotes fonte baixados estão em
    ‘/tmp/RtmpYXAXco/downloaded_packages’
jeroen commented 1 month ago

What do you see for curl::curl_version() ?

andresimi commented 1 month ago

curl::curl_version() $version [1] "8.6.0"

$ssl_version [1] "OpenSSL/3.2.1"

$libz_version [1] "1.3.1.zlib-ng"

$libssh_version [1] NA

$libidn_version [1] "2.3.7"

$host [1] "x86_64-redhat-linux-gnu"

$protocols [1] "file" "ftp" "ftps" "http" "https"

$ipv6 [1] TRUE

$http2 [1] TRUE

$idn [1] TRUE

jeroen commented 1 month ago

Hmm that all seems correct. Very strange, I don't get this error of any F40 image that I tried. Does your system have any unusual customizations?

andresimi commented 1 month ago

Actually I don´t have any customization. I had this problem for a long in one computer, but not in the other. However once a made a fresh new install of fedora 40 Gnome edition on the other, the message appeared in the other too.

Do you think it is a problem with R packages or with the system itself? On terminal, curl seems to be working.

Captura de tela de 2024-08-14 08-26-33

jeroen commented 1 month ago

This would be a bug in Fedora but I don't think this is likely. There must be something you installed that is shipping a conflicting copy of libcurl.

Did you install R using the normal dnf install R-devel ?

andresimi commented 1 month ago

Yes. I have installed through dnf. Don´t know if this helps. This is the locate on the fresh install fedora.

andresimi@andredell:~$ locate libcurl.so
/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.8.0
/usr/lib64/libcurl.so
/usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/23.08/64a85d9703e16a360fb65aeb40382183be68836567e2a3a9455f70b2a26a568f/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/23.08/64a85d9703e16a360fb65aeb40382183be68836567e2a3a9455f70b2a26a568f/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/40/17d1efab802afa4f8732c0234a670aa210cf8e69a5329de88b7546c55c14f42e/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/40/17d1efab802afa4f8732c0234a670aa210cf8e69a5329de88b7546c55c14f42e/files/lib/x86_64-linux-gnu/libcurl.so.4.6.0
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/45/1ea41cf31e43ee920e88cc260f91baa74edbd8840bef430c57058c70f8114aa6/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/45/1ea41cf31e43ee920e88cc260f91baa74edbd8840bef430c57058c70f8114aa6/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/f51a65152834ae17e0fa0cd81fd4d563850779ccc94386d7abc85d940e51b5c7/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/f51a65152834ae17e0fa0cd81fd4d563850779ccc94386d7abc85d940e51b5c7/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-23.08/4d49c450514df9f8cfa5fe1a83b9e5cebe1fc2c9b958e8cabe4b1a23f4068d7c/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-23.08/4d49c450514df9f8cfa5fe1a83b9e5cebe1fc2c9b958e8cabe4b1a23f4068d7c/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0

[andresimi@andresimi lib]$ cat ~/.bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs
[andresimi@andresimi lib]$ ldd $(which curl)
    linux-vdso.so.1 (0x00007fe73e8ea000)
    libcurl.so.4 => /lib64/libcurl.so.4 (0x00007fe73e800000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fe73e60f000)
    libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007fe73e5e5000)
    libidn2.so.0 => /lib64/libidn2.so.0 (0x00007fe73e5c3000)
    libssl.so.3 => /lib64/libssl.so.3 (0x00007fe73e4ec000)
    libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007fe73e000000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fe73dfab000)
    libz.so.1 => /lib64/libz.so.1 (0x00007fe73e4c9000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fe73e8ec000)
    libunistring.so.5 => /lib64/libunistring.so.5 (0x00007fe73ddfe000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fe73dd36000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fe73e4b2000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fe73dd2f000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fe73dd1f000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fe73dd18000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fe73dd06000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fe73dcd9000)
    libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007fe73dc37000)

On the other I had installed conda once.

andresimi commented 1 month ago

Also, i tried to install the package throug dnf but without success.

sudo dnf install R-curl
jeroen commented 1 month ago

I have never used flatpack but it seems that it is installing conflicting versions of libcurl in your machine.

You may have to remove.packages("curl") to prevent your custom build from masking R-curl from dnf.

Can you show the output in R of:

library(curl)
system2('ldd', system.file('libs/curl.so', package='curl'))

FWIW you dont need flatpak or conda; the only thing you need on a vanilla RHEL/Fedora system is either dnf install curl-devel + install.packages('curl') or you can just do dnf install R-curl

andresimi commented 4 weeks ago

I though that flatpaks doesn't "brake the system", they were independent. Anyway I removed JASP and Jamovi but I still have those flatpaks files. I also removed Rcurl and curl from dnf. But I am still having the issue.

/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.8.0
/usr/lib64/libcurl.so
/usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/23.08/64a85d9703e16a360fb65aeb40382183be68836567e2a3a9455f70b2a26a568f/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/23.08/64a85d9703e16a360fb65aeb40382183be68836567e2a3a9455f70b2a26a568f/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/40/17d1efab802afa4f8732c0234a670aa210cf8e69a5329de88b7546c55c14f42e/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/40/17d1efab802afa4f8732c0234a670aa210cf8e69a5329de88b7546c55c14f42e/files/lib/x86_64-linux-gnu/libcurl.so.4.6.0
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/45/8cfcf19ef856011fd7e09d58389d1b3761a4b80beb6504516e010eae003494fd/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/45/8cfcf19ef856011fd7e09d58389d1b3761a4b80beb6504516e010eae003494fd/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/9137a2d4c8f90d206bd02adc971886c29429e8cef83394b2317c02a9263f9acd/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/9137a2d4c8f90d206bd02adc971886c29429e8cef83394b2317c02a9263f9acd/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-23.08/4d49c450514df9f8cfa5fe1a83b9e5cebe1fc2c9b958e8cabe4b1a23f4068d7c/files/lib/x86_64-linux-gnu/libcurl.so.4
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-23.08/4d49c450514df9f8cfa5fe1a83b9e5cebe1fc2c9b958e8cabe4b1a23f4068d7c/files/lib/x86_64-linux-gnu/libcurl.so.4.8.0

> system2('ldd', system.file('libs/curl.so', package='curl'))
    linux-vdso.so.1 (0x00007f729bee3000)
    libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f729be1b000)
    libR.so => /usr/lib64/R/lib/libR.so (0x00007f729b800000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f729b60f000)
    libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007f729bdf1000)
    libidn2.so.0 => /lib64/libidn2.so.0 (0x00007f729bdcf000)
    libssl.so.3 => /lib64/libssl.so.3 (0x00007f729bcf6000)
    libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f729b000000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f729bca1000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f729bc80000)
    libflexiblas.so.3 => /lib64/libflexiblas.so.3 (0x00007f729ac00000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f729b52b000)
    libreadline.so.8 => /lib64/libreadline.so.8 (0x00007f729b4d2000)
    libtre.so.5 => /lib64/libtre.so.5 (0x00007f729bc6b000)
    libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f729ab60000)
    libdeflate.so.0 => /lib64/libdeflate.so.0 (0x00007f729bc55000)
    liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f729afcd000)
    libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f729bc41000)
    libtirpc.so.3 => /lib64/libtirpc.so.3 (0x00007f729af9d000)
    libicuuc.so.74 => /lib64/libicuuc.so.74 (0x00007f729a96c000)
    libicui18n.so.74 => /lib64/libicui18n.so.74 (0x00007f729a600000)
    libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f729a5aa000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f729a93e000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f729bee5000)
    libunistring.so.5 => /lib64/libunistring.so.5 (0x00007f729a3fd000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f729a335000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f729b4bb000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f729bc36000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f729af8d000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f729bc2f000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f729a323000)
    libgfortran.so.5 => /lib64/libgfortran.so.5 (0x00007f729a000000)
    libquadmath.so.0 => /lib64/libquadmath.so.0 (0x00007f7299fb8000)
    libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f7299f8b000)
    libicudata.so.74 => /lib64/libicudata.so.74 (0x00007f7298200000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7297e00000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f72981d3000)