Re: rekall's startup on OSX

Mike Richardson <mike-1gTsUfBLqWsG2Il/[email protected]> Fri, 2 Apr 2004 16:01:08 +0100
Newsgroups gmane.comp.db.rekall.devel
Message-ID <[email protected]>
On Friday 02 Apr 2004 11:10, Brian Harring wrote:
> Since I forgot to mention a few details- this is based off of
> v2.2.0-beta2, using autoconf-2.58, and automake-1.8 (1.8 is required
> for the native kdelibs).  I haven't played w/ postgres support,
> although I'd think it shouldn't be too hard to get working if there are
> problems.
>
> >> Everything appears to run fine, but upon trying to create a new
> >> database the mysql driver isn't loaded- eg, it is functioning as if
> >> there is no mysql support.
> >
> > I guess you mean creating the rekall-level "database", ie., the entry
> > in the
> > database window?
>
> A better phrasing of it would've been using the new DB/server wizard.


OK, i think i see what is going on ..... either the wizard library 
libs/wizards, libkbase_wizard) is not being linked in, or the static 
constructors in it are not getting executed. As a result, the wizard controls 
are not registered, so when the new connection wizard executes, the 
list-databases control is missing. You can see this by ........

KBWizardCtrlReg::makeWizardCtrl: [WizFile]->[0x0
KBWizardCtrlReg::makeWizardCtrl: [DBType]->[0x0
KBWizardCtrlReg::makeWizardCtrl: [next]->[0x0
KBWizardCtrlReg::makeWizardCtrl: [ok]->[0x0
KBWizardCtrlReg::makeWizardCtrl: [DBList]->[0x0
KBWizardCtrlReg::makeWizardCtrl: [WizFile]->[0x0

and the wizard fails ....

executing wizard
leaving mr. _KBDialog::show()
KBWizardPage::compile: [next][
        local dbtype = page.ctrl("dbType") ;
print (dbtype.value() + "\n") ;
        if (dbtype.value() == "xbase") return "xbase" ; 
        return (dbtype.attr("flags") & 0x01) == 0 ? "database" : "host"
    ]
if_pageCtrl: not found: [dbType]


IIRC there is an issue on MAC OS/X to do with static constructors - rekall 
uses them quite a lot to dynamically register components (form+report 
controls, macro instructions, wizard controls. Have you tried designing a 
form and, if so, can you create any controls.

There was some code around a while back to do the registration without static 
constructors (for form/report controls) when we thought this might be a 
problem for the Windows build, if neccessary I could resurrect it into the 
2.3.x code base and do the same for macros and for wizard controls.

>
> > Can you email the console output, i'll have a look at that and see if
> > i can
> > spot anything likely looking
>
> I've posted it at http://linux1.genetics.wisc.edu/rekall-osx/rekall.log
> ;
> Debug has been enabled,  a collection of printf statements for some
> earlier debugging are still on, and the info from each desktop scan is
> being output currently.
> I threw in a few comments to indicate what I was doing- pretty much,
> started wizard now, finished it, modified the server entry... etc.
>
> I've also placed two patches at
> http://linux1.genetics.wisc.edu/rekall-osx -
> rekall-2.2.0-beta2-osx-{kludged,04022004}.patch.bz2 - the kludged patch
> is just that, a working version w/ a kludge built in to get python to
> compile correctly, the 04022004 patch has the necessary build/configure
> modifications to support specifying python-(include,libraries).
>
> admin.kde3/* has had a lot of work done in it, while admin.qt3 hasn't
> been touched.  At this point, I would be surprised if that patch worked
> on linux systems- the whole thing is still a bit raw.

I'd suggest creating an admin.osx.kde3 directory, or some similar name, and 
modifying Makefile.cvs so you can do

make -f Makefile.cvs osx-kde

or suchlike, then there is no need to worry about breaking linux builds (at 
the cost of some duplication)

> ~brian
>
> >> I'll be splitting off a patch shortly (and posting a link here for
> >> those interested), but I was kind of hoping to figure out what this
> >> particular bug is first :)
> >
> > Star

Having an OS/X version of Rekall is really great, I'm happy to provide all the 
help I can on this. If it would help, we can run an IRC channel on this

> >
> > --
> > Regards
> > Mike
> >
> > http://www.rekallrevealed.org
> > *THE* GPL/Open Source database front end for Linux and Windows.
> >
> > _______________________________________________
> > Rekall-devel mailing list
> > [email protected]
> > http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall-devel
>
> _______________________________________________
> Rekall-devel mailing list
> [email protected]
> http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall-devel

-- 
Regards
Mike

http://www.rekallrevealed.org
*THE* GPL/Open Source database front end for Linux and Windows.