Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374337 - media-gfx/hugin-2011.0.0 : ebuild need a debug USE flag
Summary: media-gfx/hugin-2011.0.0 : ebuild need a debug USE flag
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
Depends on:
Reported: 2011-07-07 11:50 UTC by LE GARREC Vincent
Modified: 2013-11-24 16:44 UTC (History)
2 users (show)

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

emerge-info (emerge-info.log,9.66 KB, text/plain)
2011-07-07 11:50 UTC, LE GARREC Vincent

Note You need to log in before you can comment on or make changes to this bug.
Description LE GARREC Vincent 2011-07-07 11:50:56 UTC
Created attachment 279319 [details]

I have debug in my USE flag. When I try to launch hugin I have :
Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.8 (debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6),
and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6).

I *think* it's because the wxGTK package is compiled with the debug USE flag and hugin not.

The fact is the file /var/tmp/portage/media-gfx/hugin-2011.0.0/temp/gentoo_rules.cmake have a "-DNDEBUG" on the "CMAKE_C_COMPILE_OBJECT" ligne and on the "CMAKE_CXX_COMPILE_OBJECT" ligne.

By adding debug USE flag on the ebuild (IUSE="lapack sift debug $(echo ${LANGS//\ /\ linguas_})") and recompiling it, the "-DNDEBUG" disappear and hugin does not have problem any more.

Reproducible: Always

Steps to Reproduce:
1. Enable debug USE flag and recompile world (I *think* that just recompile wxGTK is enough)
2. Compile hugin and have the "Fatal Error"
3. Had a debug flag into the hugin's ebuild
4. Recompile hugin with debug enable and the "Fatal Error" disappears

Comment 1 Mark Wagner 2012-01-30 07:37:54 UTC
I can confirm this: Hugin and wxGTK need to have the same debug settings.  I was experiencing the same problem, and adding a "debug" USE-flag to the Hugin ebuild fixed it.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2013-11-24 16:44:02 UTC
+*hugin-9999 (24 Nov 2013)
+*hugin-2012.0.0-r1 (24 Nov 2013)
+  24 Nov 2013; Justin Lecher <> +hugin-2012.0.0-r1.ebuild,
+  hugin-2013.0.0.ebuild, +hugin-9999.ebuild, +files/hugin-2012.0.0-boost.patch,
+  +files/hugin-2012.0.0-perl.patch, +files/hugin-2013.0.0-boost.patch,
+  metadata.xml:
+  Backport fix for building with newer boost; Use system cmake modules to
+  detect lapack; backport patch to use perl 5.16; fixes bugs
+  #296510,300127,373387,374337,388149,404227,484238