From: Henri Menke <henrimenke@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Undefined symbol lua_gettop
Date: Sun, 7 Apr 2019 13:45:44 +1200 [thread overview]
Message-ID: <c215537a-4277-0d48-1907-aa49c8d1750d@gmail.com> (raw)
In-Reply-To: <nycvar.YAK.7.76.44.1904061347030.16167@nqv-guvaxcnq>
On 4/7/19 6:02 AM, Aditya Mahajan wrote:
> Hi,
>
> I am experimenting with using lua libraries with lmtx. I tried the
> following:
>
> 1. Download the lcomplex library (from
> http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ar/lcomplex-100.tar.gz)
>
> 2. Untar and modify the Makefile so that LUA_TOPDIR points to the right
> location (/usr in my case).
>
> 3. Run make. This creates a complex.so file in the current directory.
>
> 4. Create a test file (and put complex.so in the same directory)
>
> \starttext
> \startluacode
> local complex=require("complex")
>
> z = complex.new(1,1);
> context("The absolute value of $z=%f + j%f$ is $%f$",
> z:real(), z:imag(), z:abs());
> \stopluacode
> \stoptext
>
> This file runs correctly with mkiv, but when I try to run it with lmtx,
> I get the error
>
> lua error > lua error on line 8 in file
> /home/adityam/Software/lcomplex/lcomplex-100/test.tex:
>
> ...etatex/texmf-context/tex/context/base/mkiv/l-package.lua:325: error
> loading module 'complex' from file './complex.so':
> ./complex.so: undefined symbol: lua_gettop
>
> Any idea why this is happening and what I can do to fix it?
Lua is linked statically into LuaTeX and when the executable is stripped
and lua_gettop has not been referenced anywhere, it will be 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2019-04-07 1:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-06 18:02 Aditya Mahajan
2019-04-07 1:45 ` Henri Menke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c215537a-4277-0d48-1907-aa49c8d1750d@gmail.com \
--to=henrimenke@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).