Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384511 - media-gfx/ufraw fails to build with raw USE-flag
Summary: media-gfx/ufraw fails to build with raw USE-flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 10:08 UTC by Kolan Sh.
Modified: 2011-10-09 06:52 UTC (History)
0 users

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


Attachments
Add zlib.h include directive into ufraw_writer.c (ufraw_zlib_include.patch,322 bytes, patch)
2011-09-26 10:09 UTC, Kolan Sh.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.