[luatex] Using a Lua C .so module with LuaLaTeX

Deepak Jois deepak.jois at gmail.com
Tue Nov 17 10:17:25 CET 2015


On Tue, Nov 17, 2015 at 1:42 PM, luigi scarso <luigi.scarso at gmail.com> wrote:
> No, the texlive is ok, but unfortunately the 0.85 breaks compatibility.
> So you should wait until things are updated, or just use your compiled
> version.
> The current TL uses 0.80.0, and you can find the source at
> https://foundry.supelec.fr/scm/viewvc.php/tags/beta-0.80.0/?root=luatex
>
> You should have no problem to compile it and replace the standard binary of
> TL
> (and rebuild the formats, to be sure).
>

Thank you. I checked out v0.80, compiled luatex with --nostrip option,
copied the luatex binary to my TeXLive distribution, rebuilt the
formats (with fmtutil --byengine luatex), and everything worked after
that.

I definitely had to rebuild the formats to get it working. (otherwise
it gave me the dreaded “I’m stymied error”)

> If it works for you , can you try
> strip -u -r luatex
> as reported by Tantau at
> http://tracker.luatex.org/view.php?id=555 ?

I copied over the binary to another file called luatex-stripped and
ran strip -u -r  on that. Both copies seem to load the shared library
just fine. Here are the results:

$> cp luatex luatex-stripped

$> nm luatex | wc -l
24277

$> strip -u -r luatex-stripped

$> nm luatex-stripped | wc -l
363

$> ~/code/personal/luatex/v-0.80/bin/luatex --luaonly test.lua
Deepak

$> ~/code/personal/luatex/v-0.80/bin/luatex-stripped --luaonly test.lua
Deepak

So I guess it is an option to use strip -u -r luatex



More information about the luatex mailing list