﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
468	MAGIC-LIMIT is undefined in lookup-table	Christian Kellermann	Kon Lovett	"This is with experimental chicken 4.6.4 on OpenBSD. I have no idea what magic limit does, I guess it is the threshhold for increasing the table or using another bucket size / algorithm...

{{{
$ chicken-install -n
retrieving ...
checking platform for `lookup-table' ...
checking dependencies for `lookup-table' ...
install order:
(""lookup-table"")
installing lookup-table: ...
changing current directory to .
  /usr/local/bin/csi -bnq -setup-mode -e ""(require-library setup-api)"" -e ""(import setup-api)"" -e ""(setup-error-handling)"" -e ""(extension-name-and-version '(\""lookup-table\"" \""\""))"" -e ""(keep-intermediates #t)"" -e ""(setup-install-mode #f)"" lookup-table.setup
  /usr/local/bin/csc -feature compiling-extension -setup-mode -k   lookup-table.scm -shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table -prelude ""(define-constant MAGIC-LIMIT 12)"" -disable-interrupts -fixnum-arithmetic -local -inline-limit 50 -no-procedure-checks -debug-level 1

Warning: reference to possibly unbound identifier `MAGIC-LIMIT' in:
Warning:    g641
Warning:    g613
Warning:    g526

Error: module unresolved: lookup-table

Error: shell command terminated with non-zero exit status 256: /usr/local/bin/chicken lookup-table.scm -output-file lookup-table.c -dynamic -feature chicken-compile-shared -feature compiling-extension -setup-mode -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table -prelude ""\\(define-constant\\ MAGIC-LIMIT\\ 12\\)"" -disable-interrupts -fixnum-arithmetic -local -inline-limit 50 -no-procedure-checks -debug-level 1

Error: shell command failed with nonzero exit status 256:

  /usr/local/bin/csc -feature compiling-extension -setup-mode -k   lookup-table.scm -shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table -prelude ""(define-constant MAGIC-LIMIT 12)"" -disable-interrupts -fixnum-arithmetic -local -inline-limit 50 -no-procedure-checks -debug-level 1


Error: shell command terminated with nonzero exit code
17920
""/usr/local/bin/csi -bnq -setup-mode -e \""(require-library setup-api)\"" -e \""(im...
[14:35:39] ckeen@athene:~/proj/chicken/chicken-eggs/release/4/lookup-table/trunk
$ grep MAGIC-LIMIT *scm
lookup-table-body.scm:(define-inline (magic-count? count) (<= count MAGIC-LIMIT))
}}}"	defect	closed	major	4.9.0	extensions	4.6.x	invalid			
