From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23095 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: K4zuki Newsgroups: gmane.text.pandoc Subject: [ Q ] Lua-filter: "Dynamic linking not supported" error when loading certain lua module(s) Date: Mon, 8 Jul 2019 05:44:06 -0700 (PDT) Message-ID: <4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1867_615691738.1562589846879" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="165620"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCY7J2HL3ALBBF7VRTUQKGQE3EKEDXY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 08 14:44:15 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f186.google.com ([209.85.167.186]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hkT0B-000guY-2U for gtp-pandoc-discuss@m.gmane.org; Mon, 08 Jul 2019 14:44:15 +0200 Original-Received: by mail-oi1-f186.google.com with SMTP id l5sf6049072oih.3 for ; Mon, 08 Jul 2019 05:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=f2XSsZiM4xsu6Ta55YFeMdef9AU+Ep5GOo0nTu0feww=; b=RRelSS7gOvgzV3CAZQoA/cVu7mITv3OFgzD/5AJcctkGSd42JvEfBZvUL6ZgpXh5QB VglQZrxM6jpuQiXhOneyQ8ohxfJTN4tkldgkvQ7KJsuU2iYjvLI48eM1afDYtesrn4dt EsWS4y0fW9vkKtYv7VSaQQByzzK0V0Li0UxrKgx6dVWT6/H61fqkjRstXdkxuaKt1lTM d7byOVS66wO+nhU9+O3y+FjfscL8fv+kWga9VrQUDEmH13QMboEsAFHvyfr8n1ss2jYc 7/P+NGE4Kv4AjO7o+1KDGxLZzPzQhlorKMQ0EnjwLZPGifh4Va/n/1FXXw3NeCK89PNZ fUYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=f2XSsZiM4xsu6Ta55YFeMdef9AU+Ep5GOo0nTu0feww=; b=riYChSS9F0NmZb/D/vjD7lBj6naHbVyh8NKmGx4sOv2NbuDye0yqfzhwDHVW9dRyWW UvH/aYl4crLjboLjdIDnPBv4QgnaLuLLDaBj16HDsrVnIbsxgYbR0MO6SZSwO6txrNcs 3q/oXw8AR0lj/7LTGQLF1x+Waf4v5ZOzRVMsS9pFWcWUd0LmOzl3JMJPqcycgEkglnK3 vZZxIKKm23ikv9ALaLfWroPpZKTmCPMtDo9+IVrWqCokxf/wBL5XBt1I/ycVUWnh6IcF N9xbuyYq/j7nSykC8j2ThlfXrp0JbsHq/BxGoAm6KXnC8uBM+xJtggDtzOBbhu+TFvFM qcwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=f2XSsZiM4xsu6Ta55YFeMdef9AU+Ep5GOo0nTu0feww=; b=D/+Hmw/LJDI8QZDkZgiMebJyVgrx1qpCHiZBvbGutub6PSM0GjROQtwIMACN9vMPcx VpCiaJPilZ2+euguYsEjQP6lrjEco5+rZreWxZx/QjoIgXnsvWxmW2tE7I3jzgwULJ1S 6MtP4kWdEU97UVsbi3zS+48fI7tBCS3HlnV/fWwK1d++l1DTVY5BZ4oiPWJZkTFsH3I7 o+g9WY9aXf4IwLk1Cck9IMxYk+UDwcdVZ1Cb+JKNiekBOOW+i61XdpiLFN3fHZebrC9R uhurdwccDr4GjmqCZ70VttsjSPqXLrMktKK+edrAEHHQljRQkotNIINW79kYxE6+jU0r l8wQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXiG2jhSDfrXslzc116npkdJ+2S9jc9jRmP6hAJ+yjlJfXl897t krERdhMtb/scKDN9Id7MTIY= X-Google-Smtp-Source: APXvYqx7mrKLYEm+VNe65xTx+A50of6oQRpq2gWMlhPTcQaoikyi2JGgrZdLXDSof99WfAUDAXaOdg== X-Received: by 2002:aca:280a:: with SMTP id 10mr6136232oix.38.1562589848660; Mon, 08 Jul 2019 05:44:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:4804:: with SMTP id c4ls1120085otf.10.gmail; Mon, 08 Jul 2019 05:44:07 -0700 (PDT) X-Received: by 2002:a9d:4c81:: with SMTP id m1mr15292701otf.338.1562589847493; Mon, 08 Jul 2019 05:44:07 -0700 (PDT) X-Original-Sender: k.yamamoto.08136891-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23095 Archived-At: ------=_Part_1867_615691738.1562589846879 Content-Type: multipart/alternative; boundary="----=_Part_1868_1400225812.1562589846880" ------=_Part_1868_1400225812.1562589846880 Content-Type: text/plain; charset="UTF-8" Hello, I am facing a little problem around lua and pre-compiled dynamic libraries(*.so). On Ubuntu 18.04(bionic), I have installed '*lyaml*' and '*lfs*' modules through 'lua-yaml' and 'lua-filesystem' APT packages. Pandoc version is *2.7.3* When I try to load *lyaml* by simplest statement like following, Pandoc-lua raises error ```input package.path = package.path .. ';/usr/share/lua/5.3/?.lua' package.cpath = package.cpath .. ";/usr/lib/x86_64-linux-gnu/lua/5.3" -- those 2 lines above are required to load local lyaml = require("lyaml") ``` --- ```output error loading module 'yaml' from file '/usr/lib/x86_64-linux-gnu/lua/5.3/yaml.so': Dynamic loading not supported stack traceback: [C]: in ? [C]: in function 'require' /usr/share/lua/5.3/lyaml.lua:31: in main chunk [C]: in function 'require' ../lua/test.lua:5: in main chunk ``` *lfs* is similar like so: ``` error loading module 'lfs' from file '/usr/lib/x86_64-linux-gnu/lua/5.3/lfs.so': Dynamic loading not supported stack traceback: [C]: in ? [C]: in function 'require' ../lua/test.lua:8: in main chunk ``` How can we solve this, or do we need to use static libs only? Thanks && Regards, Kazuki / K4zuki -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1868_1400225812.1562589846880 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am facing a little problem aro= und lua and pre-compiled dynamic libraries(*.so).

= On Ubuntu 18.04(bionic), I have installed 'lyaml' and 'lfs' modules through 'lua-yaml' and 'l= ua-filesystem' APT packages.
Pandoc version is 2.7.3

When I try to load lyaml by simplest statement like following, Pandoc-lua = raises error
```input
package.path =3D package.= path .. ';/usr/share/lua/5.3/?.lua'
package.cpath =3D package.cpath .. ";/usr/lib/= x86_64-linux-gnu/lua/5.3"
-- those 2 lines above are required to load=C2=A0
local l= yaml =3D require("lyaml")
```
---
```output
error loading module 'yaml' from file '/usr/lib/x86_64-= linux-gnu/lua/5.3/yaml.so':
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Dynamic loading not supported
stack traceback:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = [C]: in ?
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 [C]: in function 'require'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 /usr/share/lua= /5.3/lyaml.lua:31: in main chunk
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [C]: in function 'require'=
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 ../lua/test.lua:5: in main chunk
```
lfs is similar like = so:
```
=
error loading module 'lfs= 9; from file '/usr/lib/x86_64-linux-gnu/lua/5.3/lfs.so':
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Dy= namic loading not supported
stack traceback:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [C]: in ?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [C]: in function 're= quire'
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 ../lua/test.lua:8: in main chunk
```

Ho= w can we solve this, or do we need to use static libs only?

Thanks && Regards,
Kazuki / K4zuki

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1868_1400225812.1562589846880-- ------=_Part_1867_615691738.1562589846879--