#67177 closed defect (fixed)

R does not configure after curl update to 8.x: error: libcurl >= 7.28.0 library and headers are required with support for https

Reported by: barracuda156 Owned by: i0ntempest
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: R, curl

Description

checking for curl-config... /opt/local/bin/curl-config
checking libcurl version ... 8.0.1
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.2.3" && ./configure --prefix=/opt/local/Library/Frameworks --enable-openmp --enable-R-framework --enable-memory-profiling --enable-R-shlib --enable-BLAS-shlib --with-cairo --disable-java --with-included-gettext --disable-openmp --without-blas --without-lapack --with-recommended-packages --with-tcltk --with-tcl-config=/opt/local/lib/tclConfig.sh --with-tk-config=/opt/local/lib/tkConfig.sh --with-x --x-include=/opt/local/include/X11 --x-lib=/opt/local/lib 
Exit code: 1

Config log has:

| #define HAVE_CURL_CURL_H 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <curl/curl.h>
| int main(int argc, const char * argv[])
| {
| #ifdef LIBCURL_VERSION_MAJOR
| #if LIBCURL_VERSION_MAJOR > 7
|   exit(1);
| #elif LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 28
|   exit(0);
| #else
|   exit(1);
| #endif
| #else
|   exit(1);
| #endif
| }
| 
configure:47632: result: no
configure:47693: error: libcurl >= 7.28.0 library and headers are required with support for https

Attachments (3)

R_config_log_10.6.8.txt (422.1 KB) - added by barracuda156 13 months ago.
R_10.6.8_x86.txt (48.3 KB) - added by barracuda156 13 months ago.
Ok, same error on 10.6.8 x86_64 with Xcode 4.2:
84049.patch (2.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 months ago.

Download all attachments as: .zip

Change History (11)

Changed 13 months ago by barracuda156

Attachment: R_config_log_10.6.8.txt added

comment:1 Changed 13 months ago by barracuda156

Everything identical, but curl 7.x works perfectly fine:

checking for curl-config... /opt/local/bin/curl-config
checking libcurl version ... 7.88.1
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... yes
checking if libcurl supports https... yes

comment:2 Changed 13 months ago by barracuda156

Summary: R does not configure in Rosetta after curl update to 8.x: error: libcurl >= 7.28.0 library and headers are required with support for httpsR does not configure after curl update to 8.x: error: libcurl >= 7.28.0 library and headers are required with support for https

Changed 13 months ago by barracuda156

Attachment: R_10.6.8_x86.txt added

Ok, same error on 10.6.8 x86_64 with Xcode 4.2:

comment:3 Changed 13 months ago by barracuda156

Port: curl added

comment:4 Changed 13 months ago by jmroot (Joshua Root)

The problem is pretty clearly

#if LIBCURL_VERSION_MAJOR > 7
|   exit(1);

comment:5 in reply to:  4 Changed 13 months ago by barracuda156

Replying to jmroot:

The problem is pretty clearly

#if LIBCURL_VERSION_MAJOR > 7
|   exit(1);

Oh, indeed. What should we do? Just patch this out?

Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Attachment: 84049.patch added

comment:6 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Use the relevant portion of the patch that the developers already committed to their repository to fix this. If the port uses auto(re)conf, the relevant portion is the patch to the m4 file. If it doesn't, then it's the patch to the configure file.

comment:7 in reply to:  6 Changed 13 months ago by barracuda156

Replying to ryandesign:

Use the relevant portion of the patch that the developers already committed to their repository to fix this. If the port uses auto(re)conf, the relevant portion is the patch to the m4 file. If it doesn't, then it's the patch to the configure file.

Thank you!

comment:8 Changed 13 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 19de2d7036d6474a1377bd656b9913592c6b0887/macports-ports (master):

R: unbreak build after curl update

Fixes: #67177

Note: See TracTickets for help on using tickets.