Last running mono version on the machine was 1.06-r2 after installing mono 1.17 and mod_mono 1.09-r1 libgdiplus failed to emerge I've even tried to unemerge libgdiplus, but now I can't emerge any version of gdilibplus :( the error message from emerge looks like this: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT lineargradientbrush.lo -MD -MP -MF .deps/lineargradientbrush.Tpo -c lineargradientbrush.c -fPIC -DPIC -o .libs/lineargradientbrush.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT lineargradientbrush.lo -MD -MP -MF .deps/lineargradientbrush.Tpo -c lineargradientbrush.c -o lineargradientbrush.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT matrix.lo -MD -MP -MF ".deps/matrix.Tpo" -c -o matrix.lo matrix.c; \ then mv -f ".deps/matrix.Tpo" ".deps/matrix.Plo"; else rm -f ".deps/matrix.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c matrix.c -fPIC -DPIC -o .libs/matrix.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c matrix.c -o matrix.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pen.lo -MD -MP -MF ".deps/pen.Tpo" -c -o pen.lo pen.c; \ then mv -f ".deps/pen.Tpo" ".deps/pen.Plo"; else rm -f ".deps/pen.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pen.lo -MD -MP -MF .deps/pen.Tpo -c pen.c -fPIC -DPIC -o .libs/pen.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pen.lo -MD -MP -MF .deps/pen.Tpo -c pen.c -o pen.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pathgradientbrush.lo -MD -MP -MF ".deps/pathgradientbrush.Tpo" -c -o pathgradientbrush.lo pathgradientbrush.c; \ then mv -f ".deps/pathgradientbrush.Tpo" ".deps/pathgradientbrush.Plo"; else rm -f ".deps/pathgradientbrush.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pathgradientbrush.lo -MD -MP -MF .deps/pathgradientbrush.Tpo -c pathgradientbrush.c -fPIC -DPIC -o .libs/pathgradientbrush.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pathgradientbrush.lo -MD -MP -MF .deps/pathgradientbrush.Tpo -c pathgradientbrush.c -o pathgradientbrush.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT region.lo -MD -MP -MF ".deps/region.Tpo" -c -o region.lo region.c; \ then mv -f ".deps/region.Tpo" ".deps/region.Plo"; else rm -f ".deps/region.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT region.lo -MD -MP -MF .deps/region.Tpo -c region.c -fPIC -DPIC -o .libs/region.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT region.lo -MD -MP -MF .deps/region.Tpo -c region.c -o region.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT solidbrush.lo -MD -MP -MF ".deps/solidbrush.Tpo" -c -o solidbrush.lo solidbrush.c; \ then mv -f ".deps/solidbrush.Tpo" ".deps/solidbrush.Plo"; else rm -f ".deps/solidbrush.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT solidbrush.lo -MD -MP -MF .deps/solidbrush.Tpo -c solidbrush.c -fPIC -DPIC -o .libs/solidbrush.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT solidbrush.lo -MD -MP -MF .deps/solidbrush.Tpo -c solidbrush.c -o solidbrush.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT stringformat.lo -MD -MP -MF ".deps/stringformat.Tpo" -c -o stringformat.lo stringformat.c; \ then mv -f ".deps/stringformat.Tpo" ".deps/stringformat.Plo"; else rm -f ".deps/stringformat.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT stringformat.lo -MD -MP -MF .deps/stringformat.Tpo -c stringformat.c -fPIC -DPIC -o .libs/stringformat.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT stringformat.lo -MD -MP -MF .deps/stringformat.Tpo -c stringformat.c -o stringformat.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT texturebrush.lo -MD -MP -MF ".deps/texturebrush.Tpo" -c -o texturebrush.lo texturebrush.c; \ then mv -f ".deps/texturebrush.Tpo" ".deps/texturebrush.Plo"; else rm -f ".deps/texturebrush.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT texturebrush.lo -MD -MP -MF .deps/texturebrush.Tpo -c texturebrush.c -fPIC -DPIC -o .libs/texturebrush.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT texturebrush.lo -MD -MP -MF .deps/texturebrush.Tpo -c texturebrush.c -o texturebrush.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pngcodec.lo -MD -MP -MF ".deps/pngcodec.Tpo" -c -o pngcodec.lo pngcodec.c; \ then mv -f ".deps/pngcodec.Tpo" ".deps/pngcodec.Plo"; else rm -f ".deps/pngcodec.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pngcodec.lo -MD -MP -MF .deps/pngcodec.Tpo -c pngcodec.c -fPIC -DPIC -o .libs/pngcodec.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT pngcodec.lo -MD -MP -MF .deps/pngcodec.Tpo -c pngcodec.c -o pngcodec.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT gifcodec.lo -MD -MP -MF ".deps/gifcodec.Tpo" -c -o gifcodec.lo gifcodec.c; \ then mv -f ".deps/gifcodec.Tpo" ".deps/gifcodec.Plo"; else rm -f ".deps/gifcodec.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT gifcodec.lo -MD -MP -MF .deps/gifcodec.Tpo -c gifcodec.c -fPIC -DPIC -o .libs/gifcodec.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT gifcodec.lo -MD -MP -MF .deps/gifcodec.Tpo -c gifcodec.c -o gifcodec.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT tiffcodec.lo -MD -MP -MF ".deps/tiffcodec.Tpo" -c -o tiffcodec.lo tiffcodec.c; \ then mv -f ".deps/tiffcodec.Tpo" ".deps/tiffcodec.Plo"; else rm -f ".deps/tiffcodec.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT tiffcodec.lo -MD -MP -MF .deps/tiffcodec.Tpo -c tiffcodec.c -fPIC -DPIC -o .libs/tiffcodec.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT tiffcodec.lo -MD -MP -MF .deps/tiffcodec.Tpo -c tiffcodec.c -o tiffcodec.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT bmpcodec.lo -MD -MP -MF ".deps/bmpcodec.Tpo" -c -o bmpcodec.lo bmpcodec.c; \ then mv -f ".deps/bmpcodec.Tpo" ".deps/bmpcodec.Plo"; else rm -f ".deps/bmpcodec.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT bmpcodec.lo -MD -MP -MF .deps/bmpcodec.Tpo -c bmpcodec.c -fPIC -DPIC -o .libs/bmpcodec.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT bmpcodec.lo -MD -MP -MF .deps/bmpcodec.Tpo -c bmpcodec.c -o bmpcodec.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT imageattributes.lo -MD -MP -MF ".deps/imageattributes.Tpo" -c -o imageattributes.lo imageattributes.c; \ then mv -f ".deps/imageattributes.Tpo" ".deps/imageattributes.Plo"; else rm -f ".deps/imageattributes.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT imageattributes.lo -MD -MP -MF .deps/imageattributes.Tpo -c imageattributes.c -fPIC -DPIC -o .libs/imageattributes.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT imageattributes.lo -MD -MP -MF .deps/imageattributes.Tpo -c imageattributes.c -o imageattributes.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT jpegcodec.lo -MD -MP -MF ".deps/jpegcodec.Tpo" -c -o jpegcodec.lo jpegcodec.c; \ then mv -f ".deps/jpegcodec.Tpo" ".deps/jpegcodec.Plo"; else rm -f ".deps/jpegcodec.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT jpegcodec.lo -MD -MP -MF .deps/jpegcodec.Tpo -c jpegcodec.c -fPIC -DPIC -o .libs/jpegcodec.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT jpegcodec.lo -MD -MP -MF .deps/jpegcodec.Tpo -c jpegcodec.c -o jpegcodec.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -o libgdiplus.la -rpath /usr/lib adjustablearrowcap.lo bitmap.lo brush.lo customlinecap.lo font.lo general.lo graphics.lo graphics-path.lo graphics-pathiterator.lo hatchbrush.lo image.lo lineargradientbrush.lo matrix.lo pen.lo pathgradientbrush.lo region.lo solidbrush.lo stringformat.lo texturebrush.lo pngcodec.lo gifcodec.lo tiffcodec.lo bmpcodec.lo imageattributes.lo jpegcodec.lo -lfreetype -lcairo -lfontconfig -lpixman -lpng12 -lz -lm -lglib-2.0 -lfreetype -lz -ltiff -ljpeg -lgif -lpng12 -lz -lm -lpthread i686-pc-linux-gnu-gcc -shared .libs/adjustablearrowcap.o .libs/bitmap.o .libs/brush.o .libs/customlinecap.o .libs/font.o .libs/general.o .libs/graphics.o .libs/graphics-path.o .libs/graphics-pathiterator.o .libs/hatchbrush.o .libs/image.o .libs/lineargradientbrush.o .libs/matrix.o .libs/pen.o .libs/pathgradientbrush.o .libs/region.o .libs/solidbrush.o .libs/stringformat.o .libs/texturebrush.o .libs/pngcodec.o .libs/gifcodec.o .libs/tiffcodec.o .libs/bmpcodec.o .libs/imageattributes.o .libs/jpegcodec.o /usr/lib/libcairo.so -L/usr/lib /usr/lib/libfontconfig.so /usr/lib/libpixman.so /usr/lib/libglib-2.0.so /usr/lib/libfreetype.so /usr/lib/libtiff.so /usr/lib/libjpeg.so /usr/lib/libgif.so -lpng12 -lz -lm -lpthread -march=athlon-xp -pthread -Wl,-soname -Wl,libgdiplus.so.0 -o .libs/libgdiplus.so.0.0.0 (cd .libs && rm -f libgdiplus.so.0 && ln -s libgdiplus.so.0.0.0 libgdiplus.so.0) (cd .libs && rm -f libgdiplus.so && ln -s libgdiplus.so.0.0.0 libgdiplus.so) i686-pc-linux-gnu-ar cru .libs/libgdiplus.a adjustablearrowcap.o bitmap.o brush.o customlinecap.o font.o general.o graphics.o graphics-path.o graphics-pathiterator.o hatchbrush.o image.o lineargradientbrush.o matrix.o pen.o pathgradientbrush.o region.o solidbrush.o stringformat.o texturebrush.o pngcodec.o gifcodec.o tiffcodec.o bmpcodec.o imageattributes.o jpegcodec.o i686-pc-linux-gnu-ranlib .libs/libgdiplus.a creating libgdiplus.la (cd .libs && rm -f libgdiplus.la && ln -s ../libgdiplus.la libgdiplus.la) make[2]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.7/work/libgdiplus-1.1.7/src' Making all in tests make[2]: Entering directory `/var/tmp/portage/libgdiplus-1.1.7/work/libgdiplus-1.1.7/tests' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -MT testgdi.o -MD -MP -MF ".deps/testgdi.Tpo" -c -o testgdi.o testgdi.c; \ then mv -f ".deps/testgdi.Tpo" ".deps/testgdi.Po"; else rm -f ".deps/testgdi.Tpo"; exit 1; fi /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -o testgdi testgdi.o ../src/libgdiplus.la -lfreetype -lcairo -lfontconfig -lpixman -lpng12 -lz -lm -lglib-2.0 -lfreetype -lz -ltiff -ljpeg -lgif -lpng12 -lz -lm -lpthread mkdir .libs i686-pc-linux-gnu-gcc -O3 -pipe -march=athlon-xp -fomit-frame-pointer -pthread -o .libs/testgdi testgdi.o ../src/.libs/libgdiplus.so /usr/lib/libcairo.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libpixman.so /usr/lib/libglib-2.0.so /usr/lib/libfreetype.so /usr/lib/libtiff.so -lc /usr/lib/libjpeg.so /usr/lib/libgif.so -lX11 -lpng12 -lz -lm -lpthread testgdi.o: In function `win_draw': testgdi.c:(.text+0x22a): undefined reference to `cairo_set_target_drawable' collect2: ld returned 1 exit status make[2]: *** [testgdi] Error 1 make[2]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.7/work/libgdiplus-1.1.7/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.7/work/libgdiplus-1.1.7' make: *** [all] Error 2 !!! ERROR: dev-dotnet/libgdiplus-1.1.7 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge libgdiplus 2. 3.
What about running revdep-rebuild?
Can you please post the output of "emerge info" as well as what version of cairo you have installed? Thanks.
I also had libgdiplus fail to compile... adjustablearrowcap.c: In function `gdip_adjust_arrowcap_setup': adjustablearrowcap.c:96: warning: unused variable `pattern' make[2]: *** [adjustablearrowcap.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... bitmap.c: In function `gdip_from_ARGB_to_RGB': bitmap.c:583: warning: unused variable `len' bitmap.c:583: warning: unused variable `r' bitmap.c:583: warning: unused variable `g' bitmap.c:583: warning: unused variable `b' bitmap.c:583: warning: unused variable `a' bitmap.c: In function `gdip_from_RGB_to_ARGB': bitmap.c:616: warning: unused variable `len' bitmap.c:616: warning: unused variable `r' bitmap.c:616: warning: unused variable `g' bitmap.c:616: warning: unused variable `b' bitmap.c:616: warning: unused variable `a' bitmap.c: In function `GdipBitmapLockBits': bitmap.c:651: warning: unused variable `pos' bitmap.c: In function `GdipBitmapUnlockBits': bitmap.c:756: warning: unused variable `pos' make[2]: *** [bitmap.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.7-r1/work/libgdiplus-1.1.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.7-r1/work/libgdiplus-1.1.7' make: *** [all] Error 2 !!! ERROR: dev-dotnet/libgdiplus-1.1.7-r1 failed. !!! Function src_compile, Line 52, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. ************ escargot lib # emerge --info Portage 2.0.51.22-r1 (default-linux/x86/2004.2/gcc34, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11ac1 i686) ================================================================= System uname: 2.6.11ac1 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.1.3-r1, 2.2.3-r5, 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_US en zh_TW zh_CN ru es" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 16bit 3dnow 3dnowex X a52 aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm arts artswrappersuid audiofile avi berkdb bidi bitmap-fonts bonobo canna cap caps cdr cjk cjkcrypt codecs crypt cscope css cups curl dba dga directfb divx4linux djbfft dmx dnd doc dpms dts dv dvb dvd dvdr dvdread edl eds emboss encode esd evms2 faac faad fam fbcon ffmpeg flac flash flatfile fmod font-server foomaticdb fortran freetds freetype freewnn fs gd gdbm ggi gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile hal hardenedphp icq ieee1394 imagemagick imap imlib immqt-bc intl ipv6 jabber jack java javascript jbig jce joystick jp2 jpeg junit kde kerberos krb4 ldap libcaca libcss libdvdread libg++ libwww live lm_sensors ltsp lzo lzw lzw-tiff m17n-lib mad maildir md5sum mdb mikmod ming mmx mmx2 mng mono motif mozdevelop mozdomi mozilla mozplaintext mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn msql mssql mule music mysql mysqli nas ncurses net network nls nptl ntlm nvidia offensive ogg oggvorbis ooo-kde opengl oss pam pdflib perl physfs pic png posix postgres python qt quicktime readline real rtc samba sasl scanner sdl slang smime snmp speex spell sqlite sse ssl svg svga tcltk tcpd tga theora threads tiff timidity transcode truetype truetype-fonts type1 type1-fonts uim unicode usb v4l v4l2 vcd vhosts vidix vim-with-x virus-scan vnc vorbis wifi win32codecs wmf xanim xine xinerama xml xml2 xmms xpm xprint xscreensaver xv xvid xvmc yahoo yv12 zeo zeroconf zlib linguas_en_US linguas_en linguas_zh_TW linguas_zh_CN linguas_ru linguas_es userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Aaron: This seems to be completely unrelated from the original bug poster's problem. In particular, please remove "-Wall" from your CFLAGS, as this is innevitably going to cause packages to fail when they shouldn't.
I had a -X in my make.conf. After removing this flag i recompiled cairo and libgdi plus without any problems.
Ok, It looks like we need a check to make sure cairo was built with USE="X", and if not error out with a big fat warning. I'll get the check added soon, leaving this open to remind me.
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../libpixman/src -I../cairo/src -I../cairo/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -O2 -march=pentium4 -fomit-frame-pointer -pipe -msse -msse2 -mmmx -mfpmath=sse -pipe -ffast-math -falign-functions=4 -fforce-addr -funroll-loops -funit-at-a-time -mtune=pentium4 -floop-optimize -ftracer -pthread -MT gifcodec.lo -MD -MP -MF .deps/gifcodec.Tpo -c gifcodec.c -fPIC -DPIC -o .libs/gifcodec.o gifcodec.c:611: error: conflicting types for 'gdip_save_gif_image_to_file' gifcodec.h:24: error: previous declaration of 'gdip_save_gif_image_to_file' was here gifcodec.c:611: error: conflicting types for 'gdip_save_gif_image_to_file' gifcodec.h:24: error: previous declaration of 'gdip_save_gif_image_to_file' was here make[2]: *** [gifcodec.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.8/work/libgdiplus-1.1.8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.8/work/libgdiplus-1.1.8' make: *** [all] Error 2 Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20041102- r1, 2.6.11.8 i686) ================================================================= System uname: 2.6.11.8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.16 dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -msse -msse2 -mmmx -mfpma th=sse -pipe -ffast-math -falign-functions=4 -fforce-addr -funroll-loops -funit- at-a-time -mtune=pentium4 -floop-optimize -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/default s/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -msse -msse2 -mmmx -mfp math=sse -pipe -ffast-math -falign-functions=4 -fforce-addr -funroll-loops -funi t-at-a-time -mtune=pentium4 -floop-optimize -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acpi alsa apache2 apm arts avi bash-completion berkdb bit map-fonts cdr crypt cups curl dvd dvdread emboss encode fam flac foomaticdb gdbm ggi gif gnome gpm gtk gtk2 guile imagemagick imlib ipv6 java jpeg junit ldap li bg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbi s opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang sp ell sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode vorb is win32codecs xine xml xml2 xmms xv zlib linguas_de userland_GNU kernel_linux e libc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY So, as you can see, it crashes
I've added the checks to the 1.1.8 and 1.1.9 libgdiplus ebuilds. I've not bothered to add them to the 1.0.x series, as I'll be marking 1.1.8 stable within the next few days. Marking this FIXED. F mayer: This is an unrelated problem. That problem was fixed in bug #98654.
Ugh. I'm stupid. I've just removed the fixes because from 1.1.8 and higher we now use the *internally* shipped cairo, which we can ensure was built with X support. Still FIXED, as the new versions have the deps such that the internal cairo will have X support will be built.