[Box Backup] Debugging boxbackup
Ben Summers
boxbackup@fluffy.co.uk
Wed, 28 Jan 2004 17:39:33 +0000
On 28 Jan 2004, at 15:36, Ben Lovett wrote:
> Hi,
>
> I'm trying to get boxbackup 0.03 building / running properly on
> OpenBSD/sparc64. The machine in question is running -current (gcc3
> from base..)
>
> It builds fine, but as I go through the setup steps, create
> certificates, add certificates, I run into problems.
>
> prozac% sudo /usr/local/bin/bbstoreaccounts # yes, it aborts even with
> the args
> zsh: 10724 abort sudo /usr/local/bin/bbstoreaccounts
>
> I tried this patch --
> --- makebuildenv.pl.orig 2004-01-27 20:52:59.000000000 -0800
> +++ makebuildenv.pl 2004-01-27 20:53:05.000000000 -0800
> @@ -443,7 +443,7 @@ __E
> #
> CXX = g++
> .ifdef RELEASE
> -CXXFLAGS = -DNDEBUG -O2 -Wall $include_paths
> -D$platform_define$extra_platform_
> defines -DBOX_VERSION="\\"$product_version\\""
> +CXXFLAGS = -g -O2 -Wall $include_paths
> -D$platform_define$extra_platform_defines -D
> BOX_VERSION="\\"$product_version\\""
> OUTBASE = ../../release
> OUTDIR = ../../release/$mod
> DEPENDMAKEFLAGS = -D RELEASE
>
> and that ended up making the build fail due to missing symbols
> (lib/debug) stuff..
>
> Ben, what are you doing to enable debugging? Maybe I'm just missing
> it...
To build, say, bbstoreaccounts in debug mode, simply do
cd bin/bbstoreaccounts
make
Then you'll find the debug exe in debug/bin/bbstoreaccounts. (I default
to debug mode as that's the one I use most.)
Of course, typing make at top level does release mode -- this
effectively does
cd bin/bbstoreaccounts
make -D RELEASE
(the release exe goes in release/bin/bbstoreaccounts)
There are some programmer's notes in the "notes" directory.
I'm very curious about where the abort happens. Thanks for trying it on
an unusual platform!
Ben