Bug 70509 - Compile error on Solaris 2.6
Summary: Compile error on Solaris 2.6
Status: RESOLVED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 17:10 UTC by Steve Evans
Modified: 2004-01-11 13:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch for kdemultimedia/kmix/mixer_sun.cpp (690 bytes, patch)
2003-12-17 17:29 UTC, Torsten Kasch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2003-12-15 17:10:29 UTC
Version:            (using KDE KDE 3.1.94)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2.3 
OS:          Solaris

I get this compile error on Solaris 2.6:

if /bin/ksh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/opt/qt/include   -I/gorbag/exta/cad/externals/SOLARIS/include  -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -O2 -fomit-frame-pointer -DNeedVarargsPrototypes=1 -DNeedFunctionPrototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc -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 `test -f 'mixer.cpp' || echo './'`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:63,
                 from mixer.cpp:30:
mixer_sun.cpp: In member function `virtual int Mixer_SUN::openMixer()':
mixer_sun.cpp:195: no matching function for call to `MixDevice::setRecordSource
   (bool, bool)'
gmake[1]: *** [mixer.lo] Error 1
gmake[1]: Leaving directory `/tmp/kdemultimedia-3.1.94/kmix'




It appears that MixDevice::setRecordSource is being called with an argument list of (bool,bool), when it expects (int,bool)
Comment 1 Torsten Kasch 2003-12-17 17:29:13 UTC
Created attachment 3750 [details]
patch for kdemultimedia/kmix/mixer_sun.cpp

I'm not sure if the patch is correct, but at least kmix compiles for me and
doesn't crash... ;-)
Comment 2 Stephan Kulow 2004-01-11 13:49:31 UTC
Subject: kdemultimedia/kmix

CVS commit by coolo: 

patch by Torsten Kasch
CCMAIL: 70509-done@bugs.kde.org


  M +1 -1      mixer_sun.cpp   1.20


--- kdemultimedia/kmix/mixer_sun.cpp  #1.19:1.20
@@ -193,5 +193,5 @@ int Mixer_SUN::openMixer()
             MixDevice* md = new MixDevice( idx, vol, false, true,
                QString(MixerDevNames[idx]), MixerChannelTypes[idx]);
-                                md->setRecordSource( isRecsrcHW( idx ), true );
+                                md->setRecSource( isRecsrcHW( idx ) );
             m_mixDevices.append( md );
          }