x86_64-pc-linux-gnu-g++ -march=barcelona -mtune=barcelona -O2 -pipe -finline-functions -Wall -O2 -fPIC -DUSE_LIBPNG -I. -I../../lib/include -I/usr/include/libpng15 -c -o f1tattoo.o f1tattoo.cpp f1tattoo.cpp: In function ‘bool tattoo_read_png(unsigned char*, uint32_t, FILE*)’: f1tattoo.cpp:132:44: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:132:61: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:134:14: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:134:42: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:146:38: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:147:18: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:153:18: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:171:37: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:172:14: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:176:14: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:177:45: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:181:38: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:185:47: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:192:15: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:195:19: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:197:29: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:203:29: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:205:18: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:206:18: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:207:18: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:213:29: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:222:29: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ f1tattoo.cpp:231:29: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ make[2]: *** [f1tattoo.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-cdr/qpxtool-0.7.0-r1/work/qpxtool-0.7.0/console/f1tattoo' make[1]: *** [f1tattoo] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-cdr/qpxtool-0.7.0-r1/work/qpxtool-0.7.0/console' make: *** [console] Error 2 emake failed
If you have time to review this patch, please do + 07 Aug 2011; Samuli Suominen <ssuominen@gentoo.org> qpxtool-0.7.0-r1.ebuild, + +files/qpxtool-0.7.0-libpng15.patch: + Fix building with libpng15 wrt #357161 by Lars Wendler