Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356285 - media-gfx/inkscape-0.48.1: emerge fails with compile error
Summary: media-gfx/inkscape-0.48.1: emerge fails with compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 356355 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-24 10:48 UTC by Nikos Chantziaras
Modified: 2011-02-25 06:38 UTC (History)
5 users (show)

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


Attachments
emerge --info =media-gfx/inkscape-0.48.1 (emerge--info,4.77 KB, text/plain)
2011-02-24 10:49 UTC, Nikos Chantziaras
Details
emerge --info "=media-gfx/inkscape-0.48.1" (error,3.75 KB, text/plain)
2011-02-24 12:08 UTC, Serge Plyukhin
Details
Moves the #include outside of #ifdef blocks (inkscape-lcmsless-colorprofile.patch,405 bytes, patch)
2011-02-24 15:30 UTC, Shannon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2011-02-24 10:48:30 UTC
Emerging media-gfx/inkscape-0.48.1 fails with the following error:

color-profile.cpp: In static member function 'static std::list<Glib::ustring> Inkscape::ColorProfile::getProfileFiles()':
color-profile.cpp:770:34: error: 'sanitizeString' is not a member of 'Inkscape::IO'
make[2]: *** [color-profile.o] Error 1
Comment 1 Nikos Chantziaras 2011-02-24 10:49:00 UTC
Created attachment 263671 [details]
emerge --info =media-gfx/inkscape-0.48.1
Comment 2 Nikos Chantziaras 2011-02-24 10:52:56 UTC
emerge -pv inkscape:

[ebuild     U ] media-gfx/inkscape-0.48.1 [0.48.0] USE="-debug -dia -gnome -gs -inkjar -lcms -nls -spell -wmf" 0 kB
Comment 3 Serge Plyukhin 2011-02-24 12:06:46 UTC
me too :-(

[ebuild     U ] media-gfx/inkscape-0.48.1 [0.48.0] USE="dia nls -debug -gnome -gs -inkjar -lcms -spell -wmf" 0 kB


Comment 4 Serge Plyukhin 2011-02-24 12:08:46 UTC
Created attachment 263681 [details]
emerge --info "=media-gfx/inkscape-0.48.1"
Comment 5 Shannon 2011-02-24 15:30:51 UTC
Created attachment 263693 [details, diff]
Moves the #include outside of #ifdef blocks

The '#include <io/sys.h>' is inside an #ifdef block for lcms. The actual reference to sanitizeString is outside of the #ifdef blocks for lcms.

So if you don't have the lcms use flag enabled you will get this compile error.

This patch moves the #include to the top of the file outside of any #ifdef blocks. It compiled fine for me.
Comment 6 Tim Harder gentoo-dev 2011-02-24 20:48:20 UTC
Fixed in CVS. Thanks for the patch.
Comment 7 Tim Harder gentoo-dev 2011-02-25 06:38:21 UTC
*** Bug 356355 has been marked as a duplicate of this bug. ***