[MacPorts] #25558: ghc: update to latest version

MacPorts noreply at macports.org
Sat Jul 7 03:56:05 PDT 2012


#25558: ghc: update to latest version
--------------------------------+-------------------------------------------
 Reporter:  jwiegley@…          |       Owner:  gwright@…           
     Type:  update              |      Status:  assigned            
 Priority:  Normal              |   Milestone:                      
Component:  ports               |     Version:                      
 Keywords:                      |        Port:  ghc ghc-devel       
--------------------------------+-------------------------------------------

Comment(by kitchen.andy@…):

 Hi Cal,

 I know exactly what causes this issue, libiconv had an
 ABI incompatible change at some point, where
 iconv_open was renamed _libiconv_open.

 {{{
 iceman:~ andy$ nm -Ug /usr/lib/libiconv.dylib | grep open
 0000000000013171 T _iconv_open
 iceman:~ andy$ nm -Ug /opt/local/lib/libiconv.dylib | grep open
 0000000000016230 T _libiconv_open
 }}}

 This error is caused by the fact that in the binary distribution,
 the ghc runtime libraries are built against the old system libiconv,
 but for some reason the gcc that ghc is using to do its linking
 is picking up a newer version of libiconv somewhere on the search path.

 I've tried putting /usr/lib on the front of LIBRARY_PATH, but maybe
 this isn't strong enough.

 Perhaps something even stronger like LD_FLAGS='-Z -L/usr/lib'
 could do the trick?

 I've attached an iconv.c file, what's the gcc -v output and success
 status of running: gcc iconv.c

-- 
Ticket URL: <https://trac.macports.org/ticket/25558#comment:46>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list