Hi,

I got a problem building Bacula on Fedora 7 with wxGtk (see attached log). Fedora 7 comes with wxGTK 2.8 which seems to require another include which was not needed for wxGTK 2.6 and earlier.

Fixing this problem is very easy, only one line must be added:
#include <wx/imaglist.h>

Therefore, I add a patch from the Fedora RPM as attachment which fixes the problem. This patch does not seem to influence compiling with wxGTK < 2.8: I compiled with wxGTK 2.6 and the patch included and did not see any issues. It would be nice if this patch can make it into Bacula 2.2 if possible at all.

fs

--- bacula-2.0.2/src/wx-console/wxbrestorepanel.cpp.orig	2007-02-06 21:32:02.000000000 +0100
+++ bacula-2.0.2/src/wx-console/wxbrestorepanel.cpp	2007-02-06 21:32:20.000000000 +0100
@@ -80,6 +80,7 @@
 #include "unmarked.xpm"
 #include "marked.xpm"
 #include "partmarked.xpm"
+#include <wx/imaglist.h>
 #include <wx/listimpl.cpp>
 
 /* A macro named Yield is defined under MinGW */
Compiling wxbrestorepanel.cpp
wxbrestorepanel.cpp: In constructor 'wxbRestorePanel::wxbRestorePanel(wxWindow*)':
wxbrestorepanel.cpp:219: error: invalid use of undefined type 'struct wxImageList'
/usr/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
wxbrestorepanel.cpp:220: error: invalid use of undefined type 'struct wxImageList'
/usr/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
wxbrestorepanel.cpp:221: error: invalid use of undefined type 'struct wxImageList'
/usr/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
wxbrestorepanel.cpp:222: error: invalid use of undefined type 'struct wxImageList'
/usr/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList'
wxbrestorepanel.cpp:281: error: 'wxIMAGE_LIST_SMALL' was not declared in this scope
wxbrestorepanel.cpp: In destructor 'virtual wxbRestorePanel::~wxbRestorePanel()':
wxbrestorepanel.cpp:394: warning: possible problem detected in invocation of delete operator:
wxbrestorepanel.cpp:394: warning: invalid use of undefined type 'struct wxImageList'
/usr/include/wx-2.8/wx/generic/listctrl.h:16: warning: forward declaration of 'struct wxImageList'
wxbrestorepanel.cpp:394: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
make[1]: *** [wxbrestorepanel.o] Error 1
make[1]: Leaving directory `/home/fs/rpmbuild/BUILD/bacula-2.0.3/src/wx-console'

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to