Summary: | media-gfx/enblend-4.0 compilation fails w/o libpng-1.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | b4max <maxbecker> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andreamtp+bz, anton.bugs, dschridde+gentoobugs, maxbecker, ssuominen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | corrected ebuild |
Description
b4max
2011-08-10 16:37:48 UTC
Created attachment 282837 [details]
corrected ebuild
This ebuild checks whether libpng really is >= version 1.5 already and only applies the patch if it is
The actual compilation error: make[4]: Entering directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src/vigra_impex' 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-bmp.o -MD -MP -MF .deps/libvigra_impex_a-bmp.Tpo -c -o libvigra_impex_a-bmp.o `test -f 'bmp.cxx' || echo './'`bmp.cxx mv -f .deps/libvigra_impex_a-bmp.Tpo .deps/libvigra_impex_a-bmp.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-byteorder.o -MD -MP -MF .deps/libvigra_impex_a-byteorder.Tpo -c -o libvigra_impex_a-byteorder.o `test -f 'byteorder.cxx' || echo './'`byteorder.cxx mv -f .deps/libvigra_impex_a-byteorder.Tpo .deps/libvigra_impex_a-byteorder.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-codecmanager.o -MD -MP -MF .deps/libvigra_impex_a-codecmanager.Tpo -c -o libvigra_impex_a-codecmanager.o `test -f 'codecmanager.cxx' || echo './'`codecmanager.cxx mv -f .deps/libvigra_impex_a-codecmanager.Tpo .deps/libvigra_impex_a-codecmanager.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-gif.o -MD -MP -MF .deps/libvigra_impex_a-gif.Tpo -c -o libvigra_impex_a-gif.o `test -f 'gif.cxx' || echo './'`gif.cxx mv -f .deps/libvigra_impex_a-gif.Tpo .deps/libvigra_impex_a-gif.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-hdr.o -MD -MP -MF .deps/libvigra_impex_a-hdr.Tpo -c -o libvigra_impex_a-hdr.o `test -f 'hdr.cxx' || echo './'`hdr.cxx mv -f .deps/libvigra_impex_a-hdr.Tpo .deps/libvigra_impex_a-hdr.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/include/OpenEXR -O2 -march=native -mtune=native -fomit-frame-pointer -pipe -MT iccjpeg.o -MD -MP -MF .deps/iccjpeg.Tpo -c -o iccjpeg.o iccjpeg.c mv -f .deps/iccjpeg.Tpo .deps/iccjpeg.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-imageinfo.o -MD -MP -MF .deps/libvigra_impex_a-imageinfo.Tpo -c -o libvigra_impex_a-imageinfo.o `test -f 'imageinfo.cxx' || echo './'`imageinfo.cxx mv -f .deps/libvigra_impex_a-imageinfo.Tpo .deps/libvigra_impex_a-imageinfo.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-jpeg.o -MD -MP -MF .deps/libvigra_impex_a-jpeg.Tpo -c -o libvigra_impex_a-jpeg.o `test -f 'jpeg.cxx' || echo './'`jpeg.cxx mv -f .deps/libvigra_impex_a-jpeg.Tpo .deps/libvigra_impex_a-jpeg.Po 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 -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --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 member function ‘void vigra::PngDecoderImpl::init()’: png.cxx:331:87: error: invalid conversion from ‘png_byte**’ to ‘char**’ png.cxx:331:87: error: initializing argument 5 of ‘png_uint_32 png_get_iCCP(const png_struct*, const png_info*, char**, int*, char**, png_uint_32*)’ png.cxx: In member function ‘void vigra::PngEncoderImpl::finalize()’: png.cxx:600:63: warning: deprecated conversion from string constant to ‘char*’ png.cxx:600:63: error: invalid conversion from ‘vigra::ArrayVector<unsigned char, std::allocator<unsigned char> >::value_type*’ to ‘char*’ png.cxx:600:63: error: initializing argument 5 of ‘void png_set_iCCP(png_struct*, png_info*, char*, int, char*, png_uint_32)’ In file included from png.cxx:55:0: png.cxx: In constructor ‘vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)’: png.cxx:206:51: warning: 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] Error 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] Error 1 make[3]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d' make: *** [all] Error 2 emake failed This is most likely related to bug#355893. The same problem here. The libpng-1.5 patch must not be applied with currently stable libpng-1.4. Samuli, please fix it. (In reply to comment #1) > Created attachment 282837 [details] > corrected ebuild > > This ebuild checks whether libpng really is >= version 1.5 already and only > applies the patch if it is Same problem here, thanks b4max for your fix: it works ;) cheers workaround added to tree. will push the real fix to upstream asap... Thanks for the quick resolution. No offence, but I suggest not to touch stable ebuilds in future. Nobody wants to see stable tree broken. Instead, all changes should be done in -r1 revision if possible, especially with regards to sensitive stuff such as libpng. |