Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321453 - povray-3.7.0.beta.35a cannot compile under libpng 1.4
Summary: povray-3.7.0.beta.35a cannot compile under libpng 1.4
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 14:20 UTC by Roby
Modified: 2010-05-25 17:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,4.61 KB, text/plain)
2010-05-25 14:21 UTC, Roby
Details
Copy of build.log (build.log,89.04 KB, text/plain)
2010-05-25 14:22 UTC, Roby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roby 2010-05-25 14:20:47 UTC
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.
Comment 1 Roby 2010-05-25 14:21:28 UTC
Created attachment 232885 [details]
emerge --info
Comment 2 Roby 2010-05-25 14:22:06 UTC
Created attachment 232887 [details]
Copy of build.log
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-05-25 14:32:55 UTC
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'
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-05-25 17:57:44 UTC
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