Version: (using KDE KDE 3.1.94) Installed from: Compiled From Sources Compiler: gcc 3.2 sun sparc OS: Solaris syna.h:52:2: warning: #warning This target has not been tested! synaescope.cpp: In member function `void SynaeScope::receivedStdout(KProcess*, char*, int)': synaescope.cpp:100: declaration of `__iob' as array of references synaescope.cpp:100: invalid declarator synaescope.cpp: In member function `void SynaeScope::receivedStderr(KProcess*, char*, int)': synaescope.cpp:106: declaration of `__iob' as array of references synaescope.cpp:106: invalid declarator /usr/local/gcc-3.2/include/c++/3.2/bits/stl_threads.h: At global scope: /usr/local/gcc-3.2/include/c++/3.2/bits/stl_threads.h: In instantiation of `__gthread_mutex_t std::_Swap_lock_struct<0>::_S_swap_lock': /usr/local/gcc-3.2/include/c++/3.2/bits/stl_threads.h:122: instantiated from here /usr/local/gcc-3.2/include/c++/3.2/bits/stl_threads.h:115: warning: missing initializer for member `_pthread_mutex::<anonymous struct>::__pthread_mutex_magic' gmake[3]: *** [synaescope.lo] Error 1 gmake[3]: Leaving directory `/home/drutitsky/KDE3/kdeaddons-3.1.94/noatun-plugins/synaescope' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/home/drutitsky/KDE3/kdeaddons-3.1.94/noatun-plugins' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/drutitsky/KDE3/kdeaddons-3.1.94' gmake: *** [all] Error 2 Local variable stdout somehow collide with standart stdout. IMHO this is a bad taste to name local vars with such names. This is the patch that fixes the problem for me: --- noatun-plugins/synaescope/synaescope.cpp~ 2004-01-11 14:12:35.880004000 +0200 +++ noatun-plugins/synaescope/synaescope.cpp 2004-01-11 14:13:10.400003000 +0200 @@ -97,14 +97,14 @@ void SynaeScope::receivedStdout(KProcess *, char *buf, int len) { - QCString stdout(buf,len); - kdDebug(66666) << k_funcinfo << stdout << endl; + QCString _stdout(buf,len); + kdDebug(66666) << k_funcinfo << _stdout << endl; } void SynaeScope::receivedStderr(KProcess *, char *buf, int len) { - QCString stderr(buf,len); - kdDebug(66666) << k_funcinfo << stderr << endl; + QCString _stderr(buf,len); + kdDebug(66666) << k_funcinfo << _stderr << endl; } #include "synaescope.moc"
Changed variable names in CVS, fix will appear in KDE 3.2. Thanks for the report.