pango fails to build on Mac OS X 10.5 Leopard
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/work/pango-1.18.3" && make all " returned error 2
Command output: /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -O2 -Wall -MT shape.lo -MD -MP -MF .deps/shape.Tpo -c -o shape.lo shape.c
gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -O2 -Wall -MT shape.lo -MD -MP -MF .deps/shape.Tpo -c shape.c -fno-common -DPIC -o .libs/shape.o
mv -f .deps/shape.Tpo .deps/shape.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -O2 -Wall -MT pango-enum-types.lo -MD -MP -MF .deps/pango-enum-types.Tpo -c -o pango-enum-types.lo pango-enum-types.c
gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -O2 -Wall -MT pango-enum-types.lo -MD -MP -MF .deps/pango-enum-types.Tpo -c pango-enum-types.c -fno-common -DPIC -o .libs/pango-enum-types.o
mv -f .deps/pango-enum-types.Tpo .deps/pango-enum-types.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -O2 -Wall -MT module-defs-lang.lo -MD -MP -MF .deps/module-defs-lang.Tpo -c -o module-defs-lang.lo module-defs-lang.c
gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -O2 -Wall -MT module-defs-lang.lo -MD -MP -MF .deps/module-defs-lang.Tpo -c module-defs-lang.c -fno-common -DPIC -o .libs/module-defs-lang.o
mv -f .deps/module-defs-lang.Tpo .deps/module-defs-lang.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -version-info 1800:3:1800 -export-symbols-regex "^pango_.*" -L/opt/local/lib -no-undefined -bind_at_load -o libpango-1.0.la -rpath /opt/local/lib break.lo ellipsize.lo fonts.lo glyphstring.lo modules.lo pango-attributes.lo pango-color.lo pango-context.lo pango-coverage.lo pango-engine.lo pango-fontmap.lo pango-fontset.lo pango-glyph-item.lo pango-gravity.lo pango-item.lo pango-language.lo pango-layout.lo pango-markup.lo pango-matrix.lo pango-renderer.lo pango-script.lo pango-tabs.lo pango-utils.lo reorder-items.lo shape.lo pango-enum-types.lo module-defs-lang.lo -L/opt/local/lib -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lm mini-fribidi/libmini-fribidi.la
generating symbol list for `libpango-1.0.la'
/usr/bin/nm -p .libs/break.o .libs/ellipsize.o .libs/fonts.o .libs/glyphstring.o .libs/modules.o .libs/pango-attributes.o .libs/pango-color.o .libs/pango-context.o .libs/pango-coverage.o .libs/pango-engine.o .libs/pango-fontmap.o .libs/pango-fontset.o .libs/pango-glyph-item.o .libs/pango-gravity.o .libs/pango-item.o .libs/pango-language.o .libs/pango-layout.o .libs/pango-markup.o .libs/pango-matrix.o .libs/pango-renderer.o .libs/pango-script.o .libs/pango-tabs.o .libs/pango-utils.o .libs/reorder-items.o .libs/shape.o .libs/pango-enum-types.o .libs/module-defs-lang.o mini-fribidi/.libs/libmini-fribidi.a | sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libpango-1.0.exp
/usr/bin/grep -E -e "^pango_.*" ".libs/libpango-1.0.exp" > ".libs/libpango-1.0.expT"
mv -f ".libs/libpango-1.0.expT" ".libs/libpango-1.0.exp"
rm -fr .libs/libpango-1.0.lax
mkdir .libs/libpango-1.0.lax
rm -fr .libs/libpango-1.0.lax/libmini-fribidi.a
mkdir .libs/libpango-1.0.lax/libmini-fribidi.a
Extracting /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/work/pango-1.18.3/pango/mini-fribidi/.libs/libmini-fribidi.a
(cd .libs/libpango-1.0.lax/libmini-fribidi.a && ar x /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/work/pango-1.18.3/pango/mini-fribidi/.libs/libmini-fribidi.a)
sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < .libs/libpango-1.0.exp > .libs/libpango-1.0-symbols.expsym
gcc -dynamiclib -o .libs/libpango-1.0.0.1800.3.dylib .libs/break.o .libs/ellipsize.o .libs/fonts.o .libs/glyphstring.o .libs/modules.o .libs/pango-attributes.o .libs/pango-color.o .libs/pango-context.o .libs/pango-coverage.o .libs/pango-engine.o .libs/pango-fontmap.o .libs/pango-fontset.o .libs/pango-glyph-item.o .libs/pango-gravity.o .libs/pango-item.o .libs/pango-language.o .libs/pango-layout.o .libs/pango-markup.o .libs/pango-matrix.o .libs/pango-renderer.o .libs/pango-script.o .libs/pango-tabs.o .libs/pango-utils.o .libs/reorder-items.o .libs/shape.o .libs/pango-enum-types.o .libs/module-defs-lang.o .libs/libpango-1.0.lax/libmini-fribidi.a/fribidi.o .libs/libpango-1.0.lax/libmini-fribidi.a/fribidi_char_type.o .libs/libpango-1.0.lax/libmini-fribidi.a/fribidi_types.o -L/opt/local/lib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lm -install_name /opt/local/lib/libpango-1.0.0.dylib -Wl,-compatibility_version -Wl,1801 -Wl,-current_version -Wl,1801.3
ld: duplicate symbol _g_bit_nth_lsf in .libs/ellipsize.o and .libs/break.o
collect2: ld returned 1 exit status
make[4]: *** [libpango-1.0.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Same bug as #13006