[kde-solaris] Errors building kdemultimedia on SPARC/gcc

Daniel Rawson Daniel.Rawson at asml.com
Wed Aug 17 14:34:58 CEST 2005


I'm (attempting) to build KDE 3.4.2 on Solaris 8/SPARC using gcc 3.2.2.  Caveat:  I don't know c++ ;-(

When building kmix from kdemultimedia, I get the following errors:

First error:
--------------
In file included from kmix-platforms.cpp:67,
                 from mixer.cpp:33:
mixer_sun.cpp:138: destructors may not have parameters
mixer_sun.cpp: In destructor `virtual Mixer_SUN::~Mixer_SUN()':
mixer_sun.cpp:138: `devnum' undeclared (first use this function)
mixer_sun.cpp:138: (Each undeclared identifier is reported only once for each 
   function it appears in.)
mixer_sun.cpp:140: only constructors take base initializers
mixer_sun.cpp:140: confused by earlier errors, bailing out

It appears that this can be fixed by changing line 138 of mixer_sun.cpp:

// Mixer_SUN::~Mixer_SUN(int devnum) : Mixer_Backend(devnum)
Mixer_SUN::~Mixer_SUN()

Once that's done, I get another error:
---------------------------------------
In file included from kmix-platforms.cpp:67,
                 from mixer.cpp:33:
mixer_sun.cpp: In member function `virtual int Mixer_SUN::open()':
mixer_sun.cpp:163: no matching function for call to `Mixer_SUN::open(char*, int
   )'
mixer_sun.cpp:149: candidates are: virtual int Mixer_SUN::open()


line 163 of mixer_sun.cpp is:

if ( ( fd = open( audiodev.data(), O_RDWR ) ) < 0 )

which looks about as normal as is possible <g>.  #include <fcntl.h> DOES appear at the top of mixer_sun.cpp, so the system "open()" call should be available.

I guess I'm missing something obvious :-<<

TIA . . .

Dan


-- 
The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.


More information about the kde-solaris mailing list