[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unbound variable: static-networking-service-type in gnu/services/base
From: |
Oleg Pykhalov |
Subject: |
Unbound variable: static-networking-service-type in gnu/services/base |
Date: |
Sun, 08 Oct 2017 11:22:24 +0300 |
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
txtDCKJSYtlG1.txt
Description: $ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "\(resolve-module '\(gnu services networking\)\)"
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---
- Unbound variable: static-networking-service-type in gnu/services/base,
Oleg Pykhalov <=