[Bug 72390] New: error compiling kdeaddons-3.1.94/noatun-plugins/synaescope/synaescope.cpp on Solaris 8

David Rutitsky drutitsky at pisem.net
Sun Jan 11 12:28:45 GMT 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=72390      
           Summary: error compiling kdeaddons-3.1.94/noatun-
                    plugins/synaescope/synaescope.cpp on Solaris 8
           Product: noatun
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-multimedia at kde.org
        ReportedBy: drutitsky at pisem.net


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"



More information about the kde-multimedia mailing list