[MacPorts] #61222: ghc @8.10.1: testing fails because the symbol _iconv is not found

MacPorts noreply at macports.org
Thu Sep 24 04:38:48 UTC 2020


#61222: ghc @8.10.1: testing fails because the symbol _iconv is not found
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  essandess
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.3
 Keywords:              |       Port:  ghc
------------------------+-----------------------
 Running `sudo port test ghc` fails:

 {{{
 :info:test Linking mk/ghc-config ...
 :info:test Undefined symbols for architecture x86_64:
 :info:test   "_iconv", referenced from:
 :info:test       _hs_iconv in libHSbase-4.14.0.0.a(iconv.o)
 }}}

 This was previously mentioned in #57821 but needs to be tracked as a
 separate issue.

 It is difficult to say why this happens, since it does not show us how it
 is "Linking mk/ghc-config". Is there a way to turn off silent rules so
 that we see the link command?

 The problem may be that it is not using `-liconv` when linking, or that it
 is not using `-L/opt/local/lib` when linking (and in any case, the port
 needs to declare a dependency on port:libiconv as mentioned in #60171), or
 that libHSbase-4.14.0.0.a has been built against /usr/lib/libiconv.dylib
 whereas the test is now trying to link against
 /opt/local/lib/libiconv.dylib (in which case, fix libHSbase-4.14.0.0.a so
 that it is linked against /opt/local/lib/libiconv.dylib or use
 libHSbase-4.14.0.0.dylib instead of libHSbase-4.14.0.0.a).

-- 
Ticket URL: <https://trac.macports.org/ticket/61222>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list