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

Bug 129444

Summary: k3d fails with gcc 4.1
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: [OLD] GCC PortingAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: fauli, halcy0n, jakub, pdgreen
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 131170    
Bug Blocks: 117482    
Attachments: Allows k3d to compile under gcc-4.1

Description Patrizio Bassi 2006-04-10 01:18:24 UTC
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"k3d\" -DVERSION=\"0.5.0.37\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_FEOF_UNLOCKED=1 -DHAVE_FGETS_UNLOCKED=1 -DHAVE_GETC_UNLOCKED=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MEMPCPY=1 -DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STPCPY=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___ARGZ_COUNT=1 -DHAVE___ARGZ_STRINGIFY=1 -DHAVE___ARGZ_NEXT=1 -DHAVE___FSETLOCKING=1 -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_DLFCN_H=1 -DSIZEOF_VOIDP=4 -DK3D_PLATFORM_POSIX=1 -DK3D_HAVE_X86=1 -DHAVE_VA_COPY=1 -DVA_COPY=va_copy -DHAPY_HAVE_NUMERIC_LIMITS=1 -DHAPY_HAVE_STD_ITERATOR_TYPE=1 -DK3D_HAVE_EXPAT=1 -DHAVE_LIBBOOST_REGEX=1 -DHAVE_LIBBOOST_DATE_TIME=1 -DHAVE_LIBBOOST_FILESYSTEM=1 -DK3D_HAVE_SVG_ICONS=1 -I. -I. -I.. -I.. -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -DK3D_HAVE_SIGC_2_0 -I/usr/include -I/usr/include -Wall -Wno-ctor-dtor-privacy -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -MT bounding_box.lo -MD -MP -MF .deps/bounding_box.Tpo -c bounding_box.cpp  -fPIC -DPIC -o .libs/bounding_box.o
vectors.h:94: error: extra qualification 'k3d::vector2::' on member 'operator[]'
make[2]: *** [bounding_box.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/k3d-0.5.0.37-r1/work/k3d-0.5.0.37/k3dsdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/k3d-0.5.0.37-r1/work/k3d-0.5.0.37/k3dsdk'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/k3d-0.5.0.37-r1 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  k3d-0.5.0.37-r1.ebuild, line 82:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Robert Marmorstein 2006-04-11 05:48:57 UTC
Created attachment 84441 [details, diff]
Allows k3d to compile under gcc-4.1

It looks like this has been dealt with upstream.  The latest CVS version has several patches that fix compilation with gcc-4.1  We are several versions behind the current stable in portage.  Maybe a version bump would fix this.  Either way, I managed to get it to compile by adding the attached patch.  Let me know if it works for you.
Comment 2 Patrizio Bassi 2006-04-12 08:01:54 UTC
works perfectly, runtime too.

please apply to portage and close.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2006-05-01 09:41:04 UTC
gfx: do you guys want to bump this, or just apply the attached patch?
Comment 4 Luca Barbato gentoo-dev 2006-05-01 11:58:45 UTC
we should bump it asap
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2006-06-06 21:38:55 UTC
So...should I just apply this patch? :)  I'd be happy to do that for you until you guys have time to bump it and test the new version.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2006-07-26 05:12:44 UTC
ping
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-31 03:58:13 UTC
*** Bug 145695 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-10-15 17:20:41 UTC
@graphics: what's up?
Comment 9 Luca Barbato gentoo-dev 2006-10-15 22:58:01 UTC
Please check the latest ebuild, works fine on ppc
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-10-22 05:38:57 UTC
OK, please test with 0.6.2.0 and reopen if it doesn't work. Thanks.