chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] awk egg and multiple unbound references


From: Imran Rafique
Subject: [Chicken-users] awk egg and multiple unbound references
Date: Thu, 8 Sep 2011 06:29:49 +0000

I can't import the awk egg :(

My box is currently running chicken-4.6.3, with the latest awk & regex eggs. When importing awk, I get lots of unbound variable errors (see repl output at the end of this mail)

awk.scm uses the regex egg, and needs it for 'string-search-positions'. So without (use regex), it will complain about just that (obviously). But with (use regex), I get tons of errors (as you can see below). Why are unless, let*-values etc unavailable? Shouldn't they be available with '(import scheme chicken)'? And as you can see from the debugging output, both 'scheme' and 'chicken' are correctly loaded.

When examining the debugging output from (use regex) from a dummy module, I noticed that it loads, in order:
regex.import.so
irregex.import.so
regex.so

Whereas with the awk egg, it loads:
regex.import.so
irregex.import.so
awk.scm
regex.so

Does anyone get these errors with a more recent chicken build? A bit mystified by this. Over to the chicken-meisters  :)

----{ repl output, with -:d}----
#;1> (use awk)
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/awk.import.so ...
[debug] loading compiled module `/home/imran/opt/scheme/chicken/eggs/lib/chicken/5/awk.import.so' (handle is 0x0000000000658e40)
[debug] entering toplevel toplevel...
[debug] stack resized to 262144 bytes
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/scheme.import.so ...
[debug] loading compiled module `/home/imran/opt/scheme/chicken/eggs/lib/chicken/5/scheme.import.so' (handle is 0x0000000000659e50)
[debug] entering toplevel toplevel...
[debug] stack resized to 131072 bytes
[debug] resizing heap dynamically from 500k to 1000k ...
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/chicken.import.so ...
[debug] loading compiled module `/home/imran/opt/scheme/chicken/eggs/lib/chicken/5/chicken.import.so' (handle is 0x000000000065a520)
[debug] entering toplevel toplevel...
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/regex.import.so ...
[debug] loading compiled module `/home/imran/opt/scheme/chicken/eggs/lib/chicken/5/regex.import.so' (handle is 0x000000000065ac60)
[debug] entering toplevel toplevel...
[debug] stack resized to 262144 bytes
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/irregex.import.so ...
[debug] loading compiled module `/home/imran/opt/scheme/chicken/eggs/lib/chicken/5/irregex.import.so' (handle is 0x000000000065b6f0)
[debug] entering toplevel toplevel...
[debug] stack resized to 131072 bytes
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/awk.scm ...
; loading library srfi-1 ...
[debug] loading compiled module `libchicken.so.5' (handle is 0x0000000009500680)
[debug] entering toplevel srfi_1_toplevel...
[debug] resizing heap dynamically from 1000k to 2000k ...
; loading /home/imran/opt/scheme/chicken/eggs/lib/chicken/5/regex.so ...
[debug] loading compiled module `/home/imran/opt/scheme/chicken/eggs/lib/chicken/5/regex.so' (handle is 0x000000000065d510)
[debug] entering toplevel toplevel...
[debug] stack resized to 262144 bytes
[debug] entering toplevel irregex_toplevel...

Note: the following toplevel variables are referenced but unbound:
  unless
  let*-values
  user-fields
  counter
  user-state-var-decls
  continue
  user-state-vars
  user-state-var-decls
  local-user-state-vars
  user-state-vars
  user-fields
  clauses
  loop
  extras
  arg
  else-ready?
  orig-on?
  post-on-on?
  escape
  initvars
  user-state-vars (in get-after-clauses)
  clauses (in get-after-clauses)
  arg (in wrap-state)
  arg (in wrap-state)
  local-user-state-vars (in wrap-state)
  extras (in wrap-state)
  else-ready? (in wrap-state)
  user-state-vars (in wrap-state)
  local-user-state-vars (in wrap-state)
  initvars (in make-range)
  orig-on? (in make-range)
  post-on-on? (in make-range)
  post-on-on? (in make-range)
  orig-on? (in make-range)
  orig-on? (in make-range)
  initvars (in make-test)
  counter (in make-test)
  else-ready? (in get-testing-clauses)
  else-ready? (in get-testing-clauses)
  initvars (in get-testing-clauses)
  arg (in get-testing-clauses)
  arg (in get-testing-clauses)
  clauses (in get-testing-clauses)
  user-state-var-decls
  initvars
  loop
  counter
  user-fields
  else-ready?
  escape
  continue
  local-user-state-vars
  extras
  user-state-vars
  local-user-state-vars
  escape
  loop
  counter
----{ end of repl output}----

--
Regards,
       Imran Rafique


reply via email to

[Prev in Thread] Current Thread [Next in Thread]