<br><br><div class="gmail_quote">2010/2/3 Vincent Povirk <span dir="ltr">&lt;<a href="mailto:madewokherd%2B8cd9@gmail.com">madewokherd+8cd9@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
We use png_set_gray_1_2_4_to_8 to expand grayscale PNG&#39;s to an RGB format.<br>
<br>
It&#39;d be nice to have libpng do this (if there&#39;s a non-deprecated way<br>
to do it), but it&#39;s a trivial operation that we could do without if<br>
necessary.<br>
</blockquote></div><br>The error is:<br>ccache gcc -c -I. -I. -I../../include -I../../include� -D__WINESRC__� -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith� -g -O2� -o pngformat.o pngformat.c<br>
pngformat.c:62: error: �png_set_gray_1_2_4_to_8� undeclared here (not in a function)<br>pngformat.c:62: warning: type defaults to �int� in declaration of �ppng_set_gray_1_2_4_to_8�<br>pngformat.c: In function �PngDecoder_Initialize�:<br>
pngformat.c:285: error: called object �ppng_set_gray_1_2_4_to_8� is not a function<br><br>The distro i&#39;m using is ArchLinux i686, that just shipped the new libraries with massive rebuilds.<br>I already resolved the problem, as the only thing to do was search all &quot;png_set_gray_1_2_4_to_8&quot; and change them to &quot;png_set_expand_gray_1_2_4_to_8&quot;<br>
i already wrote a patch for this that make compilation works again, but now as appeared another problem:<br>LD_LIBRARY_PATH=&quot;../../libs/wine:$LD_LIBRARY_PATH&quot; ../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include� -D__WINESRC__�� -foversion.res version.rc<br>
../../tools/winegcc/winegcc� -B../../tools/winebuild --sysroot=../.. -shared ./windowscodecs.spec bmpdecode.o bmpencode.o clsfactory.o converter.o gifformat.o icoformat.o imgfactory.o info.o jpegformat.o main.o palette.o pngformat.o propertybag.o regsvr.o stream.o ungif.o��� version.res��� -o <a href="http://windowscodecs.dll.so">windowscodecs.dll.so</a>� -luuid -lole32 -ladvapi32 -lkernel32� ../../libs/port/libwine_port.a<br>
pngformat.o: In function `PngFrameEncode_Commit&#39;:<br>/home/luca/wine-git/dlls/windowscodecs/pngformat.c:987: undefined reference to `png_set_longjmp_fn&#39;<br>pngformat.o: In function `PngEncoder_Initialize&#39;:<br>
/home/luca/wine-git/dlls/windowscodecs/pngformat.c:1119: undefined reference to `png_set_longjmp_fn&#39;<br>pngformat.o: In function `PngFrameEncode_WritePixels&#39;:<br>/home/luca/wine-git/dlls/windowscodecs/pngformat.c:861: undefined reference to `png_set_longjmp_fn&#39;<br>
pngformat.o: In function `PngDecoder_Initialize&#39;:<br>/home/luca/wine-git/dlls/windowscodecs/pngformat.c:252: undefined reference to `png_set_longjmp_fn&#39;<br>collect2: ld returned 1 exit status<br><br>I will now investigate this new one<br>
<br>BTW i confirmed that the libjpeg 7 -&gt; 8 bump doesn&#39;t bring problem :)<br>