ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* .so libraries not working with LMTX
@ 2020-05-01 19:46 Jairo A. del Rio
  2020-05-01 19:58 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Jairo A. del Rio @ 2020-05-01 19:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 617 bytes --]

I've tried using some C libraries for Lua in LuaTeX:
http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/

They work (both LuaLaTeX and ConTeXt), but when LMTX is used, the following
message appears (an example with MAPM):

token call, execute:
...xt/tex/texmf-context/tex/context/base/mkiv/l-package.lua:325: error
loading module 'mapm' from file './mapm.so':

./mapm.so: undefined symbol: lua_settop


I've compiled both with Lua 5.3.5 and Lua 5.4.0 (rc1 and rc2) and both work
successfully for test.lua (command line). However, they just don't work
with LMTX. Is this a bug or feature of LMTX? Thank you in advance.

[-- Attachment #1.2: Type: text/html, Size: 1021 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: .so libraries not working with LMTX
  2020-05-01 19:46 .so libraries not working with LMTX Jairo A. del Rio
@ 2020-05-01 19:58 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2020-05-01 19:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 1 May 2020, Jairo A. del Rio wrote:

> I've tried using some C libraries for Lua in LuaTeX:
> http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/
>
> They work (both LuaLaTeX and ConTeXt), but when LMTX is used, the following
> message appears (an example with MAPM):
>
> token call, execute:
> ...xt/tex/texmf-context/tex/context/base/mkiv/l-package.lua:325: error
> loading module 'mapm' from file './mapm.so':
>
> ./mapm.so: undefined symbol: lua_settop

I believe that the luametatex binary is stripped, so there any unused symbol
is removed.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-01 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 19:46 .so libraries not working with LMTX Jairo A. del Rio
2020-05-01 19:58 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).