patch: REQUIRES g-wrap 1.1.5.

Derek Atkins warlord@MIT.EDU
15 Jan 2001 22:03:42 -0500


Rob,

Unfortunately g-wrap 1.1.6 doesn't build.  The error message I get is
below.  I suspect that the problem is that this code doesn't work (in
libruntime-guile/g-wrap-runtime-guile.c) because you have (tc) instead
of (id) when you call GW_NEWSMOB:

#define GW_RETURN_NEWSMOB(id, data) \
  do { \
    SCM __SCM_smob_answer; \
    GW_NEWSMOB(__SCM_smob_answer, (tc), (data)); \
       return __SCM_smob_answer; \
  } while (0)

The error I get:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -m486 -fno-strength-reduce -I/usr/include -c  -fPIC -DPIC g-wrap-runtime-guile.c -o .libs/g-wrap-runtime-guile.lo
g-wrap-runtime-guile.c: In function `gw_puts':
g-wrap-runtime-guile.c:64: warning: passing arg 1 of `scm_puts' discards `const' from pointer target type
g-wrap-runtime-guile.c: In function `gw_wcp_assimilate_ptr':
g-wrap-runtime-guile.c:218: `tc' undeclared (first use in this function)
g-wrap-runtime-guile.c:218: (Each undeclared identifier is reported only once
g-wrap-runtime-guile.c:218: for each function it appears in.)
g-wrap-runtime-guile.c:218: warning: assignment makes integer from pointer without a cast
g-wrap-runtime-guile.c: In function `initialize_wct_type_system':
g-wrap-runtime-guile.c:301: incompatible type for argument 1 of `scm_newsmob'
g-wrap-runtime-guile.c:302: incompatible type for argument 1 of `scm_newsmob'
g-wrap-runtime-guile.c: In function `gw_wct_create':
g-wrap-runtime-guile.c:346: warning: passing arg 1 of `gh_str02scm' discards `const' from pointer target type
g-wrap-runtime-guile.c:353: `tc' undeclared (first use in this function)
g-wrap-runtime-guile.c:353: warning: assignment makes integer from pointer without a cast
make[2]: *** [g-wrap-runtime-guile.lo] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/g-wrap-1.1.6/libruntime-guile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/g-wrap-1.1.6'
make: *** [all-recursive-am] Error 2

-derek

Rob Browning <rlb@cs.utexas.edu> writes:

> Derek Atkins <warlord@MIT.EDU> writes:
> 
> > Ok, I did this..  Now I get linking errors (due to smob issues, I
> > believe):
> 
> Could you try 1.1.6 (same place) ftp.gnucash.org...
> 
> It may fix your problems.  If so, then we'll need to bump the
> requirement in gnucash's configure.in.
> 
> Thanks
> 
> -- 
> Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930

-- 
       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