From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#47318: 26.3; Modules on Emacs 26.3 broken?
Date: Sun, 28 Mar 2021 18:36:32 +0200
Message-ID:
References: <87ft0n2uxt.fsf@example.com>
<87h7l15z03.fsf@example.com> <4C4D65E2-63E0-44AA-9B18-2B6792C0F86A@gmail.com>
<87czvk5vpo.fsf@example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="15241"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 47318@debbugs.gnu.org
To: Sanel Zukan
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 18:37:24 2021
Return-path:
Envelope-to: geb-bug-gnu-emacs@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 1lQYPj-0003qe-3Z
for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 18:37:23 +0200
Original-Received: from localhost ([::1]:36314 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1lQYPi-00030C-5N
for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 12:37:22 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33736)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1lQYPO-0002zr-CK
for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 12:37:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:35355)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1lQYPO-0003YK-5U
for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 12:37:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1lQYPO-00019d-31
for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 12:37:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 28 Mar 2021 16:37:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 47318
X-GNU-PR-Package: emacs
Original-Received: via spool by 47318-submit@debbugs.gnu.org id=B47318.16169494114415
(code B ref 47318); Sun, 28 Mar 2021 16:37:02 +0000
Original-Received: (at 47318) by debbugs.gnu.org; 28 Mar 2021 16:36:51 +0000
Original-Received: from localhost ([127.0.0.1]:46900 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1lQYPD-000198-Es
for submit@debbugs.gnu.org; Sun, 28 Mar 2021 12:36:51 -0400
Original-Received: from mail-oi1-f171.google.com ([209.85.167.171]:41973)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1lQYPB-00018u-Bj
for 47318@debbugs.gnu.org; Sun, 28 Mar 2021 12:36:49 -0400
Original-Received: by mail-oi1-f171.google.com with SMTP id z15so10896660oic.8
for <47318@debbugs.gnu.org>; Sun, 28 Mar 2021 09:36:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc:content-transfer-encoding;
bh=KS9tVT1jsZALVf39x+YrYKr+7A39I79UgkEBsVX22f8=;
b=ar5/jApZtBqOQO7yT0+/JV14EiRqLoY3rQKLQX7r1S139YrTAImaR9iPyF6SvuwVKm
GC2r4Pci4ZFovaaM12Fg4sn6+lTf5kSTAvgdIsH80gq7/w166AypqsWl1ypY5wHj0cJ2
TpWsrS8Mk2xpJd3CpeI21p/aQdC5UAc3Tc62Ac5jz9sLlD8ihxqgrN04i3Eil2RoJJuO
3HIeCAO1KBhqLSp9RCSKiazDjUlNb1XT20Wzez74lDOTImTexjJhzcU7CbTbjxvhFw24
9m2dH6cQ7+Q49z0CoY3fZpsGmR+qBrmArl1u95MGOXcA2DwEw0rwlM8VSdleSKuF/0m+
Z/zw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc:content-transfer-encoding;
bh=KS9tVT1jsZALVf39x+YrYKr+7A39I79UgkEBsVX22f8=;
b=BacJyBRHk7YZr6texvTgLsJcrozhW6WrTb/PbzXwi2QobNWVAK8pxCm5BnI8zzBlSK
/vkJdV8H0FeNujS0KAhc4qJENnJm3AmtQ0+GGyji5IRAw6lm5wOS913pclIqMMLIE6S8
yLPeF7SIEKL4ZrD85JJoL0xWkke8Vnvf/s+Ux+z0WTmCG3f1yE0lgg/MGVcJufKsoxDu
yyvFBscqel54bgGdplvuxTa4qZ83XKm1RT7kwO/K/2C9gV6yrP6CZij4vwbwgKRmywEH
5QhZDClDe8vgfIdgi7d1o8evZS8WGU0LElp8fPJ7ZiZafNrquOL8321L65pdpn/WYF9P
vy+Q==
X-Gm-Message-State: AOAM53273eOPwztgcT48V7KvulvvBxhWEKKtMovkM88eWfws2rmiG44Y
YjUPCFwBZuVf8TKcYbyaMShiFYqvpTbyn9YixvU=
X-Google-Smtp-Source: ABdhPJzho4WqzmnErQF7MgVwRaIzl4Hd4i2+J8VDxIkwX6pAyj58XcbNBX7yzStOJc18FgvLHQbt0EQOjW/8JMLzXrg=
X-Received: by 2002:aca:be04:: with SMTP id o4mr16150206oif.25.1616949403391;
Sun, 28 Mar 2021 09:36:43 -0700 (PDT)
In-Reply-To: <87czvk5vpo.fsf@example.com>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:203189
Archived-At:
Am Sa., 27. M=C3=A4rz 2021 um 18:53 Uhr schrieb Sanel Zukan :
>
>
> Philipp writes:
> > Could you please explain precisely what you're trying to do, starting f=
rom 'emacs -Q'? Thanks.
>
> Sure! I'm going to use that mymod example.
>
> 1. Start emacs 26.3 with:
> "~/programs/emacs/emacs-26.3/src/emacs -Q"
>
> 2. Run in *scratch* (or minibuffer):
> (load "/home/sanel/programs/emacs/module-test/mymod.so")
>
> Loading without ".so" extesions also works.
>
> 3. This will return 't'.
>
> 4. After mymod.so is loaded, 'mymod-test' function should be defined.
>
> 5. In *scratch* or minibuffer, running: (fboundp 'mymod-test) =3D> nil.
>
> Also, evaliuating '(mymod-test)' will throw this error:
>
> Debugger entered--Lisp error: (void-function mymod-test)
> (mymod-test)
> eval((mymod-test) nil)
> elisp--eval-last-sexp(t)
> eval-last-sexp(t)
> eval-print-last-sexp(nil)
> funcall-interactively(eval-print-last-sexp nil)
> call-interactively(eval-print-last-sexp nil nil)
> command-execute(eval-print-last-sexp)
>
I can't reproduce that, sorry. Both the fboundp check and calling the
function work as expected for me. I've compiled the module as
described in http://diobla.info/blog-archive/modules-tut.html.
>
> Replicating the same steps in emacs 27.2, in the step 4. it will
> return 't' and when '(mymod-test)' is called, it will return 42.
>
> Best regards,
> Sanel
>
> >>
> >> Any idea what could go wrong?
> >>
> >> Best regards,
> >> Sanel
> >>
> >> Philipp Stephani writes:
> >>> Am Mo., 22. M=C3=A4rz 2021 um 14:14 Uhr schrieb Sanel Zukan :
> >>>>
> >>>> Hi guys,
> >>>>
> >>>> I'm getting this [1] error from freshly compiled Emacs 26.3 and
> >>>> vterm-module.
> >>>>
> >>>> Also, emacs-eject [2] and very simple module [3] fails on 26.3 with =
the
> >>>> similar error. However, they are working fine on 27.1.
> >>>>
> >>>> Any idea what could go wrong? I also tried to run bare Emacs with
> >>>> 'emacs -Q'. In the all cases, Emacs is compiled with modules support=
.
> >>>>
> >>>> [1] https://github.com/akermu/emacs-libvterm/issues/181
> >>>> [2] https://github.com/syohex/emacs-eject
> >>>> [3] http://diobla.info/blog-archive/modules-tut.html
> >>>>
> >>>
> >>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30164 is probably at
> >>> least part of the answer.
> >>> However, loading modules in general should still work, even in Emacs
> >>> 26. Do you also get errors when loading the module file directly with
> >>> `load' instead of `require'?