[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 111431] New: Compile error on Solaris 2.9 in mixer_sun.cpp
From: Bernd Kuhls <bernd.kuhls () informatik ! uni-oldenburg ! de>
Date: 2005-08-24 16:25:10
Message-ID: 20050824182508.111431.bernd.kuhls () informatik ! uni-oldenburg ! de
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=111431
Summary: Compile error on Solaris 2.9 in mixer_sun.cpp
Product: kmix
Version: unspecified
Platform: Compiled Sources
OS/Version: Solaris
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: general
AssignedTo: esken kde org
ReportedBy: bernd.kuhls informatik uni-oldenburg de
Version: (using KDE KDE 3.4.2)
Installed from: Compiled From Sources
Compiler: gcc-3.3.5
OS: Solaris
if /bin/bash ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. \
-I.. -I/usr/local/KDE-3.4.2/include -I/usr/local/qt-050201/include \
-DQT_THREAD_SUPPORT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 \
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith \
-Wno-non-virtual-dtor -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new \
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT \
-DQT_NO_TRANSLATION -MT mixer.lo -MD -MP -MF ".deps/mixer.Tpo" -c -o mixer.lo \
mixer.cpp; \ then mv -f ".deps/mixer.Tpo" ".deps/mixer.Plo"; else rm -f \
".deps/mixer.Tpo"; exit 1; fi In file included from kmix-platforms.cpp:67,
from mixer.cpp:33:
mixer_sun.cpp:129: error: prototype for `Mixer_SUN::Mixer_SUN()' does not match
any in class `Mixer_SUN'
mixer_sun.h:31: error: candidates are: Mixer_SUN::Mixer_SUN(const Mixer_SUN&)
mixer_sun.h:33: error: Mixer_SUN::Mixer_SUN(int)
mixer_sun.cpp: In constructor `Mixer_SUN::Mixer_SUN()':
mixer_sun.cpp:129: error: no matching function for call to `Mixer_Backend::
Mixer_Backend()'
mixer_backend.h:27: error: candidates are: Mixer_Backend::Mixer_Backend(const
Mixer_Backend&)
mixer_backend.h:32: error: Mixer_Backend::Mixer_Backend(int)
mixer_sun.cpp:130: error: `devnum' undeclared (first use this function)
mixer_sun.cpp:130: error: (Each undeclared identifier is reported only once for
each function it appears in.)
mixer_sun.cpp: At global scope:
mixer_sun.cpp:138: error: destructors may not have parameters
mixer_sun.cpp: In destructor `virtual Mixer_SUN::~Mixer_SUN()':
mixer_sun.cpp:138: error: only constructors take base initializers
make[3]: *** [mixer.lo] Error 1
Solved by this patch: http://lists.kde.org/?l=kde-solaris&m=112429139929682&w=2
Index: mixer_sun.cpp
===================================================================
--- mixer_sun.cpp (revision 437436)
+++ mixer_sun.cpp (working copy)
@ -135,7 +135,7 @
// FUNCTION : Mixer::Mixer
// DESCRIPTION : Class destructor.
//======================================================================
-Mixer_SUN::~Mixer_SUN(int devnum) : Mixer_Backend(devnum)
+Mixer_SUN::~Mixer_SUN()
{
close();
}
@ -159,7 +159,7 @
if(audiodev.isNull())
audiodev = "/dev/audio";
audiodev += "ctl";
- if ( ( fd = open( audiodev.data(), O_RDWR ) ) < 0 )
+ if ( ( fd = ::open( audiodev.data(), O_RDWR ) ) < 0 )
{
if ( errno == EACCES )
return Mixer::ERR_PERM;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic