unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Joel James Adamson <adamsonj@email.unc.edu>
To: guile-user@gnu.org
Subject: Unbound variable: quote
Date: Thu, 23 Sep 2010 12:19:08 -0400	[thread overview]
Message-ID: <m3y6asxwjn.fsf@chondestes.bio.unc.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 2223 bytes --]

Hello,

I'm trying to load a file at the REPL that loads some modules from a
subdirectory then defines a function.  At reading my use-modules
statements, I get the following error:

guile> %load-path
("/home/joel/Public/src/age_dep/sim/trunk" "/usr/share/guile/site" "/usr/share/guile/1.8" "/usr/share/guile")
guile> (load "age_dep.scm")

Backtrace:
In unknown file:
    ...
   ?: 20  (letrec ((load-file #)) (dynamic-wind (lambda () #) (lambda () #) ...) ...)
   ?: 21* [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
   ?: 22* [#<procedure #f ()>]
   ?: 23* (let* ((file #)) (cond (# => #) (# => #)))
   ?: 24  [#<procedure #f #> "/home/joel/Public/src/age_dep/sim/trunk/age-dep-scm/age-dep-interface.scm"]
   ?: 25  [with-fluid* #<fluid 7> #f #<procedure #f ()>]
   ?: 26* [#<procedure #f ()>]
   ?: 27* [load-file #<primitive-procedure primitive-load> ...]
   ?: 28* [save-module-excursion #<procedure #f ()>]
   ?: 29  (let (# #) (dynamic-wind # thunk #))
   ?: 30  [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
   ?: 31* [#<procedure #f ()>]
   ?: 32* [primitive-load "/home/joel/Public/src/age_dep/sim/trunk/age-dep-scm/age-dep-interface.scm"]
In /home/joel/Public/src/age_dep/sim/trunk/age-dep-scm/age-dep-interface.scm:
  36: 33* (use-modules (ice-9 popen))
  36: 34  (eval-case (# # *unspecified*) (else #))
  36: 35  (begin (process-use-modules (list (list #))) *unspecified*)
In unknown file:
   ?: 36* [process-use-modules ...
   ?: 37* [list ...
   ?: 38* [list ...
   ?: 39* (quote (ice-9 popen))

<unnamed port>: In expression (quote (ice-9 popen)):
<unnamed port>: Unbound variable: quote
ABORT: (unbound-variable)

However, at the REPL I can load the popen module just fine (with a
warning):

guile> (use-modules (ice-9 popen))
guile> (use-modules (age-dep-scm age-dep-interface))
WARNING: (guile-user): `quote' imported from both (ice-9 null) and (age-dep-scm age-dep-interface)

Why would `quote' be redefined?  What's going on here and how can I fix it?

Thanks,

Joel
-- 
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill

FSF Member #8164
http://www.unc.edu/~adamsonj

[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

             reply	other threads:[~2010-09-23 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 16:19 Joel James Adamson [this message]
2010-09-24 15:20 ` Unbound variable: quote Andy Wingo
2010-09-24 17:16   ` Joel James Adamson
2010-09-25 13:55     ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y6asxwjn.fsf@chondestes.bio.unc.edu \
    --to=adamsonj@email.unc.edu \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).