#35468: nmh does not build with clang ------------------------------------------+--------------------------------- Reporter: nooneofconsequence@… | Owner: kenh@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: nmh ------------------------------------------+--------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * keywords: nmh clang gcc => clang * owner: macports-tickets@… => kenh@… Old description:
the workaround mentioned on the hotlist: https://trac.macports.org/wiki/ProblemHotlist
to specify gcc: like
configure.compiler=llvm-gcc-4.2
works, so here is the ticket for making it work with clang (the new default compiler).
The HotList recommends reading this for help: https://trac.macports.org/wiki/PortfileRecipes#compiler
New description: the workaround mentioned on the hotlist: wiki:ProblemHotlist to specify gcc: like {{{ configure.compiler=llvm-gcc-4.2 }}} works, so here is the ticket for making it work with clang (the new default compiler). The HotList recommends reading this for help: wiki:PortfileRecipes#compiler -- Comment: Remember to use WikiFormatting and TracLinks. The error in the log is just: {{{ :info:build Undefined symbols for architecture x86_64: :info:build "_libiconv_close", referenced from: :info:build _decode_rfc2047 in libmh.a(sbr_libmh_a-fmt_rfc2047.o) :info:build "_libiconv_open", referenced from: :info:build _decode_rfc2047 in libmh.a(sbr_libmh_a-fmt_rfc2047.o) :info:build "_libiconv", referenced from: :info:build _decode_rfc2047 in libmh.a(sbr_libmh_a-fmt_rfc2047.o) :info:build ld: symbol(s) not found for architecture x86_64 }}} So instead of changing the compiler, we should just make sure "-L${prefix}/lib" gets into LDFLAGS. -- Ticket URL: <https://trac.macports.org/ticket/35468#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS