I'm attempting to build fribidi on MacOS X.
This is version 0.10.4 of library and I build it like on any other UNIX system.
I get that error. Looks like it is libtool related.
gcc -dynamiclib -undefined suppress -o .libs/libfribidi.0.0.0.dylib fribidi.lo fribidi_types.lo fribidi_mem.lo fribidi_mirroring.lo fribidi_char_type.lo fribidi_wcwidth.lo fribidi_utils.lo fribidi_char_sets.lo fribidi_char_sets_utf8.lo fribidi_char_sets_cap_rtl.lo fribidi_char_sets_iso8859_6.lo fribidi_char_sets_iso8859_8.lo fribidi_char_sets_cp1255.lo fribidi_char_sets_cp1256.lo fribidi_char_sets_isiri_3342.lo -lc -install_name /usr/local/lib/libfribidi.0.dylib -compatibility_version 1 -current_version 1.0
ld: -undefined error must be used when -twolevel_namespace is in effect
/usr/bin/libtool: internal link edit command failed
make: *** [libfribidi.la] Error 1
Logged In: YES
user_id=47601
It is a problem of libtool. In the created libtool file, replace
'-undefined suppress' with '-undefined error', and will link.
Logged In: YES
user_id=27487
I found out myself that doing that solved the problem.
I have had report from our autoconf guru that upgrading
libtools files solves the problem. I'll ask him to tell what
to do so that the next tarball can be build on MacOS X
without problem.