On 3/16/06, Martin Michlmayr <[EMAIL PROTECTED]> wrote:
> Package: linuxdcpp
> Version: 0.0.1.cvs20060217-1
> Severity: important
> Tags: patch
>
> Your package fails to build with G++ 4.1.  I'm filing this bug as
> important for now, but when 4.1 will be the default compiler in
> unstable (probably in a few weeks) I'll upgrade this to serious.
>
> A patch is below.
>
>
> > Automatic build of linuxdcpp_0.0.1.cvs20060217-1 on bigsur by sbuild/mips 
> > 1.94
> ...
> > g++ -DXTHREADS -pthread -pthread -D_GNU_SOURCE 
> > -DHAVE_DECL_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP -I. -DENABLE_BINRELOC 
> > -D_FILE_OFFSET_BITS=64 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 
> > -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
> > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11R6/include 
> > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 
> > -I/usr/lib/glib-2.0/include -c -o build/gui/wulformanager.o 
> > linux/wulformanager.cc
> > In file included from linux/../client/CriticalSection.h:26,
> >                  from linux/../client/Speaker.h:26,
> >                  from linux/../client/ServerSocket.h:27,
> >                  from linux/selecter.hh:27,
> >                  from linux/mainwindow.hh:31,
> >                  from linux/wulformanager.hh:29,
> >                  from linux/wulformanager.cc:19:
> > linux/../client/Thread.h:104:2: warning: #warning FIXME
> > linux/../client/Thread.h:114:2: warning: #warning FIXME
> > linux/wulformanager.cc: In static member function 'static void 
> > WulforManager::start()':
> > linux/wulformanager.cc:157: error: 'assert' was not declared in this scope
> > linux/wulformanager.cc: In static member function 'static void 
> > WulforManager::stop()':
> > linux/wulformanager.cc:162: error: 'assert' was not declared in this scope
> > scons: *** [build/gui/wulformanager.o] Error 1
> > scons: building terminated because of errors.
> > make: *** [build/linuxdcpp] Error 2
>
>
> --- ./linux/wulformanager.cc~   2006-03-16 22:32:08.000000000 +0000
> +++ ./linux/wulformanager.cc    2006-03-16 22:32:15.000000000 +0000
> @@ -22,6 +22,7 @@
>  #include "downloadqueue.hh"
>  #include "hub.hh"
>  #include <iostream>
> +#include <cassert>
>
>  using namespace std;
>
> --- ./linux/mainwindow.cc~      2006-03-16 22:32:59.000000000 +0000
> +++ ./linux/mainwindow.cc       2006-03-16 22:33:07.000000000 +0000
> @@ -33,6 +33,7 @@
>  #include <iostream>
>  #include <sstream>
>  #include <iomanip>
> +#include <cassert>
>
>  using namespace std;
>
> --- ./linux/sharebrowser.cc~    2006-03-16 22:35:04.000000000 +0000
> +++ ./linux/sharebrowser.cc     2006-03-16 22:35:13.000000000 +0000
> @@ -17,6 +17,7 @@
>  */
>
>  #include "sharebrowser.hh"
> +#include <cassert>
>
>  ShareBrowser::ShareBrowser(User::Ptr user, std::string file, GCallback 
> closeCallback):
>         BookEntry(WulforManager::SHARE_BROWSER,
>
> --
> Martin Michlmayr
> http://www.cyrius.com/

Are you unaware that "#include <assert.h>" has been added to these
files in the cvs? Or are you saying "#include <cassert>" works but not
"#include <assert.h>"?

/Jens Oknelid

Reply via email to