wireshark's configure script checks for lua to enable/disable some features,
however this check now fails:
configure:34222: checking for luaL_openlibs in -llua5.2
configure:34247: cc -o conftest -O2 -pipe -Wall -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign
-Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks
-Wold-style-definition -Wstrict-prototypes -Waddress -Wattributes -Wdiv-by-zero
-Wpragmas -Wno-overlength-strings -Wwrite-strings -Wno-long-long -Wc++-compat
-Wshadow -fvisibility=hidden -I/usr/local/include/gtk-3.0
-I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
-I/usr/local/include/gio-unix-2.0/ -I/usr/X11R6/include
-I/usr/local/include/cairo -I/usr/local/include/pango-1.0
-I/usr/local/include/harfbuzz -I/usr/local/include/atk-1.0
-I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include/freetype2 -I/usr/include
-I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -DG_DISABLE_DE!
PRECATED -DG_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE
-DGTK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATION_WARNINGS
-DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 -I/usr/local/include/lua-5.2
-D_FORTIFY_SOURCE=2 -I/usr/local/include -Wl,--as-needed -L/usr/local/lib
conftest.c -llua5.2 -lz -llua5.2 -lm >&5
conftest.c:65: warning: function declaration isn't a prototype
conftest.c:68: warning: function declaration isn't a prototype
conftest.c: In function 'main':
conftest.c:68: warning: old-style function definition
/usr/local/lib/liblua5.2.so.5.2: warning: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/local/lib/liblua5.2.so.5.2: warning: warning: rand() may return
deterministic values, is that what you want?
/usr/local/lib/liblua5.2.so.5.2: warning: warning: sprintf() is often misused,
please use snprintf()
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `log'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `sqrt'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `cosh'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `ceil'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `floor'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `fmod'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `cos'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `tanh'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `sin'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `atan2'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `pow'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `sinh'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `log10'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `exp'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `tan'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `atan'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `asin'
/usr/local/lib/liblua5.2.so.5.2: undefined reference to `acos'
collect2: ld returned 1 exit status
configure:34247: $? = 1
There's no NEEDED entry for this library, would the correct fix be
to change how liblua is linked to record a dependency on libm?
$ objdump -p /usr/local/lib/liblua5.2.so.5.2
/usr/local/lib/liblua5.2.so.5.2: file format elf64-x86-64
Program Header:
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr
0x0000000000000000 align 2**20
filesz 0x000000000002673e memsz 0x000000000002673e flags r-x
LOAD off 0x0000000000026740 vaddr 0x0000000000126740 paddr
0x0000000000126740 align 2**20
filesz 0x0000000000003bc4 memsz 0x0000000000003bc4 flags r--
LOAD off 0x000000000002a308 vaddr 0x000000000022a308 paddr
0x000000000022a308 align 2**20
filesz 0x0000000000006588 memsz 0x0000000000006588 flags rw-
LOAD off 0x0000000000030890 vaddr 0x0000000000330890 paddr
0x0000000000330890 align 2**20
filesz 0x0000000000000738 memsz 0x0000000000000738 flags rw-
LOAD off 0x0000000000030fc8 vaddr 0x0000000000430fc8 paddr
0x0000000000430fc8 align 2**20
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
DYNAMIC off 0x0000000000030748 vaddr 0x0000000000230748 paddr
0x0000000000230748 align 2**3
filesz 0x0000000000000140 memsz 0x0000000000000140 flags rw-
NOTE off 0x0000000000028e30 vaddr 0x0000000000128e30 paddr
0x0000000000128e30 align 2**2
filesz 0x0000000000000018 memsz 0x0000000000000018 flags r--
EH_FRAME off 0x0000000000028e48 vaddr 0x0000000000128e48 paddr
0x0000000000128e48 align 2**2
filesz 0x00000000000014bc memsz 0x00000000000014bc flags r--
OPENBSD_RANDOMIZE off 0x000000000002a308 vaddr 0x000000000022a308 paddr
0x000000000022a308 align 2**3
filesz 0x0000000000000008 memsz 0x0000000000000008 flags rw-
Dynamic Section:
INIT 0x6ec0
FINI 0x26730
HASH 0x2a8
STRTAB 0x2500
SYMTAB 0xb20
STRSZ 0xb08
SYMENT 0x18
PLTGOT 0x330890
PLTRELSZ 0x1410
PLTREL 0x7
JMPREL 0x5ab0
RELA 0x3008
RELASZ 0x2aa8
RELAENT 0x18
RELACOUNT 0x1b4