From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arvydas Silanskas Newsgroups: gmane.lisp.guile.bugs Subject: bug#47538: ice-9 regex procedures not found when trying to use from r7rs-style defined library Date: Thu, 1 Apr 2021 10:06:39 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000286d7905bee3e0cd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31581"; mail-complaints-to="usenet@ciao.gmane.io" To: 47538@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Apr 01 09:42:11 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRrxz-00086S-Cr for guile-bugs@m.gmane-mx.org; Thu, 01 Apr 2021 09:42:11 +0200 Original-Received: from localhost ([::1]:56678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRrxy-00044C-BV for guile-bugs@m.gmane-mx.org; Thu, 01 Apr 2021 03:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRrxu-00043p-Iw for bug-guile@gnu.org; Thu, 01 Apr 2021 03:42:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRrxq-0004AS-1R for bug-guile@gnu.org; Thu, 01 Apr 2021 03:42:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRrxq-00075e-02 for bug-guile@gnu.org; Thu, 01 Apr 2021 03:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arvydas Silanskas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 01 Apr 2021 07:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47538 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161726290627223 (code B ref -1); Thu, 01 Apr 2021 07:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2021 07:41:46 +0000 Original-Received: from localhost ([127.0.0.1]:56018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRrxZ-00074y-LO for submit@debbugs.gnu.org; Thu, 01 Apr 2021 03:41:45 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRrPr-0006BB-Tz for submit@debbugs.gnu.org; Thu, 01 Apr 2021 03:06:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRrPr-0004RJ-Pd for bug-guile@gnu.org; Thu, 01 Apr 2021 03:06:55 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:43723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRrPp-0007cZ-UT for bug-guile@gnu.org; Thu, 01 Apr 2021 03:06:55 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id m12so1271773lfq.10 for ; Thu, 01 Apr 2021 00:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YXSD3wHpehE3jFfTpXTLEMjx/nSf9Gj9cgXRLA0wdOU=; b=ODdXcWtLg+oq0ExVsLG94c5C+h5iWFnSXIMVSmvMlZo9apDjLqaL/XMUPcSWdtn7Ll HG0iUWZl60A7fhVTgMluWHoKZMwTv9LOk+RDtm0sL7yrj+L0W0L7857aH9ImYzKmjWwP 3NuuOomBJIEV/M1dKHySH5jx1hold6PcGYdlUk+c6xWdStDWpU1wqnFHu1fjdk8ZOX9m AqDLYAAyoq0CPYEl3axpA5KYBvR+NqAVXgaPzBDLU2GozgJmsF0G/R0HEr32wP4dJJZl jqGNZZKDc2Ln1vuankAIJgjt8J8awHA4bwt8eWs2nLdAYjAUx9OIeHfyKms8T8TJmFx0 hOmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YXSD3wHpehE3jFfTpXTLEMjx/nSf9Gj9cgXRLA0wdOU=; b=eUA0rx2j0wGFaAvfeMylcwFCG+FFCh5U8vr+UPpZlQeBavo9RD7kfEYohbYj9zln9u INlcbGqOH+2fCwWOadFY3e/1GJcLJgWBbUuiN6Qj5UD4CLosQ70ZthLSpmVLYxntzLrD AAv7mr7jw3p8oYqSYTOr3sKiewv2mVC/G32Qd7GPMwU5WRhkvnfZdxowIzWQ3J6hI4CA 2v2zcksdvxyWrabuOxLfTU5yjABmOFI9aazInRjTh0slY8sizPQ0UZSIvAPpXSvNGBFG zCjwc49e3xwtpGzkfxjfwYRcycQRUmuZYGoF7dYAQxQI0jELoO9oLAZziBjQjODsZ1yJ OteA== X-Gm-Message-State: AOAM531gXb1Nypef1b/paaR0yaa/rRQsbfzuVfOeLTCZ/HMmvhpdbaAK qz32PjIPtENSMpNWZid03fUDGQ+jJqe0Y2qOVUdodIG8mUY= X-Google-Smtp-Source: ABdhPJyfycO7qOxKyArNVxP+QPi4pCCGsAZxItrcfztk5KSEV2VkKb7OSPr8gWrDxHRU5MGRWqU9OXQxSF55uvdazeo= X-Received: by 2002:a19:b03:: with SMTP id 3mr4632892lfl.236.1617260811151; Thu, 01 Apr 2021 00:06:51 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=nma.arvydas.silanskas@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 01 Apr 2021 03:41:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10005 Archived-At: --000000000000286d7905bee3e0cd Content-Type: text/plain; charset="UTF-8" Consider files foo-runner.scm: (import (foo) (scheme write)) (display (bar)) foo.scm: (define-library (foo) (import (scheme base) (ice-9 regex)) (export bar) (begin (define (bar) (make-regexp "a")))) Running this with guile -L . foo-runner.scm, yields error foo.scm:1:0: In procedure bar: Unbound variable: make-regexp It seems using other libraries is fine; eg it works if I change foo.scm to (define-library (foo) (import (scheme base) (ice-9 match)) (export bar) (begin (define (bar) (match "a" (_ "bar"))))) It also works if I try using regexp from application instead of module; eg if I change foo-runner.scm to (import (foo) (scheme write) (ice-9 regex)) (display (make-regexp "a")) I'm running version 3.0.5, installed through debian testing branch package manager --000000000000286d7905bee3e0cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Consider files
=
foo-runner.scm:
(import (foo)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (= scheme write))
(display (bar))

foo.scm:
(define-library = (foo)
=C2=A0 =C2=A0 (import
=C2=A0 =C2=A0 =C2=A0 (scheme base)
= =C2=A0 =C2=A0 =C2=A0 (ice-9 regex))
=C2=A0 =C2=A0 (export bar)

= =C2=A0 =C2=A0 (begin
=C2=A0 =C2=A0 =C2=A0 (define (bar)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 (make-regexp "a"))))

Running this wit= h guile -L . foo-runner.scm, yields error
foo.scm:1:0: In procedure bar:=
Unbound variable: make-regexp

It seems using other librari= es is fine; eg it works if I change foo.scm to
(define-library (foo)=C2=A0 =C2=A0 (import
=C2=A0 =C2=A0 =C2=A0 (scheme base)
=C2=A0 =C2= =A0 =C2=A0 (ice-9 match))
=C2=A0 =C2=A0 (export bar)

=C2=A0 =C2= =A0 (begin
=C2=A0 =C2=A0 =C2=A0 (define (bar)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 (match "a" (_ "bar")))))

It also wo= rks if I try using regexp from application instead of module; eg if I chang= e foo-runner.scm to
(import (foo)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (schem= e write)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (ice-9 regex))
(display (make-re= gexp "a"))

I'm running version 3.0.5, installed = through debian testing branch package manager
--000000000000286d7905bee3e0cd--