Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388683 - media-tv/xbmc-9999 fails to build due to a cximage-6.0 / libpng15 compile error
Summary: media-tv/xbmc-9999 fails to build due to a cximage-6.0 / libpng15 compile error
Status: RESOLVED DUPLICATE of bug 380127
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Xbox project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 19:21 UTC by mike
Modified: 2011-10-27 21:10 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 mike 2011-10-27 19:21:41 UTC
This occured after fully updating my Gentoo system (~x86). I've tried various older svn builds up to 2 months ago but they all have the same issue for me. 

Hopefully someone can look into this, thanks!

Reproducible: Always

Steps to Reproduce:
1. emerge xbmc
Actual Results:  
make[2]: Entering directory `/var/tmp/portage/media-tv/xbmc-9999/work/xbmc-9999/lib/cximage-6.0/raw'
CC      lib/cximage-6.0/raw/dcr.o
CPP     xbmc/guilib/GUIListLabel.o
CC      lib/cximage-6.0/raw/libdcr.o
libdcr.c:35:0: warning: "_GNU_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
libdcr.c: In function 'dcr_write_ppm_tiff':
libdcr.c:8219:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
libdcr.c:8221:11: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
libdcr.c:8243:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
libdcr.c: In function 'dcr_jpeg_thumb':
libdcr.c:8196:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
libdcr.c:8198:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
libdcr.c:8200:9: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
libdcr.c: In function 'dcr_subtract':
libdcr.c:3451:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
libdcr.c: In function 'dcr_ppm_thumb':
libdcr.c:1306:9: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
CPP     lib/cximage-6.0/CxImage/ximage.o
CPP     xbmc/guilib/GUIMessage.o
CPP     lib/cximage-6.0/CxImage/ximaico.o
CPP     lib/cximage-6.0/CxImage/ximajas.o
CPP     xbmc/guilib/GUIMoverControl.o
CPP     lib/cximage-6.0/CxImage/ximalpha.o
CPP     lib/cximage-6.0/CxImage/ximapal.o
CPP     lib/cximage-6.0/CxImage/ximaraw.o
CPP     lib/cximage-6.0/CxImage/ximatga.o
CPP     xbmc/guilib/GUIMultiImage.o
CPP     lib/cximage-6.0/CxImage/ximatran.o
CPP     xbmc/guilib/GUIMultiSelectText.o
CPP     lib/cximage-6.0/CxImage/ximawnd.o
CPP     lib/cximage-6.0/CxImage/tif_xfile.o
In file included from tif_xfile.cpp:10:0:
ximage.h:56:0: warning: "_XOPEN_SOURCE" redefined
/usr/include/features.h:165:0: note: this is the location of the previous definition
CPP     lib/cximage-6.0/CxImage/ximaenc.o
In file included from ximaenc.cpp:17:0:
ximapng.h: In static member function 'static void CxImagePNG::user_error_fn(png_struct*, const char*)':
ximapng.h:72:25: error: invalid use of incomplete type 'struct png_struct'
/usr/include/libpng15/png.h:822:16: error: forward declaration of 'struct png_struct'
ximapng.h:73:18: error: invalid use of incomplete type 'struct png_struct'
/usr/include/libpng15/png.h:822:16: error: forward declaration of 'struct png_struct'
ximaenc.cpp: In member function 'bool CxImage::CheckFormat(BYTE*, DWORD, DWORD)':
ximaenc.cpp:1114:28: warning: NULL used in arithmetic
make[2]: *** [ximaenc.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-tv/xbmc-9999/work/xbmc-9999/lib/cximage-6.0/CxImage'
make[1]: *** [CxImage/cximage.a] Error 2
make[1]: *** Waiting for unfinished jobs....



[ebuild   R   *] media-tv/xbmc-9999  USE="alsa bluray css projectm%* rsxs%* samba%* udev vaapi xrandr -airplay% (-altivec) -avahi -debug -goom% -joystick -midi -profile -pulseaudio -rtmp -sse -sse2 -vdpau -webserver
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-10-27 21:08:54 UTC
This was already looked into at:

http://bugs.gentoo.org/380127

And reported to upstream here at:

http://trac.xbmc.org/ticket/12001
http://trac.xbmc.org/ticket/11977

I'm not sure what else we can do, other than wait for upstream to finally act on it. Should be pretty embarrasing from them for the project to not compile on mainline, stable libpng.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-10-27 21:09:50 UTC

*** This bug has been marked as a duplicate of bug 380127 ***