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

Bug 384511

Summary: media-gfx/ufraw fails to build with raw USE-flag
Product: Gentoo Linux Reporter: Kolan Sh. <backbone>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Add zlib.h include directive into ufraw_writer.c

Description Kolan Sh. 2011-09-26 10:08:07 UTC
When choosing a USE-flag for raw media-gfx/ufraw stage compilation ends with an error "ufraw_writer.c:569:37: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)". I have tested ufraw-0.16 and ufraw-0.18 and both show same result.

Reproducible: Always

Steps to Reproduce:
1. USE=raw emerge -1v ufraw




Build is successful after I add the "#include" directive in ufraw_writer.c. (See patch in the attachments)
Comment 1 Kolan Sh. 2011-09-26 10:09:02 UTC
Created attachment 287761 [details, diff]
Add zlib.h include directive into ufraw_writer.c
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 06:52:49 UTC
(In reply to comment #0)
> When choosing a USE-flag for raw media-gfx/ufraw stage compilation ends with an
> error "ufraw_writer.c:569:37: error: ‘Z_BEST_COMPRESSION’ undeclared (first use
> in this function)". I have tested ufraw-0.16 and ufraw-0.18 and both show same
> result.

I see this in ufraw-0.18, so closing as INVALID

#ifdef HAVE_LIBZ
#include <zlib.h>       /* for libpng 1.5.x */
#endif

Also, ufraw doesn't have USE flag called "raw" so this must be coming from some overlay.