Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130223 - dev-libs/tvision-2.0.3 doesn't compile (gcc4)
Summary: dev-libs/tvision-2.0.3 doesn't compile (gcc4)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 130224 130247 132569 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-04-17 01:11 UTC by Håvard Wall
Modified: 2006-08-28 07:15 UTC (History)
7 users (show)

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


Attachments
tvision-2.0.3-gcc4.patch (tvision-2.0.3-gcc4.patch,523 bytes, patch)
2006-04-17 02:01 UTC, Håvard Wall
Details | Diff
tvision-2.0.3.ebuild (tvision-2.0.3.ebuild,845 bytes, text/plain)
2006-04-17 02:02 UTC, Håvard Wall
Details
tvision-2.0.3-templateinstantiations.patch (tvision-2.0.3-templateinstantiations.patch,674 bytes, patch)
2006-04-17 10:45 UTC, Håvard Wall
Details | Diff
tvision-2.0.3.ebuild (tvision-2.0.3.ebuild,901 bytes, text/plain)
2006-04-17 10:47 UTC, Håvard Wall
Details
tvision-2.0.3.ebuild (tvision-2.0.3.ebuild,854 bytes, text/plain)
2006-04-25 11:50 UTC, Håvard Wall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Håvard Wall 2006-04-17 01:11:15 UTC
../classes/fpbase.cc: In member function 'CLY_int_filebuf* CLY_int_filebuf::open(FILE*, std::_Ios_Openmode)':
../classes/fpbase.cc:111: error: '_M_set_indeterminate' was not declared in this scope
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-17 01:21:44 UTC
*** Bug 130224 has been marked as a duplicate of this bug. ***
Comment 2 Håvard Wall 2006-04-17 02:01:28 UTC
Created attachment 84821 [details, diff]
tvision-2.0.3-gcc4.patch
Comment 3 Håvard Wall 2006-04-17 02:02:22 UTC
Created attachment 84822 [details]
tvision-2.0.3.ebuild

updated ebuild which applies the patch
Comment 4 Håvard Wall 2006-04-17 10:45:57 UTC
Created attachment 84844 [details, diff]
tvision-2.0.3-templateinstantiations.patch

More testing revealed an undefined symbol in /usr/lib/librhtv.so after compiling with gcc4: TInputLineBaseT<char, TDrawBuffer>::TInputLineBaseT(TRect const&, int)

This patch moves the template instantitions down, until after the function is defined, letting the symbols be resolved correctly.
Comment 5 Håvard Wall 2006-04-17 10:47:21 UTC
Created attachment 84845 [details]
tvision-2.0.3.ebuild

Updated ebuild which applies both patches.
Comment 6 Jon Hood (RETIRED) gentoo-dev 2006-04-20 17:23:48 UTC
*** Bug 130247 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2006-04-20 20:06:33 UTC
where did these patches come from ?  if upstream is still broken, you should submit there as well:
http://sourceforge.net/projects/tvision/
Comment 8 Håvard Wall 2006-04-21 03:04:39 UTC
The -fpermissive hack in the ebuild have to go to make other packages compile (ldcc for instance). I'm still working on a patch to remove this. Yes, I'll submit upstream when it's all finished, and then post it here.
Comment 9 Håvard Wall 2006-04-25 11:50:35 UTC
Created attachment 85474 [details]
tvision-2.0.3.ebuild

Updated ebuild which removes the -fpermissive hack (breaks packages compiling against tvision using gcc4) and removes the hard-coded -no-intl configure flags which is wrong IMHO.

The patches are in sync with tvision CVS.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2006-07-26 05:14:01 UTC
ping
Comment 11 SpanKY gentoo-dev 2006-07-30 12:53:41 UTC
added to 2.0.3 in cvs
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2006-08-16 20:56:40 UTC
i'm getting this on two different x86 boxes w/ gcc 4.0.3, 4.1.1, and 4.1.2svn.


g++  -I../include -I/usr/X11R6/include       -fPIC -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident  -c ../compat/iffilelen.cc -o ../makes/obj/iffilelen.lo
gcc  -I../include -I/usr/X11R6/include        -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/nl_langinfo.c -o ../makes/obj/nl_langinfo.o
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h: In member function 'typename std::messages<_CharT>::catalog std::messages<_CharT>::open(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::locale&, const char*) const':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:62: error: there are no arguments to 'bindtextdomain' that depend on a template parameter, so a declaration of 'bindtextdomain' must be available
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:62: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h: In member function 'virtual typename std::messages<_CharT>::catalog std::messages<_CharT>::do_open(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::locale&) const':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:82: error: there are no arguments to 'textdomain' that depend on a template parameter, so a declaration of 'textdomain' must be available
gcc  -I../include -I/usr/X11R6/include        -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/ntdirent.c -o ../makes/obj/ntdirent.o
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/isdir.c -o ../makes/obj/isdir.lo
make[1]: *** [../makes/obj/iffilelen.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/tvision-2.0.3/work/tvision/makes'
make: *** [static-lib] Error 2
make: *** Waiting for unfinished jobs....
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/isrelpath.c -o ../makes/obj/isrelpath.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/iswild.c -o ../makes/obj/iswild.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/itoa.c -o ../makes/obj/itoa.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/mkstemp.c -o ../makes/obj/mkstemp.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/nl_langinfo.c -o ../makes/obj/nl_langinfo.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/ntdirent.c -o ../makes/obj/ntdirent.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/pathvalid.c -o ../makes/obj/pathvalid.lo
gcc  -I../include -I/usr/X11R6/include      -fPIC  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -c ../compat/regex.c -o ../makes/obj/regex.lo
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h: In member function 'typename std::messages<_CharT>::catalog std::messages<_CharT>::open(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::locale&, const char*) const':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:62: error: there are no arguments to 'bindtextdomain' that depend on a template parameter, so a declaration of 'bindtextdomain' must be available
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:62: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h: In member function 'virtual typename std::messages<_CharT>::catalog std::messages<_CharT>::do_open(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::locale&) const':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:82: error: there are no arguments to 'textdomain' that depend on a template parameter, so a declaration of 'textdomain' must be available
make[1]: *** [../makes/obj/iffilelen.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/tvision-2.0.3/work/tvision/makes'
make: *** [dynamic-lib] Error 2

!!! ERROR: dev-libs/tvision-2.0.3 failed.


Portage 2.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
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.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS=" http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ ftp://cs.ubishops.ca/pub/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
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="/home/dirtyepic/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa bash-completion berkdb bluetooth bzip2 crypt dbus dri dts encode expat fortran gdbm gif glut gmp gtk hal imlib java jpeg kdeenablefinal kdehiddenvisibility mad mmx mp3 mpeg mpi ncurses nptl ogg opengl pam perl pic png python qt3 qt4 quicktime readline sdl spell sqlite sse sse2 ssl svg tcpd theora threads truetype usb vorbis xml xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en linguas_en_US linguas_en_GB userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Comment 13 Ryan Hill (RETIRED) gentoo-dev 2006-08-16 22:08:38 UTC
*** Bug 132569 has been marked as a duplicate of this bug. ***
Comment 14 Harald van Dijk (RETIRED) gentoo-dev 2006-08-28 07:15:25 UTC
> i'm getting this on two different x86 boxes w/ gcc 4.0.3, 4.1.1, and 4.1.2svn.

2.1.0_pre1 plus a fix for this added now.