[MacPorts] #60203: curl fails to build due to old nm
MacPorts
noreply at macports.org
Thu Mar 19 16:00:03 UTC 2020
#60203: curl fails to build due to old nm
----------------------+--------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: Leopard | Port: curl
----------------------+--------------------
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
--
Ticket URL: <https://trac.macports.org/ticket/60203>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list