Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 150242 Details for
Bug 205223
sci-visualization/qmatplot-0.4.2-r1 fails to compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch qmatplot so that it compiles even with gcc-4.3
qmatplot-gcc-4.3.patch (text/plain), 5.92 KB, created by
Martin Väth
on 2008-04-18 23:06:07 UTC
(
hide
)
Description:
Patch qmatplot so that it compiles even with gcc-4.3
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2008-04-18 23:06:07 UTC
Size:
5.92 KB
patch
obsolete
>--- src/dialogs/ksexportpicturedlg.cpp >+++ src/dialogs/ksexportpicturedlg.cpp >@@ -36,6 +36,7 @@ > #include <qfile.h> > #include <qpainter.h> > #include <cstdio> // tmpfile >+#include <cstdlib> > > QString KSExportPictureDlg::m_file_name; > int KSExportPictureDlg::m_file_format = 0; >--- src/dialogs/kswizarddlgs.h >+++ src/dialogs/kswizarddlgs.h >@@ -31,7 +31,7 @@ > { > Q_OBJECT > public: >- KSWizardDlgSurface( QWidget *parent, KSWorkbook *workbook, KSSheet *sheet, QSAxes *parent, bool surface = true ); >+ KSWizardDlgSurface( QWidget *parent, KSWorkbook *workbook, KSSheet *sheet, QSAxes *parentx, bool surface = true ); > ~KSWizardDlgSurface(); > > public slots: >--- src/formula/mpformula.h >+++ src/formula/mpformula.h >@@ -42,6 +42,7 @@ > * MPSymbol *QSFormula::parse( const QString& formula, MPError& error, FactoryList *locals ) > * @author Kamil > */ >+int yyparse( void *formula_ptr ); > class MPFormula { > friend int yylex( MPParserSymbol *symbol_value, void *location_info_ptr, void *formula_ptr ); > friend void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); >--- src/formula/mpparser.cpp >+++ src/formula/mpparser.cpp >@@ -26,6 +26,7 @@ > #include"mpsymbols.h" > #include <cmath> > #include <cstdio> >+#include <cstdlib> > > void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); > int yylex( YYSTYPE *symbol_value, void *location_info_ptr, void *formula_ptr ); >--- src/formula/mpsymbol.cpp >+++ src/formula/mpsymbol.cpp >@@ -17,6 +17,8 @@ > > #include"mpsymbol.h" > #include <string> >+#include <cstring> >+#include <cstdlib> > > //--------------------------------------------------------------------------// > >--- src/ksmatrixeditor.cpp >+++ src/ksmatrixeditor.cpp >@@ -35,7 +35,8 @@ > #include <qmessagebox.h> > #include <qpainter.h> > #include <qcursor.h> >- >+#include <cstdlib> >+#include <climits> > > //--------------------------------------------------------------------// > //--------------------------------------------------------------------// >--- src/kssocketio.cpp >+++ src/kssocketio.cpp >@@ -16,6 +16,7 @@ > ***************************************************************************/ > > #include <cassert> >+#include <cstdlib> > #include <cstdio> // P_tmpdir > #include <unistd.h> // unlink > #include <fcntl.h> >--- src/widgets/qsaxis.cpp >+++ src/widgets/qsaxis.cpp >@@ -19,7 +19,9 @@ > #include"qsaxis.h" > #include <qregexp.h> > #include <cassert> >-#include <algo.h> // this is needed for is_sorted >+#include <ext/algorithm> // this is needed for __gnu_cxx::is_sorted >+using namespace __gnu_cxx; >+ > > //-------------------------------------------------------------// > //-------------------------------------------------------------// >--- src/widgets/qsctool.cpp >+++ src/widgets/qsctool.cpp >@@ -19,6 +19,7 @@ > #include"qsdrvqt.h" > #include"qsplotview.h" > #include <qpainter.h> >+#include <cstdlib> > > QSTool::QSTool( QObject *parent ) > : QObject( parent ) >--- src/widgets/qsgattr.h >+++ src/widgets/qsgattr.h >@@ -62,6 +62,10 @@ > friend QString toQString( const QSGColor& a ); > friend QSGColor toQSGColor( const QString& s ); > }; >+bool operator==( const QSGColor&, const QSGColor& ); >+bool operator!=( const QSGColor&, const QSGColor& ); >+QString toQString( const QSGColor& a ); >+QSGColor toQSGColor( const QString& s ); > > //-------------------------------------------------------------// > >@@ -87,6 +91,10 @@ > friend QString toQString( const QSGFont& font ); > friend QSGFont toQSGFont( const QString& string ); > }; >+bool operator==( const QSGFont&, const QSGFont& ); >+bool operator!=( const QSGFont&, const QSGFont& ); >+QString toQString( const QSGFont& font ); >+QSGFont toQSGFont( const QString& string ); > > //-------------------------------------------------------------// > >@@ -120,7 +128,10 @@ > friend QString toQString( const QSGLine& line ); > friend QSGLine toQSGLine( const QString& string ); > }; >- >+bool operator==( const QSGLine&, const QSGLine& ); >+bool operator!=( const QSGLine&, const QSGLine& ); >+QString toQString( const QSGLine& line ); >+QSGLine toQSGLine( const QString& string ); > > > //-------------------------------------------------------------// >@@ -159,6 +170,10 @@ > friend QString toQString( const QSGFill& fill ); > friend QSGFill toQSGFill( const QString& string ); > }; >+bool operator==( const QSGFill&, const QSGFill& ); >+bool operator!=( const QSGFill&, const QSGFill& ); >+QString toQString( const QSGFill& fill ); >+QSGFill toQSGFill( const QString& string ); > > > >@@ -202,6 +217,10 @@ > friend QString toQString( const QSGPoint& point ); > friend QSGPoint toQSGPoint( const QString& string ); > }; >+bool operator==( const QSGPoint&, const QSGPoint& ); >+bool operator!=( const QSGPoint&, const QSGPoint& ); >+QString toQString( const QSGPoint& point ); >+QSGPoint toQSGPoint( const QString& string ); > > //-------------------------------------------------------------// > >@@ -243,6 +262,10 @@ > friend QString toQString( const QSGArrow& arrow ); > friend QSGArrow toQSGArrow( const QString& string ); > }; >+bool operator==( const QSGArrow&, const QSGArrow& ); >+bool operator!=( const QSGArrow&, const QSGArrow& ); >+QString toQString( const QSGArrow& arrow ); >+QSGArrow toQSGArrow( const QString& string ); > > //-------------------------------------------------------------// > >@@ -287,6 +310,10 @@ > bool m_all_colors; > void set_default_colors(); > }; >+bool operator==( const QSGGradient&, const QSGGradient& ); >+bool operator!=( const QSGGradient&, const QSGGradient& ); >+QString toQString( const QSGGradient& arrow ); >+QSGGradient toQSGGradient( const QString& string ); > > > //-------------------------------------------------------------// >--- src/widgets/qssegment.h >+++ src/widgets/qssegment.h >@@ -205,7 +205,7 @@ > QSPt2f m_prev; > QSPt2f m_prev_prev; > QSGLine curr_line; >- void get_stair( const QSPt2f& pos, QSPt2f pos[3] ); >+ void get_stair( const QSPt2f& pos, QSPt2f pts[3] ); > }; > > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205223
: 150242 |
150244