From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: Unbound variable: static-networking-service-type in gnu/services/base Date: Sun, 08 Oct 2017 11:22:24 +0300 Message-ID: <87r2ue3v7j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e16r2-0005sG-L2 for help-guix@gnu.org; Sun, 08 Oct 2017 04:22:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e16qz-0003tv-GV for help-guix@gnu.org; Sun, 08 Oct 2017 04:22:32 -0400 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:46124) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e16qz-0003tD-79 for help-guix@gnu.org; Sun, 08 Oct 2017 04:22:29 -0400 Received: by mail-lf0-x235.google.com with SMTP id g70so8727503lfl.3 for ; Sun, 08 Oct 2017 01:22:27 -0700 (PDT) Received: from magnolia (92-100-249-9.dynamic.avangarddsl.ru. [92.100.249.9]) by smtp.gmail.com with ESMTPSA id 188sm1290787ljj.59.2017.10.08.01.22.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Oct 2017 01:22:25 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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) ;; =E2=80=A6 #:use-module (gnu services base) ;; =E2=80=A6 ) (gnu services base) uses (gnu services networking) module (define-module (gnu services base) ;; =E2=80=A6 #:use-module (gnu services networking) ;; =E2=80=A6 )) 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 --=-=-= Content-Type: text/plain Content-Disposition: attachment Content-Description: $ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "\(resolve-module '\(gnu services networking\)\)" $ 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" #) 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 #) 3006:22 2 (_) In unknown file: 1 (primitive-load-path "gnu/services/base" #) 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 --=-=-= Content-Type: text/plain 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 #) In ice-9/boot-9.scm: 713:2 2 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 1 (_ #(#(#))) In unknown file: 0 (_ ("guile")) ERROR: ERROR: Wrong type to apply: # --8<---------------cut here---------------end--------------->8--- --=-=-=--