From: Oleg Pykhalov <go.wigust@gmail.com>
To: help-guix@gnu.org
Subject: Unbound variable: static-networking-service-type in gnu/services/base
Date: Sun, 08 Oct 2017 11:22:24 +0300 [thread overview]
Message-ID: <87r2ue3v7j.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 801 bytes --]
Hello Guix, Is it a bug or am I missing something?
I want to make a (geiser-mode-switch-to-repl-and-enter) in
(gnu services networking) module.
(gnu services networking) uses (gnu services base) module
(define-module (gnu services networking)
;; …
#:use-module (gnu services base)
;; …
)
(gnu services base) uses (gnu services networking) module
(define-module (gnu services base)
;; …
#:use-module (gnu services networking)
;; …
))
So, to avoid following error I need to manually call
(use-modules (gnu services base)) before switching to
(gnu services networking) module in the REPL.
gnu/services/base.scm:1889:8: gnu/services/base.scm:1889:8: Unbound
variable: static-networking-service-type
[-- Attachment #2: $ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "\(resolve-module '\(gnu services networking\)\)" --]
[-- Type: text/plain, Size: 2059 bytes --]
$ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "(resolve-module '(gnu services networking))"
substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute: updating list of substitutes from 'https://hydra.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/wqfqwnfza6k0pq952vkrl8b7hhn2ywzc-profile.drv
/gnu/store/vjcwkfd2gjb7hy4nhs2ia4irdjggnk4c-info-dir.drv
/gnu/store/f28n67bjd10xjwis1r7hx6fdp54fra24-fonts-dir.drv
/gnu/store/ahqvrv8fik5h2372mp034nm0nh6lispb-ca-certificate-bundle.drv
/gnu/store/254zl1qkwarynzx3ahdjrmpc4rm0hsw5-manual-database.drv
Creating manual page database for 13 packages... done in 0.229 s
Backtrace:
In ice-9/boot-9.scm:
2718:10 19 (_ (gnu services networking) _ _ #:ensure _)
2986:16 18 (try-module-autoload _ _)
2316:4 17 (save-module-excursion _)
3006:22 16 (_)
In unknown file:
15 (primitive-load-path "gnu/services/networking" #<proced?>)
In gnu/services/networking.scm:
24:0 14 (_)
In ice-9/boot-9.scm:
2866:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
2075:24 12 (call-with-deferred-observers _)
2879:24 11 (_)
230:29 10 (map1 (((gnu services)) ((gnu services shepherd)) (#) ?))
230:29 9 (map1 (((gnu services shepherd)) ((gnu services #)) # ?))
230:29 8 (map1 (((gnu services dbus)) ((gnu services base)) (#) ?))
230:17 7 (map1 (((gnu services base)) ((gnu system shadow)) (#) ?))
2792:17 6 (resolve-interface (gnu services base) #:select _ #:hide ?)
2718:10 5 (_ (gnu services base) _ _ #:ensure _)
2986:16 4 (try-module-autoload _ _)
2316:4 3 (save-module-excursion #<procedure 3261c60 at ice-9/boo?>)
3006:22 2 (_)
In unknown file:
1 (primitive-load-path "gnu/services/base" #<procedure 31?>)
In gnu/services/base.scm:
1889:8 0 (_)
gnu/services/base.scm:1889:8: gnu/services/base.scm:1889:8: Unbound variable: static-networking-service-type
[-- Attachment #3: Type: text/plain, Size: 661 bytes --]
And also a question. What is right syntax to make a use-modules call
using 'guile -e'?
$ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "(use-modules (gnu services base))
--8<---------------cut here---------------start------------->8---
Backtrace:
3 (apply-smob/1 #<catch-closure 12f75a0>)
In ice-9/boot-9.scm:
713:2 2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 1 (_ #(#(#<directory (guile-user) 13b8140>)))
In unknown file:
0 (_ ("guile"))
ERROR: ERROR: Wrong type to apply: #<unspecified>
--8<---------------cut here---------------end--------------->8---
next reply other threads:[~2017-10-08 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-08 8:22 Oleg Pykhalov [this message]
2017-10-08 15:44 ` Unbound variable: static-networking-service-type in gnu/services/base Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2ue3v7j.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=help-guix@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.