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

Bug 219783

Summary: media-gfx/hugin-0.6.1-r2 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: hugin-0.6.1-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-29 23:14:51 UTC
Making all in common
make[2]: Entering directory `/var/tmp/portage/media-gfx/hugin-0.6.1-r2/work/hugin-0.6.1/src/common'
/bin/sh ../../libtool --tag=CXX   --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H "-I." -I../../src/include -I../../src/include    -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT graph.lo -MD -MP -MF .deps/graph.Tpo -c -o graph.lo graph.cpp
/bin/sh ../../libtool --tag=CXX   --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H "-I." -I../../src/include -I../../src/include    -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c -o utils.lo utils.cpp
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src/include -I../../src/include -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT graph.lo -MD -MP -MF .deps/graph.Tpo -c graph.cpp -o graph.o
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src/include -I../../src/include -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.cpp -o utils.o
In file included from utils.cpp:33:
../../src/include/common/utils.h: In function ‘bool utils::stringToDouble(const STR&, double&)’:
../../src/include/common/utils.h:165: error: there are no arguments to ‘strdup’ that depend on a template parameter, so a declaration of ‘strdup’ must be available
../../src/include/common/utils.h:165: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../src/include/common/utils.h:178: error: there are no arguments to ‘strtod’ that depend on a template parameter, so a declaration of ‘strtod’ must be available
../../src/include/common/utils.h:182: error: there are no arguments to ‘free’ that depend on a template parameter, so a declaration of ‘free’ must be available
utils.cpp: In function ‘std::string utils::doubleToString(double, int)’:
utils.cpp:120: error: ‘strcpy’ was not declared in this scope
make[2]: *** [utils.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/graph.Tpo .deps/graph.Plo
make[2]: Leaving directory `/var/tmp/portage/media-gfx/hugin-0.6.1-r2/work/hugin-0.6.1/src/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/hugin-0.6.1-r2/work/hugin-0.6.1/src'
make: *** [all-recursive] Error 1
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-29 23:15:56 UTC
Created attachment 151379 [details, diff]
hugin-0.6.1-gcc43.patch

Fixes the problem. Home-spun patch.
Comment 2 Markus Meier gentoo-dev 2008-05-02 11:46:46 UTC
Fixed in cvs, thanks for the patch.
Comment 3 SpanKY gentoo-dev 2008-05-10 11:40:59 UTC
you fixed 0.6.1, but not 0.7_beta4 which is the one that really matters ... ive gone ahead and added the patch to that version as well

http://sources.gentoo.org/media-gfx/hugin/hugin-0.7_beta4-r1.ebuild?r1=1.3&r2=1.4