[tlbuild] LuaJIT on OpenBSD

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Apr 1 10:50:30 CEST 2018


Hi,

Before the switch to C++11 and when compiling with gcc, luajitex
compiled on OpenBSD. Now I switched to clang and I'm getting undefined
references:

/bin/sh ./libtool  --tag=CC   --mode=link clang -Wimplicit
-Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -g
-O2 -export-dynamic   -o mfluajit mfluajitdir/mfluajit-mfluajitextra.o
libmfluajit.a lib/lib.a /path/to/Work/texk/kpathsea/libkpathsea.la
window/libwindow.a -L/usr/X11R6/lib  -lSM -lICE -lXext
-L/usr/X11R6/lib -lX11  /path/to/Work/libs/luajit/libtexluajit.la -lm
libtool: link: clang -Wimplicit -Wreturn-type
-Wdeclaration-after-statement -Wno-unknown-pragmas -g -O2 -o mfluajit
mfluajitdir/mfluajit-mfluajitextra.o -Wl,-E  libmfluajit.a lib/lib.a
/path/to/Work/texk/kpathsea/.libs/libkpathsea.a window/libwindow.a
-L/usr/X11R6/lib -lSM -lICE -lXext -lX11
/path/to/Work/libs/luajit/.libs/libtexluajit.a -lm
-Wl,-rpath,/usr/X11R6/lib -Wl,-rpath,/usr/X11R6/lib
mfluajitdir/mfluajit-mfluajitextra.o: In function `calledit':
../../../texk/web2c/lib/texmfmp.c:2492: warning: warning: sprintf() is
often misused, please use snprintf()
lib/lib.a(openclose.o): In function `open_input':
../../../../texk/web2c/lib/openclose.c:236: warning: warning: strcpy()
is almost always misused, please use strlcpy()
/path/to/Work/texk/kpathsea/.libs/libkpathsea.a(libkpathsea_la-concat.o):
In function `concat':
../../../texk/kpathsea/concat.c:32: warning: warning: strcat() is
almost always misused, please use strlcat()
/path/to/Work/libs/luajit/.libs/libtexluajit.a(lj_err.o): In function
`lj_err_unwind_dwarf':
../../../libs/luajit/LuaJIT-src/src/lj_err.c:236: undefined reference
to `_Unwind_GetCFA'
../../../libs/luajit/LuaJIT-src/src/lj_err.c:254: undefined reference
to `_Unwind_DeleteException'

I know we are not shipping binaries, so this in not critical, but I'm
just curious if anyone has any idea.

Thank you,
    Mojca


More information about the tlbuild mailing list