[Box Backup] RE: boxbackup digest, Vol 1 #1211 - 5 msgs
Andres Fernandez BB
boxbackup@boxbackup.org
Fri, 3 Apr 2009 12:29:19 +0200
Hi Chris,
Thank you for you answer me so fast.
First, I installed boxbackup with apt-get of debian tool; But when I
verify that bbstoreaccounts not work with -m parametre, I decided =
install
again Box Backup compiled and make it on the Virtual Box Machine the =
last
version.
The results were them same. -m parametre not work (On the virtual
machine and the Box Backup Server)
I am sure that I have the last version. And Box Backup work very
good. But I don=B4t Kwon what happens with bbstoreaccounts
Sorry, when I said: but nothing, I was referring that
bbstoreaccounts show me the same error.
Some idea?
Thank you very much.
Andres.
-----Mensaje original-----
De: boxbackup-admin@boxbackup.org [mailto:boxbackup-admin@boxbackup.org] =
En
nombre de boxbackup-request@boxbackup.org
Enviado el: viernes, 03 de abril de 2009 10:31
Para: boxbackup@boxbackup.org
Asunto: boxbackup digest, Vol 1 #1211 - 5 msgs
Send boxbackup mailing list submissions to
boxbackup@boxbackup.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.warhead.org.uk/mailman/listinfo/boxbackup
or, via email, send a message with subject or body 'help' to
boxbackup-request@boxbackup.org
You can reach the person managing the list at
boxbackup-admin@boxbackup.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of boxbackup digest..."
Today's Topics:
1. Re: Why bbstoreaccounts -m parametre not work? (Chris Wilson)
2. Re: Compile Boxi from tarball or =3D?UTF-8?Q?trunk=3D3F?=3D =
(Achim)
3. Re: Compile Boxi from tarball or trunk? (Chris Wilson)
4. Re: Compile Boxi from tarball or trunk? (Chris Wilson)
5. Distribution Patches - Debian - Part4: fix bootstrapping on debian
(Reinhard Tartler)
--__--__--
Message: 1
Date: Thu, 2 Apr 2009 13:29:03 +0200 (CEST)
From: Chris Wilson <chris@qwirx.com>
To: boxbackup@boxbackup.org
Subject: Re: [Box Backup] Why bbstoreaccounts -m parametre not work?
Reply-To: boxbackup@boxbackup.org
Hi Andres,
On Thu, 2 Apr 2009, afernandez@asolutionsts.com wrote:
> When I type bbstoreaccounts -m info 0x00000001 return me the next
> message:
>
> Bbstoreaccounts: invalid option -- 'm'
> Usage: bbstoreaccounts [-c config_file] action account_id [args]
> Account ID is integer specified in hex
>
> Please, help me!, I try compile the last version, but nothing!.
What version exactly are you using? "but nothing" tells me nothing. This =
option is only supported in 0.11 (e.g. 0.11rc2), not in 0.10.
Cheers, Chris.
--=20
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
--__--__--
Message: 2
Date: Thu, 02 Apr 2009 18:49:55 +0200
From: Achim <achim+box@qustodium.net>
To: boxbackup@boxbackup.org
Subject: Re: [Box Backup] Compile Boxi from tarball or =
=3D?UTF-8?Q?trunk=3D3F?=3D
Reply-To: boxbackup@boxbackup.org
Hello Chris:
After looking into your suggestions, and after some modifications =
(details
below) to the source, I can at least compile boxi, but the linking still
breaks with references to wxStackWalker (again, even after the changes =
you
outlined in the document) and some functions in
boxbackup/bin/bbackupd/Win32ServiceFunctions.h which is really weird:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
This should work unless it involves constant data structures referencing
symbols from auto-imported
DLLs.TestFrame.o: In function `_ZN11StackWalker13GetStackTraceEv':
/usr/src/boxi/src/TestFrame.cc:465: undefined reference to
`wxStackWalker::Walk(unsigned int, unsigned int)'
TestFrame.o: In function
`_ZThn4_N7CppUnit10TestCallerI14TestOpenWizardE5setUpEv':
/usr/local/include/cppunit/TestCaller.h:(.text$_ZN13wxStackWalkerD2Ev[wxS=
tac
kWalker::~wxStackWalker()]+0xa):
undefined reference to `__imp___ZTV13wxStackWalker'
/usr/local/include/cppunit/TestCaller.h:(.text$_ZN13wxStackWalkerC2EPKc[w=
xSt
ackWalker::wxStackWalker(char
const*)]+0x15): undefined reference to `__imp___ZTV13wxStackWalker'
/usr/local/include/cppunit/TestCaller.h:(.rdata$_ZTV11StackWalker[vtable
for StackWalker]+0x10): undefined reference to
`wxStackWalker::Walk(unsigned int, unsigned int)'
/usr/local/include/cppunit/TestCaller.h:(.rdata$_ZTV11StackWalker[vtable
for StackWalker]+0x14): undefined reference to
`wxStackWalker::WalkFromException()'
../boxbackup/release/bin/bbackupd/BackupDaemon.o: In function
`_ZN12BackupDaemon4MainERKSs':
/usr/src/boxi/boxbackup/bin/bbackupd/BackupDaemon.cpp:306: undefined
reference to `InstallService(char const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/usr/src/boxi/boxbackup/bin/bbackupd/BackupDaemon.cpp:311: undefined
reference to `RemoveService(std::basic_string<char, =
std::char_traits<char>,
std::allocator<char> > const&)'
/usr/src/boxi/boxbackup/bin/bbackupd/BackupDaemon.cpp:323: undefined
reference to `OurService(char const*)'
Info: resolving vtable for CppUnit::TestSetUpby linking to
__imp___ZTVN7CppUnit9TestSetUpE (auto-import)
collect2: ld returned 1 exit status
wxWidgets 2.6.4 does not compile with the options you point out at all, =
but
2.8.10 build just fine (with 2.6. compatibility enabled).
Any help (or pointers in the right direction) would be very welcome. Are =
we
missing an include? How does CPPunit interact with WX, and why does the
linker not find entry points to boxbackup internal functions?
Thank you in advance, Achim
=3D=3D=3D Details (messier details and exact error messages below) =
=3D=3D=3D
* Devel/CPPunit
* Devel/cvs
* Devel/gettext-devel
* Devel/libtool
* Devel/patchutils
* Devel/pkg-config
* Devel/subversion
http://wiki.wxwidgets.org/Cygwin
http://wiki.wxwidgets.org/Talk:Cygwin
Install Cygwin, Zlib, OpenSSL and PCRE as described in
boxbackup/docs/backup/win32_build_on_cygwin_using_mingw.txt
* * * PCRE * * *=20
cd /usr/src
wget http://prdownloads.sourceforge.net/pcre/pcre-6.3.tar.bz2?download
tar xjvf pcre-6.3.tar.bz2
cd pcre-6.3
export CFLAGS=3D"-mno-cygwin"
./configure
make
cp .libs/libpcre.a .libs/libpcreposix.a /lib/mingw
cp pcreposix.h /usr/include/mingw
* * * Zlib * * *=20
BUGBUG not required?
* * * OpenSSL * * *=20
see boxbackup document
* * * wxWidgets 2.8.10 (2.6.4 does not compile with options given) * * *
!!! close window and open new cygwin shell !!!
wget =
http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.10.tar.gz
tar xvzf wxWidgets-2.8.10.tar.gz
cd wxWidgets-2.8.10
update setup.h.in and=20
update include/wx/msw/setup.h
#define wxUSE_DEBUG_CONTEXT 1
#define wxUSE_MEMORY_TRACING 1
#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
#define wxUSE_DEBUG_NEW_ALWAYS 0
#define wxUSE_ON_FATAL_EXCEPTION 1
#define wxUSE_STACKWALKER 1
#define wxUSE_DEBUGREPORT 1
#define wxUSE_FSVOLUME 1
BUGBUG what about these:
#define wxUSE_UNICODE 1
// wxHandleFatalExceptions() may be used to catch the program faults at =
run
// time and, instead of terminating the program with a usual GPF message
box,
// call the user-defined wxApp::OnFatalException() function. If you set
// wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not =
work.
//
// This setting is for Win32 only and can only be enabled if your =
compiler
// supports Win32 structured exception handling (currently only VC++ =
does)
//
// Default is 1
//
// Recommended setting: 1 if your compiler supports it.
#define wxUSE_ON_FATAL_EXCEPTION 1
mkdir DEBUG && cd DEBUG
export CFLAGS=3D"-mno-cygwin -mthreads" CXXFLAGS=3D"-mno-cygwin =
-mthreads"
CPPFLAGS=3D"-mno-cygwin -mthreads" LDFLAGS=3D"-mno-cygwin -mwindows =
-mthreads"
BUGBUG review these (working!) settings for export, for instance about
(need to add -mthreads though!)
export CFLAGS=3D"-mno-cygwin -O4" CXXFLAGS=3D"-mno-cygwin -O4"
CPPFLAGS=3D"-mno-cygwin" LDFLAGS=3D"-mno-cygwin -mwindows"
../configure --enable-unicode --with-msw --disable-precomp-headers
--without-expat --enable-shared --disable-static --enable-debug
--enable-debug_gdb --disable-optimise --build=3Di686-pc-mingw32
--with-cppunit-prefix=3D/usr/local
make =20
make install
* * * CPP Unit * * *=20
!!! close window and open new cygwin shell !!!
Add C:\Cygwin\usr\local\bin (or whatever the DOS path to your Cygwin
/usr/local/bin directory is) to your Windows PATH environment variable.
Download CPPUNIT from Sourceforge:
wget
http://kent.dl.sourceforge.net/sourceforge/cppunit/cppunit-1.12.0.tar.gz
Configure, make and install:
./configure CC=3D"gcc -mno-cygwin" CXX=3D"g++ -mno-cygwin"
make
make install
* * * BOXI * * *=20
!!! close window and open new cygwin shell !!!
Download Boxi from SVN (also fetches latest boxbackup from svn)
svn co https://svn.sourceforge.net/svnroot/boxi/trunk/boxi
cd boxi/
./configure-mingw.sh
Will not result in a working Makefile for box, so we need to do that
manually and downgrade to compilabe R2465 at the same time:
cd boxbackup
./infrastructure/mingw/configure.sh
cd /usr/src/boxi
./make-image-headers.pl
make
boxbackup compiles fine, boxi stops (details below) unless we apply the
following changes:
* * * wxFileDialog() * * *
Remove line 20 with the faulty (empty) default constructor in
include/TestFileDialog.h
TestFileDialog () : wxFileDialog() { }
* * * wxStackFrame and wxStackWalker * * *
wxStackFrame and wxStackWalker are not available even after the changes =
in
setup.h.in and the corresponding MSW file.
change following lines (around 82) in
/usr/local/include/wx-2.8/wx/msw/chkconf.h
# define wxUSE_ON_FATAL_EXCEPTION 1
# define wxUSE_CRASHREPORT 1
# define wxUSE_STACKWALKER 1
Does this perhaps von MSVC++? From the file:
/*
* All of the settings below require SEH support (__try/__catch) and =
can't
work
* without it.
*/
* * * regex.h * * *
regex.h: No such file or directory
include/ClientConfig.h:30
ln -s /usr/include/mingw/pcreposix.h /usr/include/mingw/regex.h
change include/ClientConfig.h
#ifndef _REGEX_H_
#include <regex.h> // needed by ExcludeList
#endif
* * * <windows.h> * * *
Add in line 27 for include/BoxiApp.h
#include <wx/msw/winundef.h>
(before #include <wx/app.h>)
* * * __MSVCRT_VERSION__ * * *
/usr/i686-pc-mingw32/include/_mingw.h
#ifndef __MSVCRT_VERSION__
# define __MSVCRT_VERSION__ 0x0600
change to
# define __MSVCRT_VERSION__ 0x0601
* * * Wrong type 'emu_stat&' * * *
invalid initialization of reference of type 'emu_stat&' from expression =
of
type 'stat'
../boxbackup/lib/common/FileModificationTime.h:18: error: in passing
argument 1 of `box_time_t FileModificationTime(emu_stat&)'
solution: leave out for now in src/TestBackup.cc around line 319
// return FileModificationTime((emu_stat)st)
// - =
SecondsToBoxTime(rClientConfig.GetKeyValueInt(
// "MinimumFileAge"));
return 0;
* * * BBParams * * *
CompareProgressPanel.cc:465: error: cannot declare variable `BBParams'=20
to be of type `BoxiCompareParamsShim'
Solution: comment out all 5 occurences of BBParams in
src/CompareProgressPanel.cc
Build process works fine now until the link stage, which stops with
references to wxStackWalker (again!) and some functions in
boxbackup/bin/bbackupd/Win32ServiceFunctions.h:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
This should work unless it involves constant data structures referencing
symbols from auto-imported
DLLs.TestFrame.o: In function `_ZN11StackWalker13GetStackTraceEv':
/usr/src/boxi/src/TestFrame.cc:465: undefined reference to
`wxStackWalker::Walk(unsigned int, unsigned int)'
TestFrame.o: In function
`_ZThn4_N7CppUnit10TestCallerI14TestOpenWizardE5setUpEv':
/usr/local/include/cppunit/TestCaller.h:(.text$_ZN13wxStackWalkerD2Ev[wxS=
tac
kWalker::~wxStackWalker()]+0xa):
undefined reference to `__imp___ZTV13wxStackWalker'
/usr/local/include/cppunit/TestCaller.h:(.text$_ZN13wxStackWalkerC2EPKc[w=
xSt
ackWalker::wxStackWalker(char
const*)]+0x15): undefined reference to `__imp___ZTV13wxStackWalker'
/usr/local/include/cppunit/TestCaller.h:(.rdata$_ZTV11StackWalker[vtable
for StackWalker]+0x10): undefined reference to
`wxStackWalker::Walk(unsigned int, unsigned int)'
/usr/local/include/cppunit/TestCaller.h:(.rdata$_ZTV11StackWalker[vtable
for StackWalker]+0x14): undefined reference to
`wxStackWalker::WalkFromException()'
../boxbackup/release/bin/bbackupd/BackupDaemon.o: In function
`_ZN12BackupDaemon4MainERKSs':
/usr/src/boxi/boxbackup/bin/bbackupd/BackupDaemon.cpp:306: undefined
reference to `InstallService(char const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/usr/src/boxi/boxbackup/bin/bbackupd/BackupDaemon.cpp:311: undefined
reference to `RemoveService(std::basic_string<char, =
std::char_traits<char>,
std::allocator<char> > const&)'
/usr/src/boxi/boxbackup/bin/bbackupd/BackupDaemon.cpp:323: undefined
reference to `OurService(char const*)'
Info: resolving vtable for CppUnit::TestSetUpby linking to
__imp___ZTVN7CppUnit9TestSetUpE (auto-import)
collect2: ld returned 1 exit status
=3D=3D=3D=3D messy details and error messages =3D=3D=3D=3D
In file included from ../include/MainFrame.h:30,
from main.cc:52:
../include/ClientConfig.h:30:44: regex.h: No such file or directory
In file included from ../include/Location.h:34,
from ../include/ClientConfig.h:36,
from ../include/MainFrame.h:30,
from main.cc:52:
../boxbackup/lib/common/ExcludeList.h:62: error: `regex_t' was not=20
declared in t
his scope
../boxbackup/lib/common/ExcludeList.h:62: error: template argument 1 is=20
invalid
../boxbackup/lib/common/ExcludeList.h:62: error: template argument 2 is=20
invalid
../boxbackup/lib/common/ExcludeList.h:62: error: ISO C++ forbids=20
declaration of
`mRegex' with no type
../boxbackup/lib/common/ExcludeList.h: In member function `unsigned int=20
ExcludeL
ist::SizeOfRegexList() const':
../boxbackup/lib/common/ExcludeList.h:54: error: request for member=20
`size' in `(
(const ExcludeList*)this)->ExcludeList::mRegex', which is of non-class=20
type `con
st int'
In file included from main.cc:54:
../include/TestFileDialog.h: In constructor=20
`TestFileDialog::TestFileDialog()':
../include/TestFileDialog.h:20: error: no matching function for call to=20
`wxFileD
ialog::wxFileDialog()'
/usr/local/include/wx-2.8/wx/msw/filedlg.h:51: note: candidates are:=20
wxFileDialo
g::wxFileDialog(const wxFileDialog&)
/usr/local/include/wx-2.8/wx/msw/filedlg.h:30: note:=20
wxFileDialog::wxFileDialog
(wxWindow*, const wxString&, const wxString&, const wxString&, const=20
wxString&,
long int, const wxPoint&, const wxSize&, const wxString&)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/usr/src/boxi/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/boxi'
make: *** [all] Error 2
so we remove line 20 with the faulty (empty) default constructor in=20
../include/TestFileDialog.h:20
TestFileDialog () : wxFileDialog() { }
regex.h: No such file or directory
../include/ClientConfig.h:30
ln -s /usr/include/mingw/pcreposix.h /usr/include/mingw/regex.h
change ../include/ClientConfig.h
#ifndef _REGEX_H_
#include <regex.h> // needed by ExcludeList
#endif
TestFrame.cc:441: error: `StackWalker' has not been declared
TestFrame.cc:441: error: expected `,' or `...' before '&' token
TestFrame.cc:442: error: ISO C++ forbids declaration of `wxStackFrame' =
with
no type
TestFrame.cc: In function `void OnStackFrame(int)':
with no type
change following lines (around 82) in
/usr/local/include/wx-2.8/wx/msw/chkconf.h
# define wxUSE_ON_FATAL_EXCEPTION 1
# define wxUSE_CRASHREPORT 1
# define wxUSE_STACKWALKER 1
/*
* All of the settings below require SEH support (__try/__catch) and =
can't
work
* without it.
*/
perhaps we need to try with an older wxWidgets (2.6.4?) that does not =
rely
on _MSC_VER?
In file included from ../include/BoxiApp.h:28,
from TestWizard.cc:38:
/usr/local/include/wx-2.8/wx/app.h:230:59: macro "Yield" passed 1=20
arguments, but takes just 0
In file included from ../include/BoxiApp.h:28,
from TestWizard.cc:38:
/usr/local/include/wx-2.8/wx/app.h:230: error: invalid member function=20
declaration
/usr/local/include/wx-2.8/wx/app.h:406:49: macro "Yield" passed 1=20
arguments, but takes just 0
/usr/local/include/wx-2.8/wx/app.h:406: error: ISO C++ forbids=20
initialization of member `Yield'
/usr/local/include/wx-2.8/wx/app.h:406: error: making `Yield' static
/usr/local/include/wx-2.8/wx/app.h:406: error: ISO C++ forbids in-class=20
initialization of non-const static member `Yield'
/usr/local/include/wx-2.8/wx/app.h:406: error: `Yield' declared as a=20
`virtual' field
In file included from /usr/local/include/wx-2.8/wx/app.h:562,
from ../include/BoxiApp.h:28,
from TestWizard.cc:38:
/usr/local/include/wx-2.8/wx/msw/app.h:38:49: macro "Yield" passed 1=20
arguments, but takes just 0
In file included from /usr/local/include/wx-2.8/wx/app.h:562,
from ../include/BoxiApp.h:28,
from TestWizard.cc:38:
/usr/local/include/wx-2.8/wx/msw/app.h:38: error: `Yield' declared as a=20
`virtual' field
make: *** [TestWizard.o] Error 1
See http://www.wxwidgets.org/faqmsw.htm#asuffix
Add in line 27 for ../include/BoxiApp.h
#include <wx/msw/winundef.h>
(before #include <wx/app.h>)
Reason: grep windows.h *
boxbackup/lib/common/.svn/text-base/TemporaryDirectory.h.svn-base:=20
#include <windows.h>
boxbackup/lib/common/.svn/text-base/Test.cpp.svn-base:#include =
<windows.h>
boxbackup/lib/common/TemporaryDirectory.h: #include <windows.h>
boxbackup/lib/common/Test.cpp:#include <windows.h>
boxbackup/lib/server/.svn/text-base/WinNamedPipeStream.cpp.svn-base:#incl=
ude
<windows.h>
boxbackup/lib/server/WinNamedPipeStream.cpp:#include <windows.h>
boxbackup/lib/win32/.svn/text-base/emu.cpp.svn-base:#include <windows.h>
boxbackup/lib/win32/emu.cpp:#include <windows.h>
boxbackup/test/win32/.svn/text-base/testlibwin32.cpp.svn-base://#include =
<windows.h>
boxbackup/test/win32/.svn/text-base/timezone.cpp.svn-base:#include=20
<windows.h>
boxbackup/test/win32/testlibwin32.cpp://#include <windows.h>
boxbackup/test/win32/timezone.cpp:#include <windows.h>
intl/.svn/text-base/localcharset.c.svn-base:# include <windows.h>
intl/localcharset.c:# include <windows.h>
ideally every inclusion of windows.h would be matched:
#include <windows.h>
#include "wx/msw/winundef.h"
../boxbackup/lib/common/BoxPlatform.h:34:5: #error Must include Box.h=20
before sys/types.h
$ grep __MSVCRT_VERSION__
/usr/i686-pc-mingw32/include/_mingw.h
#ifndef __MSVCRT_VERSION__
# define __MSVCRT_VERSION__ 0x0600
change to
# define __MSVCRT_VERSION__ 0x0601
TestBackup.cc: In function `box_time_t GetLatestFileUploadTime(const
Configuration&)':
TestBackup.cc:319: error: invalid initialization of reference of type
'emu_stat&' from expression of
type 'stat'
../boxbackup/lib/common/FileModificationTime.h:18: error: in passing
argument 1 of `box_time_t FileM
odificationTime(emu_stat&)'
make: *** [TestBackup.o] Error 1
solution: leave out for now in TestBackup.cc:319
// return FileModificationTime((emu_stat)st)
// - =
SecondsToBoxTime(rClientConfig.GetKeyValueInt(
// "MinimumFileAge"));
return 0;
CompareProgressPanel.cc: In member function `void=20
CompareProgressPanel::StartCompare(const BoxiCompareParams&)':
CompareProgressPanel.cc:465: error: cannot declare variable `BBParams'=20
to be of type `BoxiCompareParamsShim'
CompareProgressPanel.cc:465: error: because the following virtual=20
functions are abstract:
../boxbackup/bin/bbackupquery/BoxBackupCompareParams.h:94: error:=20
virtual void BoxBackupCompareParams::NotifyDirComparing(const std
::string&, const std::string&)
../boxbackup/bin/bbackupquery/BoxBackupCompareParams.h:99: error:=20
virtual void BoxBackupCompareParams::NotifyFileComparing(const st
d::string&, const std::string&)
make[2]: *** [CompareProgressPanel.o] Error 1
make[2]: Leaving directory `/usr/src/boxi/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/boxi'
make: *** [all] Error 2
Solution: comment out all occurences of BBParams in =
CompareProgressPanel.cc
DLLs.TestFrame.o: In function `_ZN11StackWalker13GetStackTraceEv':
/usr/src/boxi.626/src/TestFrame.cc:465: undefined reference to
`wxStackWalker::Walk(unsigned int, unsigned int)'
TestFrame.o: In function
`_ZThn4_N7CppUnit10TestCallerI14TestOpenWizardE5setUpEv':
/usr/local/include/cppunit/TestCaller.h:(.text$_ZN13wxStackWalkerD2Ev[wxS=
tac
kWalker::~wxStackWalker()]+0xa):
undefined reference to `__imp___ZTV13wxStackWalker'
/usr/local/include/cppunit/TestCaller.h:(.text$_ZN13wxStackWalkerC2EPKc[w=
xSt
ackWalker::wxStackWalker(char
const*)]+0x15): undefined reference to `__imp___ZTV13wxStackWalker'
/usr/local/include/cppunit/TestCaller.h:(.rdata$_ZTV11StackWalker[vtable
for StackWalker]+0x10): undefined reference to
`wxStackWalker::Walk(unsigned int, unsigned int)'
/usr/local/include/cppunit/TestCaller.h:(.rdata$_ZTV11StackWalker[vtable
for StackWalker]+0x14): undefined reference to
`wxStackWalker::WalkFromException()'
Remove all references to TestFrame* in Makefile
MainFrame.$(OBJEXT) TestFrame.$(OBJEXT) \
MainFrame.cc\
TestFrame.cc\
WxGuiTestHelper.cpp\
include ./$(DEPDIR)/MainFrame.Po
include ./$(DEPDIR)/TestFrame.Po
include ./$(DEPDIR)/ParamPanel.Po
../boxbackup/release/bin/bbackupd/BackupDaemon.o: In function
`_ZN12BackupDaemon4MainERKSs':
/usr/src/boxi.626/boxbackup/bin/bbackupd/BackupDaemon.cpp:306: undefined
reference to `InstallService(char const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/usr/src/boxi.626/boxbackup/bin/bbackupd/BackupDaemon.cpp:311: undefined
reference to `RemoveService(std::basic_string<char, =
std::char_traits<char>,
std::allocator<char> > const&)'
/usr/src/boxi.626/boxbackup/bin/bbackupd/BackupDaemon.cpp:323: undefined
reference to `OurService(char const*)'
Info: resolving vtable for CppUnit::TestSetUpby linking to
__imp___ZTVN7CppUnit9TestSetUpE (auto-import)
what about msw port
http://graphics.cs.uiuc.edu/svn/wickbert/trunk/wxModeler/wx-mswd/wx/setup=
.h
make clean
make
#if wxUSE_STACKWALKER && defined( __WXDEBUG__ )
#ifdef __WXDEBUG__
#if wxUSE_STACKWALKER
#include "wx/stackwalk.h"
#ifdef __WXMSW__
#include "wx/msw/debughlp.h"
#endif
#endif // wxUSE_STACKWALKER
#endif // __WXDEBUG__
__WXDEBUG__
http://docs.wxwidgets.org/trunk/page_wxusedef.html
wxUSE_FSVOLUME
wxUSE_STACKWALKER
http://docs.wxwidgets.org/trunk/classwx_stack_walker.html
http://docs.wxwidgets.org/trunk/classwx_f_s_volume.html
how to enable Debugging
http://docs.wxwidgets.org/trunk/overview_debugging.html
what about wxUSE_DEBUG_CONTEXT is set to 1 in setup.h
If you don't need wxThread, just pass --disable-threads to configure.
If you need wxThread then you are stuck with mingwm10.dll.
--__--__--
Message: 3
Date: Thu, 2 Apr 2009 19:48:13 +0200 (CEST)
From: Chris Wilson <chris@qwirx.com>
To: boxbackup@boxbackup.org
Subject: Re: [Box Backup] Compile Boxi from tarball or trunk?
Reply-To: boxbackup@boxbackup.org
Hi Achim,
On Thu, 2 Apr 2009, Achim wrote:
> After looking into your suggestions, and after some modifications=20
> (details below) to the source, I can at least compile boxi, but the=20
> linking still breaks with references to wxStackWalker (again, even =
after=20
> the changes you outlined in the document) and some functions in=20
> boxbackup/bin/bbackupd/Win32ServiceFunctions.h which is really weird:
Did you start with a completely clean wx source after changing =
setup.h.in?=20
This file is converted into something else, quite early in the build=20
process.
> wxWidgets 2.6.4 does not compile with the options you point out at =
all,=20
> but 2.8.10 build just fine (with 2.6. compatibility enabled).
Ok, I don't particularly care about compiling 2.6 manually, either=20
distributions have it or they don't, in which case people should use 2.8 =
now.
> How does CPPunit interact with WX, and why does the linker not find=20
> entry points to boxbackup internal functions?
CPPunit itself does not interact with wx as far as I know. There is a wx =
test runner in cppunit that has a WX gui, but we don't use it. Wx may =
have=20
an option to use cppunit for wx tests, but I've never heard about that,=20
nor used it.
We have our own library of wx test functions, based on Reinhard =
Fureder's=20
work, which we use to generate simulated wx events in cppunit tests, to=20
drive the gui from cppunit tests. The integration of cppunit and wx in=20
this way is very hairy and complex, I recommend that you don't touch it.
> * * * Zlib * * *
> BUGBUG not required?
What is bugbug and why is it not required? :)
Zlib is required for boxi because it's required for box backup.
> BUGBUG what about these:
> #define wxUSE_UNICODE 1
Don't know if they need changing. Unicode is certainly required.
> // This setting is for Win32 only and can only be enabled if your =
compiler
> // supports Win32 structured exception handling (currently only VC++ =
does)
> //
> // Default is 1
> //
> // Recommended setting: 1 if your compiler supports it.
> #define wxUSE_ON_FATAL_EXCEPTION 1
I guess it doesn't work on mingw then, so it should be turned off.
> --with-cppunit-prefix=3D/usr/local
What is this doing in the wx configuration line?
> Download Boxi from SVN (also fetches latest boxbackup from svn)
>
> svn co https://svn.sourceforge.net/svnroot/boxi/trunk/boxi
>
> cd boxi/
> ./configure-mingw.sh
>
> Will not result in a working Makefile for box, so we need to do that
> manually and downgrade to compilabe R2465 at the same time:
I've seen this problem as well, but I don't think it's the correct=20
solution. Instead, just remove the line from configure.in that moves=20
Makefile to Makefile.in.
> * * * wxStackFrame and wxStackWalker * * *
> wxStackFrame and wxStackWalker are not available even after the =
changes in
> setup.h.in and the corresponding MSW file.
> change following lines (around 82) in
> /usr/local/include/wx-2.8/wx/msw/chkconf.h
> # define wxUSE_ON_FATAL_EXCEPTION 1
> # define wxUSE_CRASHREPORT 1
> # define wxUSE_STACKWALKER 1
You can't just change that file, it will result in link errors as you =
saw.=20
You have to get wx to use and install the correct version when =
compiling.
> Does this perhaps von MSVC++? From the file:
Yes, some of these don't work with mingw.
Cheers, Chris.
--=20
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
--__--__--
Message: 4
Date: Thu, 2 Apr 2009 20:36:52 +0200 (CEST)
From: Chris Wilson <chris@qwirx.com>
To: boxbackup@boxbackup.org
Subject: Re: [Box Backup] Compile Boxi from tarball or trunk?
Reply-To: boxbackup@boxbackup.org
Hi Achim,
On Thu, 2 Apr 2009, Achim wrote:
> boxbackup compiles fine
How did you get the manual pages to build on Cygwin? Do you remember =
what=20
package you installed? I simply can't get it to work. I'm about ready to =
copy the docbook stylesheets from my linux box into trunk, as they=20
actually work, but cygwin's don't.
Cheers, Chris.
--=20
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
--__--__--
Message: 5
From: Reinhard Tartler <siretart@tauware.de>
To: boxbackup@boxbackup.org
Date: Fri, 03 Apr 2009 09:08:33 +0200
Subject: [Box Backup] Distribution Patches - Debian - Part4: fix
bootstrapping on debian
Reply-To: boxbackup@boxbackup.org
remove cross compiling relevant commits
the combination of the following svn revisions is causing trouble when
trying to compile boxbackup on debian systems:
- 2485
- 2484
- 2483
reverting 2483 alone doesn't help, I had to revert all of them.
--- old/configure.ac 2009-04-02 11:58:11 +0000
+++ new/configure.ac 2009-04-02 13:29:39 +0000
@@ -160,6 +160,7 @@ AC_CHECK_TYPES([uint8_t, uint16_t, uint3
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_BIGENDIAN
+AX_CHECK_NONALIGNED_ACCESS
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
@@ -242,12 +243,10 @@ AC_CHECK_DECLS([XATTR_NOFOLLOW],,, [[#in
## Check for large file support active. AC_SYS_LARGEFILE has already =
worked
## out how to enable it if necessary, we just use this to report to the
user
AC_CACHE_CHECK([if we have large file support enabled],
[box_cv_have_large_file_support],
- [AC_TRY_RUN([AC_LANG_PROGRAM([[$ac_includes_default]], [[
+ [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[
return sizeof(off_t)=3D=3D4;
]])],
- [box_cv_have_large_file_support=3Dyes],
- [box_cv_have_large_file_support=3Dno],
- [box_cv_have_large_file_support=3Dno # safe for cross-compile]
+ [box_cv_have_large_file_support=3Dyes],
[box_cv_have_large_file_support=3Dno]
)])
=20
if test "x$box_cv_have_large_file_support" =3D "xyes"; then
diff --git a/infrastructure/m4/ax_check_dirent_d_type.m4
b/infrastructure/m4/ax_check_dirent_d_type.m4
index 9c08d39..8351f13 100644
--- a/infrastructure/m4/ax_check_dirent_d_type.m4
+++ b/infrastructure/m4/ax_check_dirent_d_type.m4
@@ -16,7 +16,7 @@ AC_DEFUN([AX_CHECK_DIRENT_D_TYPE], [
AC_CHECK_MEMBERS([struct dirent.d_type],,, [[#include <dirent.h>]])
if test "x$ac_cv_member_struct_dirent_d_type" =3D "xyes"; then
AC_CACHE_CHECK([[whether struct dirent.d_type is valid]],
[box_cv_have_valid_dirent_d_type],
- [AC_TRY_RUN(
+ [AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
$ac_includes_default
#include <dirent.h>
@@ -26,9 +26,7 @@ AC_DEFUN([AX_CHECK_DIRENT_D_TYPE], [
if(dir) res =3D readdir(dir);
return res ? (res->d_type !=3D DT_FILE && res->d_type !=3D =
DT_DIR) :
1;
]])],
- [box_cv_have_valid_dirent_d_type=3Dyes],
- [box_cv_have_valid_dirent_d_type=3Dno],
- [box_cv_have_valid_dirent_d_type=3Dcross]
+ [box_cv_have_valid_dirent_d_type=3Dyes],
[box_cv_have_valid_dirent_d_type=3Dno]
)])
if test "x$box_cv_have_valid_dirent_d_type" =3D "xyes"; then
AC_DEFINE([HAVE_VALID_DIRENT_D_TYPE], 1, [Define to 1 if struct
dirent.d_type is valid])
diff --git a/infrastructure/m4/ax_check_syscall_lseek.m4
b/infrastructure/m4/ax_check_syscall_lseek.m4
index 6c26e02..7d22c4b 100644
--- a/infrastructure/m4/ax_check_syscall_lseek.m4
+++ b/infrastructure/m4/ax_check_syscall_lseek.m4
@@ -16,7 +16,7 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [
AC_REQUIRE([AX_FUNC_SYSCALL])dnl
if test "x$ac_cv_header_sys_syscall_h" =3D "xyes"; then
AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]],
[box_cv_have_lseek_dummy_param],
- [AC_TRY_RUN(
+ [AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
$ac_includes_default
#include <fcntl.h>
@@ -50,9 +50,7 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [
unlink("lseektest");
return res!=3D-1;
]])],
- [box_cv_have_lseek_dummy_param=3Dyes],
- [box_cv_have_lseek_dummy_param=3Dno],
- [box_cv_have_lseek_dummy_param=3Dno # assume not for cross-compiling]
+ [box_cv_have_lseek_dummy_param=3Dyes],
[box_cv_have_lseek_dummy_param=3Dno]
)])
if test "x$box_cv_have_lseek_dummy_param" =3D "xyes"; then
AC_DEFINE([HAVE_LSEEK_DUMMY_PARAM], 1,
--=20
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4
--__--__--
_______________________________________________
boxbackup mailing list
boxbackup@boxbackup.org
http://lists.warhead.org.uk/mailman/listinfo/boxbackup
End of boxbackup Digest
__________ Information from ESET NOD32 Antivirus, version of virus =
signature
database 3984 (20090402) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com