From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sanel Zukan Newsgroups: gmane.emacs.bugs Subject: bug#47318: 26.3; Modules on Emacs 26.3 broken? Date: Sat, 27 Mar 2021 18:53:55 +0100 Message-ID: <87czvk5vpo.fsf@example.com> References: <87ft0n2uxt.fsf@example.com> <87h7l15z03.fsf@example.com> <4C4D65E2-63E0-44AA-9B18-2B6792C0F86A@gmail.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="28023"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.28.2 (https://notmuchmail.org) Cc: 47318@debbugs.gnu.org To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 27 18:55:11 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 1lQD9R-00077i-9A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 18:55:09 +0100 Original-Received: from localhost ([::1]:51950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQD9Q-0003pj-7b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 13:55:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQD9K-0003pd-IZ for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 13:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQD9K-0007aB-6t for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 13:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQD9K-0002bn-2h for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 13:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sanel Zukan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Mar 2021 17:55: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.16168676479959 (code B ref 47318); Sat, 27 Mar 2021 17:55:02 +0000 Original-Received: (at 47318) by debbugs.gnu.org; 27 Mar 2021 17:54:07 +0000 Original-Received: from localhost ([127.0.0.1]:44895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQD8Q-0002aW-GO for submit@debbugs.gnu.org; Sat, 27 Mar 2021 13:54:06 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:45603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQD8N-0002Zd-3O for 47318@debbugs.gnu.org; Sat, 27 Mar 2021 13:54:05 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id bx7so9799267edb.12 for <47318@debbugs.gnu.org>; Sat, 27 Mar 2021 10:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=pZyqP5RAxfumYpLIK39PmP5F79ethXln64M2GjrEJM8=; b=RhfkRE8obr1BhDvJ2jkkWZzY9xhJT55nI855qNsbpzpTOV4wJ0dgVsaoniTxJO3M+N /ga/4ZajUiM7CsTuYj/MpLVpH8G6IjPdC7IpMe21VsG2pGI+83yhwc67oDg72EpLUauK v+R+PCXYwOAwQyAlxh7dkxI+Xd1Xov4GJriZshxtIMcWos+lngAO4VI8B0ekFtJLNDaQ zyxd9ltpNXpSPLeYVfS7wd6OCU2jASRK5XxMzgzLeJu2U1RHe4xMF2SSfE5/I4vOAR2B m03g5petcpnl66bXLmoD35vwEcVem8ipWKrlmxTC/qvO/cdNSYQembpDzGn/X8BoHC8O 8plw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=pZyqP5RAxfumYpLIK39PmP5F79ethXln64M2GjrEJM8=; b=LstRd+P2uq/oozxrJnC0I3lcTzpXafZDzeTmGkeowlhFD9olQwTrPsyVId9g36dGhS wi+UqX17dLym2p1LqwRwOIUNH37szfe7DEuS8XTE/iFEknOX1CCIJCizzsWa19zXnv// rS2mgJ9H7slAjS5CDGgi9tJLCJevjmFk/boAg6ss4xkVSmHDigrpS/ybwIvbSHDjhZFk 151B76HRbE3e2LtssL8gWTcbRlf+ViaMt+Vfv4tpqMcIZntJS4ndQBGK1tKJnA4JQ39o xDW9Ytj4kTNTdlP+T2uC3XVUymTBo3QRmLZsLnqqaIyDAS16yFfUNeUWifTGM3ptsKG1 WG4g== X-Gm-Message-State: AOAM532MJnHUR9P2KMjmKVOBJtECglglSZ9x5BVX4nUeDGS/Z2LUwGSF xhYw989nqWO3xIndkCE7nZ4= X-Google-Smtp-Source: ABdhPJx9JtMS2nEjh8b7nHGzqoSrMid3U1dt/RUKSRR2A9IS+5Tmd++9iwjMDNgSHKI7iFKTN4BIbQ== X-Received: by 2002:aa7:df86:: with SMTP id b6mr21302219edy.294.1616867637056; Sat, 27 Mar 2021 10:53:57 -0700 (PDT) Original-Received: from localhost ([185.13.240.217]) by smtp.gmail.com with ESMTPSA id i10sm5450600ejv.106.2021.03.27.10.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Mar 2021 10:53:56 -0700 (PDT) In-Reply-To: <4C4D65E2-63E0-44AA-9B18-2B6792C0F86A@gmail.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:203132 Archived-At: Philipp writes: > Could you please explain precisely what you're trying to do, starting fro= m '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) 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 >>=20 >> Any idea what could go wrong? >>=20 >> Best regards, >> Sanel >>=20 >> Philipp Stephani writes: >>> Am Mo., 22. M=C3=A4rz 2021 um 14:14 Uhr schrieb Sanel Zukan : >>>>=20 >>>> Hi guys, >>>>=20 >>>> I'm getting this [1] error from freshly compiled Emacs 26.3 and >>>> vterm-module. >>>>=20 >>>> 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. >>>>=20 >>>> 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. >>>>=20 >>>> [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 >>>>=20 >>>=20 >>> 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'?