• Bug#266331: kgst: FTBFS with gcc-3.4: namespace `KDE::GSTPlay' not allo

    From Andreas Jochens@1:229/2 to All on Tue Aug 17 17:40:11 2004
    From: [email protected]

    Package: kgst
    Severity: normal
    Tags: patch

    When building 'kgst' with gcc-3.4 I get the following error:

    g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst -I/usr/include/kde -I/usr/share/qt3/include -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
    -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -g -Wall -O2 -fno-exceptions -fno-check-new -c -o
    guiplayer.o `test -f 'guiplayer.cpp' || echo './'`guiplayer.cpp
    In file included from guiplayer.cpp:6:
    guiplayer.h:21: error: namespace `KDE::GSTPlay' not allowed in using-declaration
    guiplayer.cpp: In member function `void GuiPlayer::updateSlider(long long int)':
    guiplayer.cpp:120: warning: passing `double' for converting 1 of `virtual void QSlider::setValue(int)'
    make[4]: *** [guiplayer.o] Error 1
    make[4]: Leaving directory `/kgst-0.6.1/gst/examples'

    With the attached patch 'kgst' can be compiled using gcc-3.4.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/kgst-0.6.1/gst/examples/guiplayer.h ./gst/examples/guiplayer.h
    --- ../tmp-orig/kgst-0.6.1/gst/examples/guiplayer.h 2003-02-28 02:05:26.000000000 +0100
    +++ ./gst/examples/guiplayer.h 2004-08-17 16:56:28.441299985 +0200
    @@ -18,7 +18,6 @@
    #include <kde/gstplay/play.h>
    #include <kde/gstplay/videoscreen.h>

    -using KDE::GSTPlay;

    class GuiPlayer : public QWidget
    {


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From David Schleef@1:229/2 to Andreas Jochens on Wed Aug 18 21:30:12 2004
    From: [email protected]

    On Tue, Aug 17, 2004 at 05:08:44PM +0200, Andreas Jochens wrote:
    Package: kgst
    Severity: normal
    Tags: patch

    When building 'kgst' with gcc-3.4 I get the following error:

    g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst -I/usr/include/kde -I/usr/share/qt3/include -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
    -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -g -Wall -O2 -fno-exceptions -fno-check-new -c -o
    guiplayer.o `test -f 'guiplayer.cpp' || echo './'`guiplayer.cpp
    In file included from guiplayer.cpp:6:
    guiplayer.h:21: error: namespace `KDE::GSTPlay' not allowed in using-declaration
    guiplayer.cpp: In member function `void GuiPlayer::updateSlider(long long int)':
    guiplayer.cpp:120: warning: passing `double' for converting 1 of `virtual void QSlider::setValue(int)'
    make[4]: *** [guiplayer.o] Error 1
    make[4]: Leaving directory `/kgst-0.6.1/gst/examples'

    With the attached patch 'kgst' can be compiled using gcc-3.4.

    Is gcc-3.4 being used anywhere? If not, I'm going to wait on this
    until the buildds have nothing better to do.



    dave...



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Andreas Jochens@1:229/2 to David Schleef on Wed Aug 18 21:40:10 2004
    From: [email protected]

    On 04-Aug-18 12:09, David Schleef wrote:
    Is gcc-3.4 being used anywhere? If not, I'm going to wait on this
    until the buildds have nothing better to do.

    There is a development archive for the amd64 port which uses gcc-3.4.
    But this bug is certainly not an urgent issue.

    Regards
    Andreas Jochens


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)