Opened 4 years ago

Closed 4 years ago

#60203 closed defect (fixed)

curl fails to build due to old nm

Reported by: rmottola (Riccardo) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard haspatch Cc:
Port: curl

Description

On Leopard, curl fails to build, with the known "NM" error.

erify.o vtls/.libs/libcurl_la-sectransp.o vtls/.libs/libcurl_la-gskit.o vtls/.libs/libcurl_la-mbedtls.o vtls/.libs/libcurl_la-mesalink.o vtls/.libs/libcurl_la-bearssl.o vquic/.libs/libcurl_la-ngtcp2.o vquic/.libs/libcurl_la-quiche.o vssh/.libs/libcurl_la-libssh2.o vssh/.libs/libcurl_la-libssh.o vssh/.libs/libcurl_la-wolfssh.o   |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libcurl.exp
../libtool: eval: line 1719: syntax error near unexpected token `|'
../libtool: eval: line 1719: `/usr/bin/nm -p  .libs/libcurl_la-file.o .libs/libcurl_la-timeval.o .libs/libcurl_la-base64.o .libs/libcurl_la-hostip.o .libs/libcurl_la-progress.o .libs/libcurl_la-formdata.o .libs/libcurl_la-cookie.o .libs/libcurl

this is due to old nm being used. I applied a fix proposed by @kencu in another port and it works:

if {${os.platform} eq "darwin" && ${os.major} < 10} {
    depends_build-append port:cctools
    configure.env-append NM=${prefix}/bin/nm
    configure.args-append lt_cv_path_NM=${prefix}/bin/nm
}

I put it in the subport section, before post-configure

Change History (4)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: leopard added; Leopard removed
Owner: set to ryandesign
Status: newassigned

comment:2 Changed 4 years ago by rmottola (Riccardo)

This still applies... and still works!

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Status: assignedaccepted

I'll take your word for it!

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In a14a3b61ec1426415040291b17749ea522426668/macports-ports (master):

curl: Add cctools dependency on 10.5 and earlier

Closes: #60203

Note: See TracTickets for help on using tickets.