Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43842 - Configure script for wv fails to test for pngconf.h correctly.
Summary: Configure script for wv fails to test for pngconf.h correctly.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-05 18:17 UTC by Sean Pecor
Modified: 2005-07-21 14:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.