[Bug 487480] New: KOffice Applications not loaded after koffice1.6.3 package install and unable to compile due to error. Gentoo Patch included in "Details"

https://bugzilla.novell.com/show_bug.cgi?id=487480 Summary: KOffice Applications not loaded after koffice1.6.3 package install and unable to compile due to error. Gentoo Patch included in "Details" Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: PowerPC-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: KDE4 Applications AssignedTo: kde-maintainers@suse.de ReportedBy: amrphoto1@gmail.com QAContact: qa@suse.de Found By: --- Created an attachment (id=281022) --> (https://bugzilla.novell.com/attachment.cgi?id=281022) Existing Gentoo Patch User-Agent: Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.9.0.7) Gecko/2009022800 SUSE/3.0.7-1.1.6 Firefox/3.0.7 KOffice Applications not available after install of koffice 1.6.3 package in YaST2. Attempted to compile from source: received this error during make: then mv -f ".deps/kis_perspective_math.Tpo" ".deps/kis_perspective_math.Plo"; else rm -f ".deps/kis_perspective_math.Tpo"; exit 1; fi kis_perspective_math.cpp:27:22: error: iostream.h: No such file or directory kis_perspective_math.cpp:60: warning: friend declaration 'math::vector<ElType> math::operator*(ElType, math::vector<ElType>&)' declares a non-template function kis_perspective_math.cpp:60: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) kis_perspective_math.cpp:61: warning: friend declaration 'math::vector<ElType> math::operator*(math::vector<ElType>&, ElType)' declares a non-template function kis_perspective_math.cpp:62: error: ISO C++ forbids declaration of 'ostream' with no type kis_perspective_math.cpp:62: error: 'ostream' is neither function nor member function; cannot be declared friend kis_perspective_math.cpp:62: error: expected ';' before '&' token kis_perspective_math.cpp: In member function 'void math::vector<ElType>::rprint() const': kis_perspective_math.cpp:132: error: 'cout' was not declared in this scope kis_perspective_math.cpp: At global scope: kis_perspective_math.cpp:167: error: expected constructor, destructor, or type conversion before '&' token kis_perspective_math.cpp:188: warning: friend declaration 'math::matrix<ElType> math::operator*(const ElType&, const math::matrix<ElType>&)' declares a non-template function kis_perspective_math.cpp:189: warning: friend declaration 'math::matrix<ElType> math::operator*(const math::matrix<ElType>&, const ElType&)' declares a non-template function kis_perspective_math.cpp:195: error: ISO C++ forbids declaration of 'ostream' with no type kis_perspective_math.cpp:195: error: 'ostream' is neither function nor member function; cannot be declared friend kis_perspective_math.cpp:195: error: expected ';' before '&' token kis_perspective_math.cpp:196: warning: friend declaration 'void math::ludcmp(math::matrix<ElType>&, math::vector<int>&,double&)' declares a non-template function kis_perspective_math.cpp:197: warning: friend declaration 'void math::lubksb(math::matrix<ElType>&, math::vector<int>&,math::vector<ElType>&)' declares a non-template function kis_perspective_math.cpp:360: error: expected constructor, destructor, or type conversion before '&' token kis_perspective_math.cpp: In function 'void math::ludcmp(math::matrix<ElType>&, math::vector<int>&, double&)': kis_perspective_math.cpp:384: error: 'cerr' was not declared in this scope make[4]: *** [kis_perspective_math.lo] Error 1 make[4]: Leaving directory `/home/aaron/Documents/koffice/koffice-1.6.3/krita/core' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/aaron/Documents/koffice/koffice-1.6.3/krita/core' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/aaron/Documents/koffice/koffice-1.6.3/krita' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/aaron/Documents/koffice/koffice-1.6.3' make: *** [all] Error 2 Gentoo patch available for similar error--here is the source: diff -urNa koffice-1.6.3.orig/filters/kpresenter/powerpoint/libppt/pole.cpp koffice-1.6.3/filters/kpresenter/powerpoint/libppt/pole.cpp --- koffice-1.6.3.orig/filters/kpresenter/powerpoint/libppt/pole.cpp 2007-05-31 01:38:58.000000000 +0400 +++ koffice-1.6.3/filters/kpresenter/powerpoint/libppt/pole.cpp 2008-11-21 00:57:54.000000000 +0300 @@ -26,6 +26,8 @@ THE POSSIBILITY OF SUCH DAMAGE. */ +#include <string.h> + #include <fstream> #include <iostream> #include <list> diff -urNa koffice-1.6.3.orig/filters/kword/wordperfect/import/TableStyle.cxx koffice-1.6.3/filters/kword/wordperfect/import/TableStyle.cxx --- koffice-1.6.3.orig/filters/kword/wordperfect/import/TableStyle.cxx 2007-05-31 01:39:02.000000000 +0400 +++ koffice-1.6.3/filters/kword/wordperfect/import/TableStyle.cxx 2008-11-21 00:57:54.000000000 +0300 @@ -27,6 +27,7 @@ /* "This product is not manufactured, approved, or supported by * Corel Corporation or Corel Corporation Limited." */ +#include <string.h> #include <math.h> #include "FilterInternal.hxx" #include "TableStyle.hxx" diff -urNa koffice-1.6.3.orig/filters/kword/wordperfect/import/TextRunStyle.cxx koffice-1.6.3/filters/kword/wordperfect/import/TextRunStyle.cxx --- koffice-1.6.3.orig/filters/kword/wordperfect/import/TextRunStyle.cxx 2007-05-31 01:39:02.000000000 +0400 +++ koffice-1.6.3/filters/kword/wordperfect/import/TextRunStyle.cxx 2008-11-21 00:57:54.000000000 +0300 @@ -28,6 +28,9 @@ /* "This product is not manufactured, approved, or supported by * Corel Corporation or Corel Corporation Limited." */ + +#include <string.h> + #include "FilterInternal.hxx" #include "TextRunStyle.hxx" #include "WriterProperties.hxx" diff -urNa koffice-1.6.3.orig/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp koffice-1.6.3/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp --- koffice-1.6.3.orig/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2007-05-31 01:35:49.000000000 +0400 +++ koffice-1.6.3/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2008-11-21 00:57:54.000000000 +0300 @@ -27,6 +27,8 @@ #include <klocale.h> #include <kdebug.h> +#include <stdlib.h> + using namespace KexiDB; diff -urNa koffice-1.6.3.orig/krita/core/kis_perspective_math.cpp koffice-1.6.3/krita/core/kis_perspective_math.cpp --- koffice-1.6.3.orig/krita/core/kis_perspective_math.cpp 2007-05-31 01:40:31.000000000 +0400 +++ koffice-1.6.3/krita/core/kis_perspective_math.cpp 2008-11-21 00:57:54.000000000 +0300 @@ -24,7 +24,7 @@ #if 1 -#include <iostream.h> +#include <iostream> #include <stdlib.h> #include <math.h> //#define NDEBUG // uncomment to remove checking of assert() @@ -57,9 +57,9 @@ void rprint()const; //print entries on a single line void resize(int n); int operator==(const vector<ElType>& v)const; - friend vector<ElType> operator*(ElType c,vector<ElType>& v ); - friend vector<ElType> operator*(vector<ElType>& v,ElType c ); - friend ostream& operator<<(ostream& s,vector<ElType>& v); + friend vector<ElType> operator* (ElType c,vector<ElType>& v ); + friend vector<ElType> operator*(vector<ElType>& v,ElType c ); + friend std::ostream& operator<<(std::ostream& s,vector<ElType>& v); }; template <class ElType> void vector<ElType>::zero() @@ -129,10 +129,10 @@ void vector<ElType>::rprint()const //print entries on a single line { int i; - cout << "VECTOR: "; - cout << "("; - for(i=0;i<len-1;i++) cout << data[i] << ","; - cout << data[len-1] << ")" << endl; + std::cout << "VECTOR: "; + std::cout << "("; + for(i=0;i<len-1;i++) std::cout << data[i] << ","; + std::cout << data[len-1] << ")" << std::endl; return; } template <class ElType> @@ -164,7 +164,7 @@ return ans; } template <class ElType> - ostream& operator<<(ostream& s,vector<ElType>& v) + std::ostream& operator<<(std::ostream& s,vector<ElType>& v) { s << "("; for(int i=0;i<v.len-1;i++) s << v.data[i] << ", "; @@ -192,7 +192,7 @@ matrix<ElType> operator-(const matrix<ElType>& a); matrix<ElType> transpose(); //matrix<ElType> inverse(); - friend ostream& operator<<(ostream& s,matrix<ElType>& m); + friend std::ostream& operator<<(std::ostream& s,matrix<ElType>& m); friend void ludcmp(matrix<ElType>& a,vector<int>& indx,double &d); friend void lubksb(matrix<ElType>&a,vector<int>& indx,vector<ElType>&b); }; @@ -357,7 +357,7 @@ return ans; } template <class ElType> - ostream& operator<<(ostream& s,matrix<ElType>& m) + std::ostream& operator<<(std::ostream& s,matrix<ElType>& m) { for(int i=0; i<m.rows;i++) s << m[i]; return s; @@ -381,7 +381,7 @@ // kdDebug() << "new search" << endl; for (j=0;j<n;j++) { if ((temp=fabs(a[i][j])) > big) big=temp; /* kdDebug() << temp << " " << fabs(a[i][j]) << " "<< big <<endl; */} - if (big == 0.0) { cerr << "Singular matrix in routine LUDCMP" << endl; big = TINY;} + if (big == 0.0) { std::cerr << "Singular matrix in routine LUDCMP" << std::endl; big = TINY;} vv[i]=1.0/big; } for (j=0;j<n;j++) diff -urNa koffice-1.6.3.orig/kspread/plugins/scripting/kspreadcore/krs_cell.cpp koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.cpp --- koffice-1.6.3.orig/kspread/plugins/scripting/kspreadcore/krs_cell.cpp 2007-05-31 01:43:20.000000000 +0400 +++ koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.cpp 2008-11-21 00:57:54.000000000 +0300 @@ -174,12 +174,7 @@ return m_cell->text(); } -bool Cell::setText(const QString& text, bool asString) { - - //FIXME: there is some problem with asString parameter, when it's set - //to true KSpread says: ASSERT: "f" in Dependencies.cpp (621) - //kspread: Cell at row 6, col 1 marked as formula, but formula is NULL - +bool Cell::setText(const QString& text) { KSpread::ProtectedCheck prot; prot.setSheet (m_sheet); prot.add (QPoint (m_col, m_row)); @@ -189,7 +184,7 @@ KSpread::DataManipulator *dm = new KSpread::DataManipulator (); dm->setSheet (m_sheet); dm->setValue (text); - dm->setParsing (!asString); + dm->setParsing (true); dm->add (QPoint (m_col, m_row)); dm->execute (); diff -urNa koffice-1.6.3.orig/kspread/plugins/scripting/kspreadcore/krs_cell.h koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.h --- koffice-1.6.3.orig/kspread/plugins/scripting/kspreadcore/krs_cell.h 2007-05-31 01:43:20.000000000 +0400 +++ koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.h 2008-11-21 00:57:54.000000000 +0300 @@ -131,11 +131,10 @@ */ const QString text() const; /** - * Set the text of the cell. If asString is true, the text - * will be handled as string else we try to parse the - * string to the expected value. + * Set the text of the cell. the text + * will be handled as string */ - bool setText(const QString& text, bool asString = false); + bool setText(const QString& text); /** * Return the textcolor as RGB-value in the format "#RRGGBB". Reproducible: Always Steps to Reproduce: 1../configure 2.make 3. Actual Results: unpack the tar then run these two commands /configure make Expected Results: make failed and exited -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=487480 User binner@kde.org added comment https://bugzilla.novell.com/show_bug.cgi?id=487480#c1 Stephan Binner <binner@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Stephan Binner <binner@kde.org> 2009-03-21 07:32:10 MST --- Guess what gcc-4.3.diff and other patches in our source package do. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com