From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23096 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: [ Q ] Lua-filter: "Dynamic linking not supported" error when loading certain lua module(s) Date: Mon, 8 Jul 2019 15:14:55 +0200 Message-ID: References: <4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000565c60058d2b3ba5" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27404"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDIY76M674FRBV4DRXUQKGQECODOK6A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 08 15:15:06 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yw1-f57.google.com ([209.85.161.57]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hkTU1-0006tS-PP for gtp-pandoc-discuss@m.gmane.org; Mon, 08 Jul 2019 15:15:06 +0200 Original-Received: by mail-yw1-f57.google.com with SMTP id b188sf10746912ywb.10 for ; Mon, 08 Jul 2019 06:15:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1562591704; cv=pass; d=google.com; s=arc-20160816; b=GiG1vy638vjsgg5W/2ZPK3lf91SYGOWdyigpTmv8OBiWa7WmJosV8zS+aw2xtGbpsi eHjYw+REtBQINdpHAnJipag9ZGp1xyB+Q/OeWecBSu99tYw4nLHcplVtG+5e7dUrDQ/v P7sdqNaZ68Eg1XSlx9VzRC9LAFGwUrXuM92Y7m5mtjhm+FXJzKUmFQmqaSzIitPUV/fl bMSNk4hKxnxYeolby4lmCItVe4PzWzBGO+Y2Ug51aOaTzT3AYvEytkGm7/0q8AsgHXyy LXbxE10BItvEhB/YvmM5h3j3thg2OZSMm2VlloxmRpPNFJih7HhoD5clsTXKPEPMhXtN 29fg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=6rMl7fVmnOoTYCfyZD1c5zORljmFt9XHL48n3xjWnkg=; b=dG6rJ8mhA3uLGe7g9CUZRuSUEw0EJVLrR/xO7a9zjh80WrRYm1QoQK36oRu7jMFX9s VZ0iPJyWdIaIz62P0BAzEfMLJd/yjpzX3tM19oe9BorlIjhUmT7/R1iSk3QgbK94oZPM FMg66QMwjloVAKGoUCWwSZ44NBuIbOhcpfyZUc4Kt23V4tP6JumdFjJNXGZNEDNe1dph HlnNl/MS08l50gIeONxhKZ6in807EBpRXADtYH3RkSC5jVw09carU5oo5h5Bo/4ahqkZ pvZlfuIiK/1lDWRRbnBXuXHKIWkuV28RkxzukQrY2iONt/R2iTbhoweiCzfMs5k+vI2u /duQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TCXxhq48; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=6rMl7fVmnOoTYCfyZD1c5zORljmFt9XHL48n3xjWnkg=; b=Bf2Bai0AtuZ2o+13Q81DjzwEsTvTAd7AmG3SIVC88anHwZt0/sqqEv0Sr4PGv5GW93 B1pjayTJ7alf3RizZHbwRVBN+dD2Z04ZADrpBxyZFZpsBvbJTXOOKygh8kEGQalQ+xdb I9423JpiqgAMTaFJxE4AUuk6LKUpGm4I2/gFTnEeUUbOBMFgRt7u8IlieU5D2QxU0fI2 2VBKjcHjGukT8z7mt6FO/eQosfkg7xPQuB1RtjZeUtGAzwQ7mmQHdfceU1noodfq6KOM /Jyb9M67LvoDpm30SIHMfdOdLq/fMferPjVFSJZwLt1Ibew7pJXpKZyrjA7QSHlS64OC 8eug== 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 :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=6rMl7fVmnOoTYCfyZD1c5zORljmFt9XHL48n3xjWnkg=; b=S8rq7PIcRVobWkBVNyTyfDv6X75JjenanlQq6mC3tpqUuyqcz/H/9ocKtLNWDPXaYS 6U2yNvtxc0/ctJ6Y1AnemM97InEg+aeHhMLwz10qOQF5IsiGb5LIM7oL5mgz+dn56PL4 dFkgRZyoUY2IDl8v4a6U6ob5ofjLPLSkPqaLX1+qwtrWKrIFJkqHs1RwBx8JiJnmhnug lOYMg0Na/atdbHH5dEoAG0Ngp/CWMPpjccYNWEAZkTUElKw7NvdKDGww4tY/vn86PMbC NjAD3vK835DEyLKWTlBrSRTqALrQHvCionC37RqWTRUpg6O2rVULJ43bQ6D4unv3fNlX /pJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=6rMl7fVmnOoTYCfyZD1c5zORljmFt9XHL48n3xjWnkg=; b=hftC/o7+5qG7ZUinUuc8fB7WLX2mivIu1gmtFe7QZDcPLbtLDDilRwUG6QjiheuxXB 7At1PubVp6HYg+dK/G0iTRUpWrPDImFsk7f5uW/da8OjHQZuAB+DLeuk/6193fHFDRow AVkipYz1pLEKIRp+Dz2HmTUFK6nbBiwdgwpVczHJxEyvvBU2jiN90GlAmSZFvmK1bUdm t6op+3m1b7BJV2IpGQQiPhLfOmaWJ3P6RrL4t+4i1n81JHaiaxri3W3pAXiMMFVy/alR i+EqoXXIVUlFedZi0xltA8lao6rQsmA3wh+oop4uydsgn9NktiDyYhoLx0FftKr/yiXo nB3A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAX4BEaYdJg9zMIAMoRBWsvlZ/xXO+3vPVBBL6ikzTkOFzOMe5g3 Z7/BU3mO6j3a9ron81CCCAs= X-Google-Smtp-Source: APXvYqwA0pjjLIM0kgdFuOsxB73CwgaE4AcghoKqOqGKCZA2xWAO2SD1L5pUcYguAg2f6YfMmIO0LA== X-Received: by 2002:a5b:50c:: with SMTP id o12mr10150181ybp.355.1562591704198; Mon, 08 Jul 2019 06:15:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:9d12:: with SMTP id i18ls2025431ybp.8.gmail; Mon, 08 Jul 2019 06:15:03 -0700 (PDT) X-Received: by 2002:a25:4088:: with SMTP id n130mr10317741yba.193.1562591703247; Mon, 08 Jul 2019 06:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562591703; cv=none; d=google.com; s=arc-20160816; b=yqI8Mh9ihNJY5sGCtT+y4upTfgZi9nXo3mpNEDPYvLaBQ7nxIFNLhi6VjNmlXoYILF Y4Hwujdbmv6PjoqJX6oi7sk5Av169/U6fNBtt2n/vq02zWwf1z/BLYC82p8J+UGlMgDZ GnISuvdTPEVOvRHn9OLnjZl4JQTjXeOtAhLVAVfUTcVMy9MJ8ITobMKXZ06vbKxrHfM/ NUXA+ZuQZ18BRGRoudi/Fjkr1RhodlMh5bGpg8D2KMdhpN6ISeAheE/Wf88ZLw0HHEEi siMxS2e27Q+3ghkclJDeqvmLqeCpgdWqTRVSXvvsM3LTDtWjbNIDEW527cruvZKiamV2 e78w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lQ42CAgAHVopFr7/oTIgyoYqQEu+rPKqU3MXYXIJitU=; b=Vi+RhBH9Me0qUJzYaombULrbplEacEp6bbmAWNywzHGCwGxl1fYps3nw/si7qf0Wuv S9BGtQVj4+zQQdgIcGuxATphcEkyH+6CFLkNkvlMtyQ053ip+M4mHC38gvZEqFO0mSxn OUiQwL3YxiGwuRAiXcm0GvF5s8RE9dU7+6BYeVR07txdQBCQfkVpIND8SFNvxK+5qbzx 5bs9AQ3fpM+mmEqei0/ya5tOL4vNNee68wfy18YB3wsxKf6PN31L6CN0AnDZfR62pWHO iAZ0IZGfjcArngt+W73hVSvLtWYd7ByN7uMv1N04yuawnSX373orJ+8q42A64N0WYZXU N13A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TCXxhq48; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com. [2607:f8b0:4864:20::52b]) by gmr-mx.google.com with ESMTPS id p125si446532yba.1.2019.07.08.06.15.03 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 06:15:03 -0700 (PDT) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) client-ip=2607:f8b0:4864:20::52b; Original-Received: by mail-pg1-x52b.google.com with SMTP id t132so7670990pgb.9 for ; Mon, 08 Jul 2019 06:15:03 -0700 (PDT) X-Received: by 2002:a63:c006:: with SMTP id h6mr23180230pgg.285.1562591702176; Mon, 08 Jul 2019 06:15:02 -0700 (PDT) In-Reply-To: <4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TCXxhq48; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:23096 Archived-At: --000000000000565c60058d2b3ba5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You may have better luck modifying the LUA_PATH environment variable *before* you run lua/pandoc. http://www.thijsschreijer.nl/blog/?p=3D1025 Also there may be problems using non-pure-lua modules if you use the downloadable relocatable pandoc binary. I guess that is what you are running into here. Den m=C3=A5n 8 juli 2019 14:44K4zuki skrev: > 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 =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 > local lyaml =3D 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. > --=20 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 e= mail 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/CAFC_yuSiX5iPeh69vpy4bB9ZSYPB%2BBHtZEMJCykHMqgLyRMWJw%40mail= .gmail.com. For more options, visit https://groups.google.com/d/optout. --000000000000565c60058d2b3ba5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You may have better luck modifying the LUA_PATH environme= nt variable *before* you run lua/pandoc.


Also there may be problems using non-pure-lua modules i= f you use the downloadable relocatable pandoc binary. I guess that is what = you are running into here.


Den m=C3=A5n 8 = juli 2019 14:44K4zuki <= k.yamamoto.08136891-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hello,

I am facing a little p= roblem around lua and pre-compiled dynamic libraries(*.so).

<= /div>
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, P= andoc-lua raises error
```i= nput
package.path = =3D package.path .. ';/usr/share/lua/5.3/?.lua'
package.cpath =3D package.cpath .. &quo= t;;/usr/lib/x86_64-linux-gnu/lua/5.3"
-- those 2 lines above are required to load=C2=A0
```
---
```output
error loading module 'yaml' from file '/usr/l= ib/x86_64-linux-gnu/lua/5.3/yaml.so':
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Dynamic loading not suppo= rted
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 /us= r/share/lua/5.3/lyaml.lua:31: in main chunk
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [C]: in function 'r= equire'
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 ../lua/test.lua:5: in main chunk
```
lfs is sim= ilar like so:
```
error loading module &= #39;lfs' from file '/usr/lib/x86_64-linux-gnu/lua/5.3/lfs.so':<= /font>
=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 functi= on 'require'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ../lua/test.lua:8: in main chunk
<= div>```

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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To post to this group, send email to pandoc-discuss@googlegrou= ps.com.
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.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAFC_yuSiX5iPeh69vpy4bB9ZSYPB%2BBHtZEMJ= CykHMqgLyRMWJw%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--000000000000565c60058d2b3ba5--