From mboxrd@z Thu Jan 1 00:00:00 1970 From: mike@rohleder.de Subject: bug#35644: emacs module support doesn't work Date: Tue, 10 Mar 2020 17:52:12 +0100 Message-ID: <878sk8qhj7.fsf@rohleder.de> References: <87o94cid7z.fsf@cune.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51181) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBi7s-0000sL-J5 for bug-guix@gnu.org; Tue, 10 Mar 2020 12:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBi7q-0002zR-LG for bug-guix@gnu.org; Tue, 10 Mar 2020 12:53:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBi7q-0002yu-H7 for bug-guix@gnu.org; Tue, 10 Mar 2020 12:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jBi7q-0004jj-DB for bug-guix@gnu.org; Tue, 10 Mar 2020 12:53:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87o94cid7z.fsf@cune.org> (Caleb Ristvedt's message of "Wed, 08 May 2019 21:16:48 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Caleb Ristvedt Cc: 35644@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Caleb Ristvedt writes: > > Assuming the above file is named emacs-module-test.c: > > ------------------------------- > $ gcc -fPIC -shared emacs-module-test.c -o hello-module.so > $ emacs -Q -L . --batch -l hello-module --eval "(message (hello-c))" > > =3D> Symbol's function definition is void: hello-c > ------------------------------- > > As far as I can tell, this should work. Our emacs is built with > '--with-modules', and 'MODULES' is in system-configuration-features. Any > idea what's going wrong? I cant reproduce this, it works for me: $ guix environment -C bash --ad-hoc emacs gcc-toolchain [env]$ gcc -fPIC -shared emacs-module-test.c -o hello-module.so [env]$ emacs -Q -L . --batch -l hello-module --eval "(message (hello-c))"= =20=20 TEST MESSAGE! TEST MESSAGE! TEST MESSAGE! Hello Emacs =2D-=20 Der Erfolg ist nicht danach zu beurteilen, was ein Mensch im Leben erreicht hat, sondern nach den Hindernissen, die er auf dem Weg zum Erfolg ueberwunden hat. (Booker T. Washington) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEdV4t5dDVhcUueCgwfHr/vv7yyyUFAl5nxbwACgkQfHr/vv7y yyWgpwf/dDF2LPXQ8bRvmrxffjNZ1LUc5OE6FbVaDGyu0aP0n7ir4XrPGYvqHDLv 8bXepqjk7jYMZL80LDwVkAGOG4EhdQ6+L5mfpFeR6HZdsC1qUFweGXg3ZfujGUxa IY/Upg5ich3a022XU6KtIGmpSsX1AYPkWpAzs1Lua5RSjWzGVBRfYqotBe4QNZPR B5BXDj+EIEacyxxhwLWqwvWKdlmU693GEkaOwAY6LdOT6l6JKi8tn8GejXOnLxMb qWH9Vh2LkNO+uBvpOg86FsK2WopCokN14T6wDKCevuxr/IuNAUsTY1YufyVFNORw 6h2s90XsP59B1MS7Br6xAfvf2tcD5A== =pe1v -----END PGP SIGNATURE----- --=-=-=--