[mythtv] compiling mythtv (latest cvs) with gcc 3.1

Chris Kleeschulte mythtv-dev@snowman.net
Wed, 7 Aug 2002 16:02:20 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0043_01C23E2B.CF433800
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I was compiling mythtv with gcc 3.1:

gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc-3.1/configure --prefix=3D/usr --enable-shared =
--enable-languages=3Dc,c++ --enable-threads=3Dposix =
--with-slibdir=3D/lib
Thread model: posix
gcc version 3.1


and I got this from the compiler:

cd mythdialog && make -f Makefile
make[1]: Entering directory `/usr/src/mythtv/cvs/MC/mythdialog'
g++ -c -pipe -Wall -W -O6 -march=3Dpentiumpro -fomit-frame-pointer =
-funroll-loops -fexpensive-optimizations -finline-functions -D_REENTRANT =
 -D_GNU_SOURCE -DMMX
 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/local/include =
-I/usr/local/qt/include -I/usr/local/qt/mkspecs/default -o dialogbox.o =
dialogbox.cpp
cc1plus: warning: changing search order for system directory =
"/usr/local/include"
cc1plus: warning:   as it has already been specified as a non-system =
directory
dialogbox.cpp:12: default argument given for parameter 2 of `
   DialogBox::DialogBox(const QString&, const char* =3D 0, QWidget* =3D =
0, const
   char* =3D 0)'
dialogbox.h:17: after previous specification in =
`DialogBox::DialogBox(const
   QString&, const char* =3D 0, QWidget* =3D 0, const char* =3D 0)'
dialogbox.cpp:12: default argument given for parameter 3 of `
   DialogBox::DialogBox(const QString&, const char* =3D 0, QWidget* =3D =
0, const
   char* =3D 0)'
dialogbox.h:17: after previous specification in =
`DialogBox::DialogBox(const
   QString&, const char* =3D 0, QWidget* =3D 0, const char* =3D 0)'
dialogbox.cpp:12: default argument given for parameter 4 of `
   DialogBox::DialogBox(const QString&, const char* =3D 0, QWidget* =3D =
0, const
   char* =3D 0)'
dialogbox.h:17: after previous specification in =
`DialogBox::DialogBox(const
   QString&, const char* =3D 0, QWidget* =3D 0, const char* =3D 0)'
dialogbox.cpp: In constructor `DialogBox::DialogBox(const QString&, =
const
   char*, QWidget*, const char*)':
dialogbox.cpp:25: warning: passing `float' for argument 2 of `
   QFont::QFont(const QString&, int, int, bool)'
dialogbox.cpp:31: warning: passing `float' for argument 2 of `
   QVBoxLayout::QVBoxLayout(QWidget*, int, int, const char*)'
make[1]: *** [dialogbox.o] Error 1
make[1]: Leaving directory `/usr/src/mythtv/cvs/MC/mythdialog'
make: *** [sub-mythdialog] Error 2



How can I fix this?


thanks,
Chris


------=_NextPart_000_0043_01C23E2B.CF433800
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>I was compiling mythtv with gcc =
3.1:</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>gcc -v<BR>Reading specs from=20
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs<BR>Configured with:=20
../gcc-3.1/configure --prefix=3D/usr --enable-shared =
--enable-languages=3Dc,c++=20
--enable-threads=3Dposix --with-slibdir=3D/lib<BR>Thread model: =
posix<BR>gcc version=20
3.1<BR></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>and I got this from the =
compiler:</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>cd mythdialog &amp;&amp; make -f=20
Makefile<BR>make[1]: Entering directory=20
`/usr/src/mythtv/cvs/MC/mythdialog'<BR>g++ -c -pipe -Wall -W -O6=20
-march=3Dpentiumpro -fomit-frame-pointer -funroll-loops =
-fexpensive-optimizations=20
-finline-functions -D_REENTRANT&nbsp; -D_GNU_SOURCE =
-DMMX<BR>&nbsp;-DQT_NO_DEBUG=20
-DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/local/qt/include=20
-I/usr/local/qt/mkspecs/default -o dialogbox.o dialogbox.cpp<BR>cc1plus: =

warning: changing search order for system directory=20
"/usr/local/include"<BR>cc1plus: warning:&nbsp;&nbsp; as it has already =
been=20
specified as a non-system directory<BR>dialogbox.cpp:12: default =
argument given=20
for parameter 2 of `<BR>&nbsp;&nbsp; DialogBox::DialogBox(const =
QString&amp;,=20
const char* =3D 0, QWidget* =3D 0, const<BR>&nbsp;&nbsp; char* =3D=20
0)'<BR>dialogbox.h:17: after previous specification in=20
`DialogBox::DialogBox(const<BR>&nbsp;&nbsp; QString&amp;, const char* =
=3D 0,=20
QWidget* =3D 0, const char* =3D 0)'<BR>dialogbox.cpp:12: default =
argument given for=20
parameter 3 of `<BR>&nbsp;&nbsp; DialogBox::DialogBox(const =
QString&amp;, const=20
char* =3D 0, QWidget* =3D 0, const<BR>&nbsp;&nbsp; char* =3D =
0)'<BR>dialogbox.h:17:=20
after previous specification in =
`DialogBox::DialogBox(const<BR>&nbsp;&nbsp;=20
QString&amp;, const char* =3D 0, QWidget* =3D 0, const char* =3D=20
0)'<BR>dialogbox.cpp:12: default argument given for parameter 4 of=20
`<BR>&nbsp;&nbsp; DialogBox::DialogBox(const QString&amp;, const char* =
=3D 0,=20
QWidget* =3D 0, const<BR>&nbsp;&nbsp; char* =3D 0)'<BR>dialogbox.h:17: =
after=20
previous specification in `DialogBox::DialogBox(const<BR>&nbsp;&nbsp;=20
QString&amp;, const char* =3D 0, QWidget* =3D 0, const char* =3D =
0)'<BR>dialogbox.cpp:=20
In constructor `DialogBox::DialogBox(const QString&amp;, =
const<BR>&nbsp;&nbsp;=20
char*, QWidget*, const char*)':<BR>dialogbox.cpp:25: warning: passing =
`float'=20
for argument 2 of `<BR>&nbsp;&nbsp; QFont::QFont(const QString&amp;, =
int, int,=20
bool)'<BR>dialogbox.cpp:31: warning: passing `float' for argument 2 of=20
`<BR>&nbsp;&nbsp; QVBoxLayout::QVBoxLayout(QWidget*, int, int, const=20
char*)'<BR>make[1]: *** [dialogbox.o] Error 1<BR>make[1]: Leaving =
directory=20
`/usr/src/mythtv/cvs/MC/mythdialog'<BR>make: *** [sub-mythdialog] Error=20
2<BR></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>How can I fix this?</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>thanks,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Chris</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_0043_01C23E2B.CF433800--