Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148763 - media-gfx/truevision-0.5.5.2 fails to compile
Summary: media-gfx/truevision-0.5.5.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Graphics Project
URL: http://truevision.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 05:09 UTC by quazgar
Modified: 2007-03-24 03:15 UTC (History)
4 users (show)

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


Attachments
the emerge output (truevision.log,52.82 KB, text/plain)
2006-09-23 05:39 UTC, quazgar
Details
Patch for ebuild (truevision-0.5.5.2-r1.patch,400 bytes, patch)
2007-03-23 16:04 UTC, René Kraneis
Details | Diff
Patch with gcc4 fixes (truevision-0.5.5.2-gcc-4.patch,38.50 KB, text/plain)
2007-03-23 16:09 UTC, René Kraneis
Details
Same patch (gcc4 fixes), minor cosmetic changes (truevision-0.5.5.2-gcc-4.patch,38.50 KB, patch)
2007-03-23 16:25 UTC, René Kraneis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description quazgar 2006-09-23 05:09:44 UTC
My emerge --info:

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.5
Last Sync: Fri, 22 Sep 2006 02:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/co     nfig /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/conf     ig/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ h     ttp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LINGUAS="en de es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after      --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi aim alsa apache2 bash-completion berkdb bitmap-fonts calendar caps cdr cli crypt cups dga directfb      dlloader dri dvd elibc_glibc emacs encode exif fbcon ffmpeg fftw firefox flac foomaticdb ftp gd gdbm gif glut gpm gtk gtk2      gtkhtml guile icq imagemagick input_devices_aiptek input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog ja     va javascript jikes joystick jpeg jpeg2k kdexdeltas kernel_linux lcms leim libcaca libg++ libwww linguas_de linguas_en lingu     as_es lm_sensors maildir mbox mcal memlimit mime mmx mng mp3 mpeg msn ncurses neXt nls nocd nptl nptlonly nsplugin offensive      ogg opengl oscar pam pcre pdf perl plotutils png ppds pppd python qt4 quicktime readline reflection samba sdl session socke     ts sox speex spell spl ssl svg svga tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GN     U v4l vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga videos vorbis win32codecs wmf      xml xmms xorg xosd xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-23 05:14:29 UTC
Are we supposed to guess, or will you post some errors? :P
Comment 2 quazgar 2006-09-23 05:39:25 UTC
Created attachment 97835 [details]
the emerge output

The output of emerging truevision
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-23 05:47:35 UTC
Need to reopen bug after providing the requested info...
Comment 4 Joël 2006-09-23 10:37:33 UTC
Same here (with same gcc version - 4.1.1)
Comment 5 René Kraneis 2007-01-23 18:35:10 UTC
Here it also fails with gcc 4.1.1
I can add emerge --info and emerge truevision output but it's quite the same as rubik's cube's (attachment).

Errors seem to be:

../include/material.h: In member function 'virtual void Material::edit_widget(GtkWidget*)':
../include/material.h:155: error: 'sign_name_focusout' was not declared in this scope

../include/objparam.h:160: error: extra qualification 'ObjParam_bool::' on member 'ObjParam_bool'
Comment 6 René Kraneis 2007-01-24 18:12:30 UTC
> Errors seem to be:
> 
> ../include/material.h: In member function 'virtual void
> Material::edit_widget(GtkWidget*)':
> ../include/material.h:155: error: 'sign_name_focusout' was not declared in this
> scope
> 

Adding "-ffriend-injection" C(XX)Flags seems to "solve" this one. I had to compile the file atmosphere.cc manually for testing as I was unable to convince configure to use them -.-
Comment 7 Marcelo Goes (RETIRED) gentoo-dev 2007-03-23 02:51:55 UTC
Regarding objparam.h:

-               ObjParam_bool::ObjParam_bool( ObjParam_bool & ref ) : ObjParam( ref ), TvWidget_bool( ref ) {}
+               ObjParam_bool( ObjParam_bool & ref ) : ObjParam( ref ), TvWidget_bool( ref ) {}
+

Explanation:
http://help.lockergnome.com/linux/compile-lve-error-ftopict380899.html

Regarding material.h:
Haven't quite figured this one out. This may be helpful:
http://gcc.gnu.org/ml/gcc-help/2007-02/msg00197.html

Cheers

Comment 8 René Kraneis 2007-03-23 16:04:08 UTC
Created attachment 114142 [details, diff]
Patch for ebuild

Patch for ebuild to incorporate patch for gcc4 fixes
Comment 9 René Kraneis 2007-03-23 16:09:11 UTC
Created attachment 114146 [details]
Patch with gcc4 fixes

Patch to remove extra qualification in objparam.h (by Marcelo Goes) and extra declarations to remove the reliance on friend name injection.

ref. http://womble.decadentplace.org.uk/c++/syntax-errors.html

Compiles and runs on my machine. I hope that's it.
Comment 10 René Kraneis 2007-03-23 16:25:59 UTC
Created attachment 114150 [details, diff]
Same patch (gcc4 fixes), minor cosmetic changes

Only changed some of my comments reading "friend insertion" to "friend injection" ;-)
Comment 11 Marcelo Goes (RETIRED) gentoo-dev 2007-03-24 03:15:04 UTC
Wow, that was a lot of work!
Thanks, added to cvs (patch should hit the mirrors soon enough).
Please submit to upstream :-).

Cheers,
Marcelo