Skip to content
Back to formatted view

Raw Message

Message-ID: <20250414164235.251200dc@arachnoid>
Date: 2025-04-14T13:42:35Z
From: Ivan Krylov
Subject: R does not build with conda libcurl
In-Reply-To: <CALK03d2s7ssS9SELvLedHA0tUkcyqaEJu_0G9p7yAPtoM1WKzA@mail.gmail.com>

On Mon, 14 Apr 2025 14:10:56 +0200
Toby Hocking <tdhock5 at gmail.com> wrote:

> /usr/bin/ld : ../../lib/libR.so : r?f?rence ind?finie vers
> ? u_getVersion_73 ?

Strange that it's complaining about symbols from libicu when the
problem is due to libcurl-related flags. What was the command line used
to link libR.so somewhere above in the log? I think it's not being
correctly linked with libicu, but since shared libraries are allowed to
have undefined imports in them, this is only found out later, when
linking the R.bin executable.

> It seems that the libcurl package in conda provides the curl-config
> command line program, which R is using to get this flag:
> -I/home/local/USHERBROOKE/hoct2726/miniconda3/include

With libcurl installed from conda, what do the following commands print?

curl-config --built-shared
curl-config --static-libs
curl-config --libs

> To fix the build, I did "conda remove libcurl" and then "make clean"
> and then "configure" and "make" worked.

It should also be possible to override the path to curl-config using
the CURL_CONFIG environment variable.

-- 
Best regards,
Ivan