Opened 12 years ago

Last modified 5 years ago

#35468 closed defect

nmh does not build with clang — at Version 1

Reported by: nooneofconsequence@… Owned by: kenh@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: clang Cc: ryandesign@…
Port: nmh

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (2)

Changed 12 years ago by nooneofconsequence@…

Attachment: nmh_main.log added

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

Cc: ryandesign@… added
Description: modified (diff)
Keywords: nmh gcc removed
Owner: changed from macports-tickets@… to kenh@…

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.

Note: See TracTickets for help on using tickets.