Subject: pkg/28335: misc/kdeedu3 fails to build (call of overloaded `KStarsDateTime(int)' is ambiguous)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <michael@nosflow.com>
List: pkgsrc-bugs
Date: 11/16/2004 23:22:00
>Number:         28335
>Category:       pkg
>Synopsis:       misc/kdeedu3 fails to build (call of overloaded `KStarsDateTime(int)' is ambiguous)
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 16 23:22:00 +0000 2004
>Originator:     Michael Wolfson
>Release:        2.0RC5
>Organization:
>Environment:
NetBSD gizmobook 2.0_RC5 NetBSD 2.0_RC5 (GIZMOBOOK) #3: Mon Nov 15 05:34:18 UTC 2004  mw@gizmobook:/usr/src/src-2-0/sys/arch/macppc/compile/GIZMOBOOK macppc

>Description:
When building misc/kdeedu3:

if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/pkg/include -I/usr/pkg/qt3
/include -I/usr/X11R6/include  -I/usr/pkg/include -I/usr/X11R6/include  -DQT_THR
EAD_SUPPORT -I/usr/pkg/include -I/usr/include -I/usr/pkg/qt3/include -DGLX_GLXEX
T_LEGACY -I/usr/pkg/include/freetype2 -I/usr/include/krb5  -Wnon-virtual-dtor -W
no-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBU
G -O2 -O2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/pkg/qt3/include -DGL
X_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -I/usr/include/krb5 -fno-exceptions
 -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
-DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -MT timezonerule.o -MD -MP -MF
".deps/timezonerule.Tpo" -c -o timezonerule.o timezonerule.cpp; \
then mv -f ".deps/timezonerule.Tpo" ".deps/timezonerule.Po"; else rm -f ".deps/t
imezonerule.Tpo"; exit 1; fi
timezonerule.cpp: In member function `void
   TimeZoneRule::nextDSTChange_LTime(const KStarsDateTime&)':
timezonerule.cpp:231: error: call of overloaded `KStarsDateTime(int)' is
   ambiguous
kstarsdatetime.h:45: error: candidates are: KStarsDateTime::KStarsDateTime(long double)
kstarsdatetime.h:44: error:
   KStarsDateTime::KStarsDateTime(double)
kstarsdatetime.h:41: error:
   KStarsDateTime::KStarsDateTime(const KStarsDateTime&)
kstarsdatetime.h:40: error:                 KStarsDateTime::KStarsDateTime(long
   int)
timezonerule.cpp: In member function `void
   TimeZoneRule::previousDSTChange_LTime(const KStarsDateTime&)':
timezonerule.cpp:265: error: call of overloaded `KStarsDateTime(int)' is
   ambiguous
kstarsdatetime.h:45: error: candidates are: KStarsDateTime::KStarsDateTime(long double)
kstarsdatetime.h:44: error:
   KStarsDateTime::KStarsDateTime(double)
kstarsdatetime.h:41: error:
   KStarsDateTime::KStarsDateTime(const KStarsDateTime&)
kstarsdatetime.h:40: error:                 KStarsDateTime::KStarsDateTime(long
   int)
gmake[4]: *** [timezonerule.o] Error 1
gmake[4]: Leaving directory `/usr/src/pkgsrc/misc/kdeedu3/work/kdeedu-3.3.1/kstars/kstars'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/src/pkgsrc/misc/kdeedu3/work/kdeedu-3.3.1/kstars/kstars'

>How-To-Repeat:
cd misc/kdeedu3
make
>Fix: