I have only libpng 1.4.2 on the system. I installed povray-3.7.0.beta.35a and it gave me this error message: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../source -I../../source -I../../unix -I../../vfe -I../../vfe/unix -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -I/usr/inc lude/OpenEXR -Iyes/../include -pthread -I/usr/include -I/usr/include -pipe -Wno-multichar -Wno- write-strings -fno-enforce-eh-specs -O3 -ffast-math -march=native -O2 -pipe -march=nocona -mtune=noc ona -fomit-frame-pointer -DPOVLIBDIR=\"/usr/share/povray\" -DPOVCONFDIR=\"/etc/povray\" -pthread -MT targa.o -MD -MP -MF .deps/targa.Tpo -c -o targa.o `test -f 'image/targa.cpp' || echo './'`image/tar ga.cpp image/png.cpp: In function ‘pov_base::Image* pov_base::Png::Read(pov_base::IStream*, const pov_base: :Image::ReadOptions&)’: image/png.cpp:464: error: ‘struct png_info_struct’ has no member named ‘trans_alpha’ image/png.cpp:495: error: ‘struct png_info_struct’ has no member named ‘trans_alpha’ mv -f .deps/jpeg.Tpo .deps/jpeg.Po x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../source -I../../source -I../../u nix -I../../vfe -I../../vfe/unix -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -I/usr/inc lude/OpenEXR -Iyes/../include -pthread -I/usr/include -I/usr/include -pipe -Wno-multichar -Wno- write-strings -fno-enforce-eh-specs -O3 -ffast-math -march=native -O2 -pipe -march=nocona -mtune=noc ona -fomit-frame-pointer -DPOVLIBDIR=\"/usr/share/povray\" -DPOVCONFDIR=\"/etc/povray\" -pthread -MT tiff.o -MD -MP -MF .deps/tiff.Tpo -c -o tiff.o `test -f 'image/tiff.cpp' || echo './'`image/tiff.cp pmake[3]: *** [png.o] Error 1 make[3]: *** Waiting for unfinished jobs.... Reproducible: Always Steps to Reproduce: 1. emerge libpng 1.4.2 and unemerge libpng 1.2.x 2. emerge povray 3.7.0 beta 35a 3. Actual Results: Has errors as shown above. Expected Results: Compiles fine.
Created attachment 232885 [details] emerge --info
Created attachment 232887 [details] Copy of build.log
The problem is here, image/png.cpp:464: error: ‘struct png_info_struct’ has no member named ‘trans_alpha’ image/png.cpp:495: error: ‘struct png_info_struct’ has no member named ‘trans_alpha’ I'd like to point out that libpng-1.4.2 _has_ 'trans_alpha'. So, above error would happen if you had old libpng 1.2 headers installed somewhere on your system, that's pngconf.h and png.h. Perhaps check your /usr/local for old files ? Something like: find /usr/include -name '*png*.h' find /usr/local -name '*png*.h'
Verified it's fine with libpng 1.4.2 here, so it's a local problem. Closing as NEEDINFO, reopen if it still fails after fixing the system from old libpng headers. >>> Source compiled. >>> Test phase [not enabled]: media-gfx/povray-3.7.0_beta35 >>> Install povray-3.7.0_beta35 into /var/tmp/portage/media-gfx/povray-3.7.0_beta35/image/ category media-gfx