Wireshark-users: Re: [Wireshark-users] Wireshark on OppenBSD 4.0
Date: Thu, 5 Oct 2006 17:16:16 +0100
On 10/4/06, Douglas F. Calvert <douglasfcalvert@xxxxxxxxx> wrote:
On 10/4/06, LEGO <luis.ontanon@xxxxxxxxx> wrote:
> have you tried --with-lua=/usr/local/ ??
>


I did  and I did some research but I am afraid I do not know what to
do with what I found. I found a relevant entry from the lua wiki:
http://lua-users.org/wiki/AutoConfig

I added that, it is what we use.

And what appears to be a relevant thread from fbsd:
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2006-01/msg00193.html

[...]

configure:28046: checking for luaL_register in -llua
configure:28081: gcc -o conftest -D_U_="__attribute__((unused))" -Wall
-Wpointer-arith -W  -g -O2 -I/usr/local/include -pthread
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/atk-1.0 -I/usr/X11R6/include/freetype2
-I/usr/X11R6/include -I/usr/local/include/cairo
-I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include
-I/usr/local/include -I/usr/local/include  -L/usr/local/lib
-L/usr/local/lib conftest.c -llua  -lz  -L/usr/local/lib -llua >&5
/usr/local/lib/liblua.so.5.1: undefined reference to `log'
/usr/local/lib/liblua.so.5.1: undefined reference to `sqrt'
/usr/local/lib/liblua.so.5.1: undefined reference to `cosh'
/usr/local/lib/liblua.so.5.1: undefined reference to `ceil'
/usr/local/lib/liblua.so.5.1: undefined reference to `floor'
/usr/local/lib/liblua.so.5.1: undefined reference to `fmod'
/usr/local/lib/liblua.so.5.1: undefined reference to `cos'
/usr/local/lib/liblua.so.5.1: undefined reference to `tanh'
/usr/local/lib/liblua.so.5.1: undefined reference to `sin'
/usr/local/lib/liblua.so.5.1: undefined reference to `atan2'
/usr/local/lib/liblua.so.5.1: undefined reference to `pow'
/usr/local/lib/liblua.so.5.1: undefined reference to `sinh'
/usr/local/lib/liblua.so.5.1: undefined reference to `log10'
/usr/local/lib/liblua.so.5.1: undefined reference to `exp'
/usr/local/lib/liblua.so.5.1: undefined reference to `tan'
/usr/local/lib/liblua.so.5.1: undefined reference to `atan'
/usr/local/lib/liblua.so.5.1: undefined reference to `asin'
/usr/local/lib/liblua.so.5.1: undefined reference to `acos'

That's exactly what happens in your case... oddly enough we've hit the
same issue a while ago...

I attached a patch, please check if that solves your issue.



--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan

Attachment: lm_patch.gz
Description: GNU Zip compressed data