So this works for wireshark. OK? Index: Makefile.inc =================================================================== RCS file: /cvs/ports/lang/lua/Makefile.inc,v retrieving revision 1.3 diff -u -p -r1.3 Makefile.inc --- Makefile.inc 11 Mar 2013 12:27:53 -0000 1.3 +++ Makefile.inc 18 May 2015 13:51:23 -0000 @@ -16,6 +16,6 @@ HOMEPAGE= http://www.lua.org/ # MIT PERMIT_PACKAGE_CDROM= Yes -MAKE_FLAGS+= CC="${CC}" +MAKE_FLAGS+= CC="${CC}" MYLDFLAGS=-lm NO_TEST= Yes Index: 5.1/Makefile =================================================================== RCS file: /cvs/ports/lang/lua/5.1/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- 5.1/Makefile 10 Dec 2014 00:44:52 -0000 1.4 +++ 5.1/Makefile 18 May 2015 13:51:23 -0000 @@ -2,7 +2,7 @@ VERSION= 5.1.5 PKGSPEC= lua->=5.1,<5.2 -REVISION= 3 +REVISION= 4 SHARED_LIBS= lua5.1 ${VERSION:R} Index: 5.2/Makefile =================================================================== RCS file: /cvs/ports/lang/lua/5.2/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- 5.2/Makefile 25 Mar 2015 13:55:45 -0000 1.7 +++ 5.2/Makefile 18 May 2015 13:51:23 -0000 @@ -1,6 +1,7 @@ # $OpenBSD: Makefile,v 1.7 2015/03/25 13:55:45 jturner Exp $ VERSION= 5.2.4 +REVISION= 0 PKGSPEC= lua->=5.2,<5.3 SHARED_LIBS= lua5.2 ${VERSION:R} @@ -15,6 +16,5 @@ post-install: ${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig ${SUBST_DATA} -c ${FILESDIR}/lua52.pc \ ${PREFIX}/lib/pkgconfig/lua52.pc - .include <bsd.port.mk> Index: 5.3/Makefile =================================================================== RCS file: /cvs/ports/lang/lua/5.3/Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 Makefile --- 5.3/Makefile 14 Jan 2015 20:06:36 -0000 1.1.1.1 +++ 5.3/Makefile 18 May 2015 13:51:23 -0000 @@ -1,6 +1,7 @@ # $OpenBSD: Makefile,v 1.1.1.1 2015/01/14 20:06:36 jturner Exp $ VERSION= 5.3.0 +REVISION= 0 PKGSPEC= lua->=5.3,<5.4 SHARED_LIBS= lua5.3 ${VERSION:R}
On 2015/05/18 12:05, Mark Kettenis wrote: > > Date: Mon, 18 May 2015 10:42:39 +0100 > > From: Stuart Henderson <[email protected]> > > > > 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_DISABL! E_! > DEPRECATED -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? > > I'd say so. >
