Summary: | dev-libs/tvision-2.0.3 doesn't compile (gcc4) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Håvard Wall <haavardw> |
Component: | [OLD] GCC Porting | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fauli, fcoiffie, halcy0n, maxposedon, rhill, truedfx, vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 117482 | ||
Attachments: |
tvision-2.0.3-gcc4.patch
tvision-2.0.3.ebuild tvision-2.0.3-templateinstantiations.patch tvision-2.0.3.ebuild tvision-2.0.3.ebuild |
Description
Håvard Wall
2006-04-17 01:11:15 UTC
*** Bug 130224 has been marked as a duplicate of this bug. *** Created attachment 84821 [details, diff]
tvision-2.0.3-gcc4.patch
Created attachment 84822 [details]
tvision-2.0.3.ebuild
updated ebuild which applies the patch
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.
Created attachment 84845 [details]
tvision-2.0.3.ebuild
Updated ebuild which applies both patches.
*** Bug 130247 has been marked as a duplicate of this bug. *** where did these patches come from ? if upstream is still broken, you should submit there as well: http://sourceforge.net/projects/tvision/ 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. 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.
ping added to 2.0.3 in cvs 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 *** Bug 132569 has been marked as a duplicate of this bug. *** > 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.
|