Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379081 - media-gfx/enblend-4.0 build fails, invalid typecast
Summary: media-gfx/enblend-4.0 build fails, invalid typecast
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 16:01 UTC by Andreas K. Hüttel
Modified: 2012-10-27 18:40 UTC (History)
0 users

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


Attachments
compressed build log (enblend-4.0:20110813-090252.log.gz,7.14 KB, application/x-gzip)
2011-08-13 16:01 UTC, Andreas K. Hüttel
Details
emerge --info (emerge-info.txt,18.10 KB, text/plain)
2011-08-13 16:15 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2011-08-13 16:01:00 UTC
Created attachment 283197 [details]
compressed build log

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -march=native -O2 -pipe -ggdb --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-png.o -MD -MP -MF .deps/libvigra_impex_a-png.Tpo -c -o libvigra_impex_a-png.o `test -f 'png.cxx' || echo './'`png.cxx
png.cxx: In Elementfunktion »void vigra::PngDecoderImpl::init()«:
png.cxx:331:87: Fehler: ungültige Umwandlung von »png_byte**« in »char**«
png.cxx:331:87: Fehler:   Argument 5 von »png_uint_32 png_get_iCCP(const png_struct*, const png_info*, char**, int*, char**, png_uint_32*)« wird initialisiert
png.cxx: In Elementfunktion »void vigra::PngEncoderImpl::finalize()«:
png.cxx:600:63: Warnung: veraltete Konvertierung von Zeichenkettenkonstante in »char*«
png.cxx:600:63: Fehler: ungültige Umwandlung von »vigra::ArrayVector<unsigned char, std::allocator<unsigned char> >::value_type*« in »char*«
png.cxx:600:63: Fehler:   Argument 5 von »void png_set_iCCP(png_struct*, png_info*, char*, int, char*, png_uint_32)« wird initialisiert
In file included from png.cxx:55:0:
png.cxx: In constructor »vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)«:
png.cxx:206:51: Warnung: ignoring return value of »size_t fread(void*, size_t, size_t, FILE*)«, declared with attribute warn_unused_result
make[4]: *** [libvigra_impex_a-png.o] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src/vigra_impex'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d'
make: *** [all] Fehler 2

"ungültige Umwandlung" = "invalid cast"
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-08-13 16:15:06 UTC
Created attachment 283213 [details]
emerge --info


* Searching for libpng ...
[IP-] [  ] media-libs/libpng-1.2.45:1.2
[IP-] [  ] media-libs/libpng-1.4.8:0
Comment 2 Rafał Mużyło 2011-08-13 16:36:33 UTC
As I mentioned in a related forum thread, 1.5 patch needs a minor adjustment
- up till 1.4 5th argument for png_{g,s}et_iCCP was png_charp{,*}, since 1.5 it's png_bytep{,*}.
It's just a matter of an additional #ifdef.
Comment 3 Markus Meier gentoo-dev 2011-09-26 22:13:17 UTC
is this still an issue? from the date of your last sync, this should already be fixed in tree. libpng-1.5 patch is only applied when >=libpng-1.5 is actually installed.
(and sorry for the delay...)

  12 Aug 2011; Samuli Suominen <ssuominen@gentoo.org> enblend-4.0.ebuild:
  Seems the -libpng15.patch isn't entirely compatible with libpng14, apply
  workaround from bug #378677
Comment 4 Pacho Ramos gentoo-dev 2012-10-27 18:40:54 UTC
(In reply to comment #3)
> is this still an issue? from the date of your last sync, this should already
> be fixed in tree. libpng-1.5 patch is only applied when >=libpng-1.5 is
> actually installed.
> (and sorry for the delay...)
> 
>   12 Aug 2011; Samuli Suominen <ssuominen@gentoo.org> enblend-4.0.ebuild:
>   Seems the -libpng15.patch isn't entirely compatible with libpng14, apply
>   workaround from bug #378677