[tex-live] TL2017/LuaTeX "bug" (but also probably in all other distributions as well)

Patrick Gundlach patrick at gundla.ch
Thu Apr 20 13:07:01 CEST 2017


Hi all,

I've tried to link an external library to LuaTeX, but this gives an error. This problem is an old problem described here:

http://tracker.luatex.org/view.php?id=555

I quote from the page:

------------------------------------
When building LuaTeX without --nostrip (which is the current default behaviour), loading external libraries is a game of luck. For example the sqlite3 bindings from http://luaforge.net/projects/luasqlite/ [^] create a library on OS X that require the symbol _luaL_argerror to be defined in the LuaTeX binary:

error loading module 'lsqlite3' from file './lsqlite3.so':
    dlopen(./lsqlite3.so, 2): Symbol not found: _luaL_argerror
  Referenced from: /Users/patrick/Downloads/lsqlite3-7/lsqlite3.so
  Expected in: flat namespace
 in /Users/patrick/Downloads/lsqlite3-7/lsqlite3.so

Building LuaTeX with --nostrip solves this issue.

By having "--strip" the default in build.sh, it is not possible for any user (on OS X, perhaps also on other platforms) to use this (and other) external library without downloading the LuaTeX source, download XCode, compile LuaTeX and put LuaTeX in the correct place.
------------------------------------

Patrick

(who is not subscribed to the tex-live list)


More information about the tex-live mailing list