Another neat bug in current-CVS (hit import, go boom! :)

Derek Atkins warlord@MIT.EDU
09 Feb 2001 14:02:58 -0500


grib@gnumatic.com (Bill Gribble) writes:

> On Fri, Feb 09, 2001 at 01:39:19PM -0500, Derek Atkins wrote:
> > Just for kicks I just did a complete rebuild and re-install (clearing
> > out the directories beforehand).  I also checked and I am up-to-date
> > with CVS as of a couple minutes ago.
> 
> My suspicion is still around g-wrap.  Could you make sure that the
> file 'gnc.c' was rebuilt with g-wrap-1.1.9 (check g-wrap-config
> output), and make sure that your LD_LIBRARY_PATH is pointing to the
> right directory $(g-wrap-1.1.9-install)/lib ?

I'm absolutely sure I'm using g-wrap 1.1.9.  And I'm absolutely sure
that gnc.c was built by this version of g-wrap (rm makes it pretty
hard for an old version to stick around ;) I'm also certainl that
everything is in my path (/usr/bin and /usr/lib are certainly in my
path).

> > 12* [gnc:group-get-account-list #<gw:wcp <gnc:AccountGroup*> 0x82143d0>]
> > 
> > /usr/gnucash/share/gnucash/scm/qif-import/qif-guess-map.scm:34:30: In procedure gnc:group-get-account-list in expression (gnc:group-get-account-list agroup):
> > /usr/gnucash/share/gnucash/scm/qif-import/qif-guess-map.scm:34:30: Wrong type argument in position 1: %S
> > ABORT: (wrong-type-arg)
> 
> The thing is that that's the right argument type for that function
> according to gnc.gwp.  Which makes this error very puzzling.

Yea, I noticed that too...

> If you still have this problem after rebuilding gnc.c, could you mail
> me the contents of the C function gwrap_xaccGroupGetAccountList from
> gnc.c?

Sure.  Here's what I've got there:

static char * gwrap_xaccGroupGetAccountList_s = "gnc:group-get-account-list";
static SCM gwrap_xaccGroupGetAccountList  (SCM scm_param0 ) {
  SCM gw__scm_result;
    AccountGroup* param0;

     
  /* pre-type-test args code */
  

  /* type checks */
  
    SCM_ASSERT((scm_param0 == SCM_BOOL_F) || gw_wcp_is_of_type_p(gw__wct_info_for__gnc_AccountGroup__, scm_param0),scm_param0,SCM_ARG1,gwrap_xaccGroupGetAccountList_s);


  /* pre-call code */
  {
    GList * gw__c_result;

  if(scm_param0 == SCM_BOOL_F) param0 = NULL;
else param0 = gw_wcp_get_ptr(scm_param0);


  /* Call function */
  SCM_DEFER_INTS;
  gw__c_result = xaccGroupGetAccountList(param0);

  SCM_ALLOW_INTS;

  /* post-call code */
  
  gw__scm_result = gnc_glist_account_ptr_to_scm_no_free(gw__c_result);
  }


  return(gw__scm_result);
}

> Thanks,
> b.g.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available