[EMAIL PROTECTED] writes:

> I don't think my GUILE setup is too wierd,
> but configure didn't find -lguile,
> but it actually is in /usr/local/lib/libguile.* ,
> so I ended up in adding a few things in gnucash-1.1.20/src/motif/Makefile :
> 
>     GUILELIBS = -lguile -lreadline -lncurses -ldl
> 
> Before that `GUILELIBS' was just empty.

It was supposed to be empty because configure couldn't find your
installation of guile.  It only looks in the standard system location
(whatever that is, usually /lib and /usr/lib).  To allow guile to be
elsewhere, we need a --with-guile option.  I'll try to get to that
soon.

> But finally:
> 
>     johayek@Hayek5 $ ./gnucash
>     gnucash: startup-file is ./share/scm/startup.scm
>     ./share/scm/startup.scm:276:3: While evaluating arguments to gnc:make-config-var 
>in expression (gnc:make-config-var "Initial lowest level scheme startup file." 
>(lambda # #f) ...):
>     ./share/scm/startup.scm:276:3: Unbound variable: gnc:_startup-file-default_
> 
> So what now?

I'm not sure what's causing that.  There should be no way that that
variable wouldn't be defined.  The C code that's executed just before
startup.scm is loaded is reproduced below.  Note that running_as_shell
will be false in this case, and so after the gh_define, the next
statement is gh_eval_file which loads startup.scm, which was printed
in your output as ./share/scm/startup.scm.  Unless something in
startup.scm is undefining it (which I don't even know how to do in
guile) then I don't know how that could happen.  What's your guile
version?

  fprintf(stderr, "gnucash: startup-file is %s\n", startup_file);
  
  /* We can't just use gh_eval_str here because --startup-file might have
     double quotes or other funny chars in it.  */
  
  gh_define("gnc:_startup-file-default_", gh_str02scm(startup_file));

  if(running_as_shell(gargc, gargv)) {
    gh_repl(argc, argv);
  } else {
    if(gh_eval_file(startup_file) == SCM_BOOL_F) {
      fprintf(stderr, "gnucash: (load %s) failed\n", startup_file);
      exit(1);
    }
  }

-- 
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to