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

Bug 354989

Summary: media-libs/imlib2: compilation fails with media-libs/libpng-1.5.x
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: [OLD] LibraryAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/mailarchive/message.php?msg_id=26972342
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    
Attachments: imlib2-1.4.4-libpng15.patch

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-02-15 09:54:44 UTC
make[4]: Entering directory `/var/tmp/portage/media-libs/imlib2-1.4.4/work/imlib2-1.4.4/src/modules/loaders'
  CC     jpeg_la-loader_jpeg.lo
  CCLD   jpeg.la
  CC     png_la-loader_png.lo
loader_png.c: In function ‘load’:
loader_png.c:61:13: error: dereferencing pointer to incomplete type
loader_png.c: In function ‘save’:
loader_png.c:268:8: error: dereferencing pointer to incomplete type
loader_png.c:280:18: error: dereferencing pointer to incomplete type
loader_png.c:289:55: error: dereferencing pointer to incomplete type
loader_png.c:300:29: error: dereferencing pointer to incomplete type
loader_png.c: In function ‘load’:
loader_png.c:40:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
make[4]: *** [png_la-loader_png.lo] Error 1


There's a patch from NetBSD available (see URL). Dunno if it already was reported upstream though.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-02-15 09:56:52 UTC
Created attachment 262583 [details, diff]
imlib2-1.4.4-libpng15.patch

This is the patch from NetBSD. Like I said it's not from upstream but seems to work.
Comment 2 SpanKY gentoo-dev 2011-02-19 19:37:32 UTC
ive committed the patch upstream and added to our repo ... thanks

http://sources.gentoo.org/media-libs/imlib2/imlib2-1.4.4.ebuild?r1=1.8&r2=1.9
http://sources.gentoo.org//imlib2-1.4.4-libpng-1.5.patch?rev=1.1