[racket-dev] Build failure on OS X

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Apr 21 21:48:11 EDT 2011

It looke like you have `-L/opt/local/lib' in your LDFLAGS
configuration. Do you also have `-I/opt/local/include' in CPPFLAGS?

You machine is probably like mine, where you have two installations of
libiconv, and this error happens when the C headers of one installation
get mixed with the lib of the other.

At Thu, 21 Apr 2011 21:42:54 -0400, Eric Dobson wrote:
> I tried to build the git HEAD today and ran into problems. During the make 
> process, it fails to create the framework with the following error message:
> 
> gcc -o Racket.framework/Versions/5.1.1.3/Racket  -m32 -pthread -framework 
> CoreFoundation -dynamiclib -all_load  libracket.a libmzgc.a -ldl -lm  -liconv 
> -L/opt/local/lib -lffi   
> Undefined symbols:
>   "_iconv_close", referenced from:
>       _do_convert in libracket.a(string.o)
>       _do_convert in libracket.a(string.o)
>       _do_convert in libracket.a(string.o)
>       _string_to_from_locale in libracket.a(string.o)
>       _string_to_from_locale in libracket.a(string.o)
>       _string_to_from_locale in libracket.a(string.o)
>       _close_converter in libracket.a(string.o)
>   "_iconv_open", referenced from:
>       _do_convert in libracket.a(string.o)
>       _string_to_from_locale in libracket.a(string.o)
>       _string_to_from_locale in libracket.a(string.o)
>       _scheme_open_converter in libracket.a(string.o)
>   "_iconv", referenced from:
>       _do_convert in libracket.a(string.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> 
> Does anyone know what might cause this?
> 
> Thanks,
>  Eric
> 
> 
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/dev


Posted on the dev mailing list.