Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 43842

Summary: Configure script for wv fails to test for pngconf.h correctly.
Product: Gentoo Linux Reporter: Sean Pecor <sean>
Component: New packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sean Pecor 2004-03-05 18:17:27 UTC
This one ate a couple hours today ;) When you emerge wv, it fails to locate pngconf.h correctly. If you're not paying attention everything seems to emerge correctly, but the end result is that wvHtml, wvWare scripts don't convert wmf files to png format. The errors in config.log are:

/usr/include/pngconf.h:1099: error: syntax error before '*' token
/usr/include/pngconf.h:1100: error: syntax error before '*' token
/usr/include/pngconf.h:1101: error: syntax error before '*' token

Everything looked good in pngconf.h, so I tweaked wv's configure file by adding:

#include <zlib.h>

before each place I saw:
#include <pngconf.h>

And this fixed the problem. So my nominally educated guess is that at some point pngconf.h stopped including zlib.h itself and the configure inside of wv began borking as an unintended result. 

libpng seems to bite me in the arse about once a year. It's getting to be a bit of a tradition! 

Sean.

Reproducible: Always
Steps to Reproduce:
1. confirm that png is in the USE
2. emerge wv
3. wvHtml your_doc_with_wmf_clipart_inside.doc out.html


Actual Results:  
No .png files in output directory, only .wmf files. 

Expected Results:  
Converted .wmf files to .png files.
Comment 1 SpanKY gentoo-dev 2004-03-05 18:19:54 UTC
shouldnt it include <png.h> instead ?

png.h will include zlib.h and pngconf.h
Comment 2 Sean Pecor 2004-03-05 18:24:53 UTC
Yeah, good point. Plus, zlib.h includes zconf.h which creates 2 of the 3 definitions that configure currently borks on.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2005-07-21 14:18:43 UTC
assuming fixed in latest wv version, please reopen if not.