#8843 closed bug (duplicate)

Maverick GHC --make problem - linking problem

Reported by: teuffy Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.6.3
Keywords: Cc:
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: #4068 Differential Revisions:

Description

Hi when I runghc code_x.hs --> program is running when I ghc --make code_x.hs --> I got this error message. Do you know where the problem is coming from?

Undefined symbols for architecture x86_64:

"_iconv", referenced from:

_hs_iconv in libHSbase-4.6.0.1.a(iconv.o)

(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncoding11_info, _base_GHCziIOziEncodingziIconv_iconvEncoding10_info , _base_GHCziIOziEncodingziIconv_iconvEncoding11_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding8_info , _base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding12_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding7_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_info , _base_GHCziIOziEncodingziIconv_iconvEncoding8_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv_open , _hs_iconv , _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info , _base_GHCziIOziEncodingziIconv_iconvEncoding3_info , _base_GHCziIOziEncodingziIconv_iconvEncoding3_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding5_info , _base_GHCziIOziEncodingziIconv_iconvEncoding12_info , _base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_close , _base_GHCziIOziEncodingziIconv_iconvEncoding10_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _base_GHCziIOziEncodingziIconv_iconvEncoding7_info , _base_GHCziIOziEncodingziIconv_iconvEncoding6_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding5_closure )

"_iconv_close", referenced from:

_hs_iconv_close in libHSbase-

4.6.0.1.a(iconv.o)

(maybe you meant: _hs_iconv_close)

"_iconv_open", referenced from:

_hs_iconv_open in libHSbase-4.6.0.1.a(iconv.o)

(maybe you meant: _hs_iconv_open)

"_locale_charset", referenced from:

_localeEncoding in libHSbase-4.6.0.1.a(PrelIOUtils.o)

ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status

Change History (1)

comment:1 Changed 10 months ago by thomie

  • Resolution set to duplicate
  • Status changed from new to closed

@teuffy I'm sorry to hear you ran into this problem. This is however not a GHC bug, but most likely a problem with code that "is getting compiled against one iconv library, but then linked against another (incompatible) iconv library".

See ticket #4068 for possible solutions.

Note: See TracTickets for help on using tickets.