[Ecls-list] Problem with ecl_elt_unsafe
Waldek Hebisch
hebisch at math.uni.wroc.pl
Thu Jul 16 10:29:40 UTC 2009
When trying to build FriCAS with ECL 9.7.1 I got the
following error:
;;; Invoking external command:
;;; gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fPIC -Dlinux -O "-I/home/hebisch/usr/include/" -w -c "/tmp/ECLINITRTWj3n.c" -o "/tmp/ECLINITRTWj3n.o"
/home/hebisch/fricas/axp14/ax-build24/src/interp/vmlisp.o: In function `L143suff
ix':
/home/hebisch/fricas/axp14/ax-build24/src/interp/vmlisp.c:3553: undefined refere
nce to `ecl_elt_unsafe'
/home/hebisch/fricas/axp14/ax-build24/src/interp/macros.o: In function `L46is_genvar':
/home/hebisch/fricas/axp14/ax-build24/src/interp/macros.c:2787: undefined refere
nce to `ecl_elt_unsafe'
AFAICS there is used, but undefined `ecl_elt_unsafe' in ECL
sources. The following patch fixed the problem for me:
diff -ru pp/ecl-9.7.1/src/cmp/sysfun.lsp ecl-9.7.1/src/cmp/sysfun.lsp
--- pp/ecl-9.7.1/src/cmp/sysfun.lsp 2009-07-13 10:20:22.000000000 -0400
+++ ecl-9.7.1/src/cmp/sysfun.lsp 2009-07-14 12:47:58.000000000 -0400
@@ -1218,7 +1218,7 @@
(def-inline elt :unsafe (t t) t "ecl_elt(#0,fix(#1))")
(def-inline elt :unsafe (t fixnum) t "ecl_elt(#0,#1)")
(def-inline elt :unsafe (vector t) t "ecl_aref_unsafe(#0,fix(#1))")
-(def-inline elt :unsafe (vector fixnum) t "ecl_elt_unsafe(#0,#1)")
+(def-inline elt :unsafe (vector fixnum) t "ecl_aref_unsafe(#0,#1)")
(def-inline aref :unsafe ((array bit) t) :fixnum "ecl_aref_bv(#0,fix(#1))")
(def-inline aref :unsafe ((array bit) fixnum) :fixnum "ecl_aref_bv(#0,#1)")
#+unicode
--
Waldek Hebisch
hebisch at math.uni.wroc.pl
More information about the ecl-devel
mailing list