Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65983 - dvdstyler fails to compile with gcc-3.4.2
Summary: dvdstyler fails to compile with gcc-3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Dawson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-30 20:44 UTC by David Butler
Modified: 2004-10-05 04:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Butler 2004-09-30 20:44:12 UTC
dvdstyler failed to compile due to ambiguous overloaded function using gcc-3.4.2

Reproducible: Always
Steps to Reproduce:
1.emerge dvdstyler
2.
3.

Actual Results:  
compilation failed with ambiguous function call on an overloaded function

Expected Results:  
compiled correctly

Portage 2.0.51_rc7 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc distlocks"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdr compose
crypt cups dga directfb doc dvd encode esd evo fbcon foomaticdb footmaticdb gdbm
gif gimpprint gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile idea imap imlib
ipv6 java javascript joystick jpeg libg++ libgda libwww live mad matroska mikmod
mmx motif mozilla moznocompose moznoirc moznomail mozxmlterm mpeg ncurses nls
oav objc oggvorbis opengl oss pam pdflib perl pic png ppds pwdb python quicktime
readline rplay samba sasl sdl skey slang spell sse ssl stroke svg svga tcpd
tetex theora threads tiff truetype v4l v4l2 wmf wsconvert x86 xinerama xml xml2
xmms xprint xv xvid zlib"
Comment 1 Joe McCann (RETIRED) gentoo-dev 2004-09-30 20:47:27 UTC
please post the actual error as well
Comment 2 David Butler 2004-09-30 20:54:02 UTC
the error is as follows:

In file included from dvdstyler.cpp:13:
Config.h: In member function `int Config::GetDefMenuFormat(bool)':
Config.h:88: error: call of overloaded `Read(const char[24], const int&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxStrin g&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxStrin g&, long int) const
Config.h: In member function `bool Config::GetIsoDo(bool)':
Config.h:102: error: call of overloaded `Read(const char[7], const bool&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxStrin g&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxStrin g&, long int) const
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2004-10-01 08:52:21 UTC
I get the same error when trying to compile dvdstyler-1.05-r1 on my ~x86 system with gcc 3.4.2.
Comment 4 Patrick Dawson (RETIRED) gentoo-dev 2004-10-04 16:59:42 UTC
Confirmed and testing my fix.
Comment 5 Patrick Dawson (RETIRED) gentoo-dev 2004-10-04 17:12:45 UTC
Fixed. Please test (wait a couple hours, sync, and emerge) and reopen if I broke anything or it still doesn't work.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2004-10-04 18:50:58 UTC
I synced and tried to emerge it again and I now have more errors. The ebuild has a time of about an hour ago, so I know it is the fixed one.

g++ -DPACKAGE=\"\" -DVERSION=\"\"  -I. -I.      -march=athlon-tbird -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow  -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -DGNOME2  -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -DGNOME2 -I.. -c MainWin.cpp
In file included from dvdstyler.cpp:13:
Config.h: In member function `int Config::GetDefMenuFormat(bool)':
Config.h:92: error: call of overloaded `Read(const char[24], const int&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxString&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxString&, long int) const
Config.h: In member function `bool Config::GetIsoDo(bool)':
Config.h:106: error: call of overloaded `Read(const char[7], const bool&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxString&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxString&, long int) const
Config.h: In member function `bool Config::GetFormatDo(bool)':
Config.h:115: error: call of overloaded `Read(const char[14], const bool&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxString&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxString&, long int) const
make[2]: *** [dvdstyler.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from SettingsDlg.h:16,
                 from MainWin.cpp:14:
Config.h: In member function `int Config::GetDefMenuFormat(bool)':
Config.h:92: error: call of overloaded `Read(const char[24], const int&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxString&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxString&, long int) const
Config.h: In member function `bool Config::GetIsoDo(bool)':
Config.h:106: error: call of overloaded `Read(const char[7], const bool&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxString&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxString&, long int) const
Config.h: In member function `bool Config::GetFormatDo(bool)':
Config.h:115: error: call of overloaded `Read(const char[14], const bool&)' is ambiguous
/usr/include/wx/confbase.h:165: note: candidates are: bool wxConfigBase::Read(const wxString&, wxString*) const
/usr/include/wx/confbase.h:169: note:                 bool wxConfigBase::Read(const wxString&, long int*) const
/usr/include/wx/confbase.h:173: note:                 bool wxConfigBase::Read(const wxString&, int*) const
/usr/include/wx/confbase.h:177: note:                 bool wxConfigBase::Read(const wxString&, double*) const
/usr/include/wx/confbase.h:181: note:                 bool wxConfigBase::Read(const wxString&, bool*) const
/usr/include/wx/confbase.h:188: note:                 wxString wxConfigBase::Read(const wxString&, const wxString&) const
/usr/include/wx/confbase.h:191: note:                 long int wxConfigBase::Read(const wxString&, long int) const
make[2]: *** [MainWin.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dvdstyler-1.06/work/DVDStyler-1.06/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dvdstyler-1.06/work/DVDStyler-1.06/src'
make: *** [all-recursive] Error 1
Comment 7 Patrick Dawson (RETIRED) gentoo-dev 2004-10-05 04:38:13 UTC
Odd. It works for me with gcc-3.4.2-r2 on ~x86. Please post your emerge info.
Comment 8 Patrick Dawson (RETIRED) gentoo-dev 2004-10-05 04:41:50 UTC
Could you also post the version of wxGTK you're using? The output of "emerge -pv wxGTK" would be helpful.
Comment 9 Andrew Gaffney (RETIRED) gentoo-dev 2004-10-05 04:56:09 UTC
I took a look at my error messages and realized I was building 1.06 (which obviously has the same issue) from my overlay that I had pulled from another bug. I'm building 1.05-r1 again now. If I have problems, I'll post back.