If one builds LuaMetaTeX without optimization (by commenting out or deleting 
the automatically added optimization options), one encounters "undefined 
reference" linking errors:

/usr/bin/ld: libtex.a(lmteffectslib.c.o): in function 
`effectslib_simplex_noise_1':
lmteffectslib.c:(.text+0xb36): undefined reference to `FASTFLOOR'
/usr/bin/ld: libtex.a(lmteffectslib.c.o): in function 
`effectslib_simplex_noise_2':
lmteffectslib.c:(.text+0xcd1): undefined reference to `FASTFLOOR'
/usr/bin/ld: lmteffectslib.c:(.text+0xce5): undefined reference to `FASTFLOOR'
/usr/bin/ld: libtex.a(lmteffectslib.c.o): in function 
`effectslib_simplex_noise_3':
lmteffectslib.c:(.text+0x118f): undefined reference to `FASTFLOOR'
/usr/bin/ld: lmteffectslib.c:(.text+0x11a6): undefined reference to `FASTFLOOR'
/usr/bin/ld: libtex.a(lmteffectslib.c.o):lmteffectslib.c:(.text+0x11bd): more 
undefined references to `FASTFLOOR' follow
/usr/bin/ld: libtex.a(texmath.c.o): in function `tex_run_math_shift':
texmath.c:(.text+0xfb54): undefined reference to `tex_aux_set_math_option'
/usr/bin/ld: texmath.c:(.text+0xfb68): undefined reference to 
`tex_aux_set_math_option'
/usr/bin/ld: texmath.c:(.text+0xfb7c): undefined reference to 
`tex_aux_set_math_option'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/luametatex.dir/build.make:115: luametatex] Error 1
make[1]: *** [CMakeFiles/Makefile2:590: CMakeFiles/luametatex.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

'FASTFLOOR' is a non-static inline function defined and only occurring in 
'source/luarest/lmteffectslib.c', and 'tex_aux_set_math_option' is a non-static 
inline function defined and only occurring in 'source/tex/texmath.c' (file 
paths relative to the root of the LuaMetaTeX repository). Since each of these 
functions occurs only in the file in which it is defined, both may be made 
static inline instead of only inline, which in fact eliminates the linking 
errors.
_______________________________________________
dev-context mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to