DGifOpenFileHandle takes an optional extra parameter (a pointer to an int for an error code) on giflib 5, so the build fails. The attached patch fixes the issue. Reproducible: Always
Created attachment 338922 [details, diff] Pass NULL as second argument if on giflib5.
Confirm both build issue and patch effectiveness to complete the build for imlib2-1.4.6
should be all set now in the tree; thanks for the report! Commit message: Add fix from upstream for giflib-5 http://sources.gentoo.org/media-libs/imlib2/files/imlib2-1.4.5-giflib-5.patch?rev=1.1 http://sources.gentoo.org/media-libs/imlib2/imlib2-1.4.5-r1.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/media-libs/imlib2/imlib2-1.4.6-r1.ebuild?r1=1.1&r2=1.2