Wireshark-users: Re: [Wireshark-users] Wireshark on OppenBSD 4.0
From: "Douglas F. Calvert" <douglasfcalvert@xxxxxxxxx>
Date: Wed, 4 Oct 2006 16:12:11 -0400
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 And what appears to be a relevant thread from fbsd: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2006-01/msg00193.html The fbsd thread appears to have similar symptoms as my config.log. This is what the configure script reports: checking whether to use liblua for the lua scripting plugin... yes checking lua.h usability... yes checking lua.h presence... yes checking for lua.h... yes checking lualib.h usability... yes checking lualib.h presence... yes checking for lualib.h... yes checking lauxlib.h usability... yes checking lauxlib.h presence... yes checking for lauxlib.h... yes checking for lua_call in -llua... yes checking for luaL_openlib in -llualib... no checking for luaL_register in -llua... no configure: error: Linking with liblualib failed. The relevant (atleast to me. let me know if you need more) sections of config.log configure:27391: checking whether to use liblua for the lua scripting plugin configure:27423: result: yes configure:27482: checking lua.h usability configure:27499: gcc -c -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 conftest.c >&5 configure:27505: $? = 0 configure:27512: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:27515: $? = 0 configure:27522: test -s conftest.o configure:27525: $? = 0 configure:27536: result: yes configure:27540: checking lua.h presence configure:27555: gcc -E -I/usr/local/include -I/usr/local/include conftest.c configure:27561: $? = 0 configure:27582: result: yes configure:27610: checking for lua.h configure:27618: result: yes configure:27482: checking lualib.h usability configure:27499: gcc -c -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 conftest.c >&5 configure:27505: $? = 0 configure:27512: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:27515: $? = 0 configure:27522: test -s conftest.o configure:27525: $? = 0 configure:27536: result: yes configure:27540: checking lualib.h presence configure:27555: gcc -E -I/usr/local/include -I/usr/local/include conftest.c configure:27561: $? = 0 configure:27582: result: yes configure:27610: checking for lualib.h configure:27618: result: yes configure:27482: checking lauxlib.h usability configure:27499: gcc -c -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 conftest.c >&5 configure:27505: $? = 0 configure:27512: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:27515: $? = 0 configure:27522: test -s conftest.o configure:27525: $? = 0 configure:27536: result: yes configure:27540: checking lauxlib.h presence configure:27555: gcc -E -I/usr/local/include -I/usr/local/include conftest.c configure:27561: $? = 0 configure:27582: result: yes configure:27610: checking for lauxlib.h configure:27618: result: yes configure:27857: checking for lua_call in -llua configure:27892: 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 -lm
&5
configure:27898: $? = 0 configure:27905: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:27908: $? = 0 configure:27915: test -s conftest configure:27918: $? = 0 configure:27932: result: yes configure:27953: checking for luaL_openlib in -llualib configure:27988: 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 -llualib -lz -L/usr/local/lib -llua -lm
&5
ld: cannot find -llualib configure:27994: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "wireshark" | #define VERSION "0.99.4-Freightliner-19394" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define YYTEXT_POINTER 1 | #define HTML_VIEWER "mozilla" | #define HAVE_LIBGNUTLS 1 | #define HAVE_LIBGCRYPT 1 | #define DATAFILE_DIR "/usr/local/share/wireshark" | #define HAVE_INTTYPES_H 1 | #define INTTYPES_H_DEFINES_FORMATS | #define HAVE_LIBPCAP 1 | #define HAVE_PCAP_VERSION 1 | #define HAVE_PCAP_OPEN_DEAD 1 | #define HAVE_PCAP_FREECODE 1 | #define HAVE_PCAP_BREAKLOOP 1 | #define HAVE_PCAP_FINDALLDEVS 1 | #define HAVE_PCAP_DATALINK_VAL_TO_NAME 1 | #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 | #define HAVE_PCAP_LIST_DATALINKS 1 | #define HAVE_PCAP_SET_DATALINK 1 | #define HAVE_PCAP_LIB_VERSION 1 | #define HAVE_PCAP_GET_SELECTABLE_FD 1 | #define HAVE_LIBZ 1 | #define HAVE_LIBPCRE 1 | #define HAVE_LUA_H 1 | #define HAVE_LUALIB_H 1 | #define HAVE_LAUXLIB_H 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char luaL_openlib (); | int | main () | { | return luaL_openlib (); | ; | return 0; | } configure:28028: result: no 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' configure:28087: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "wireshark" | #define VERSION "0.99.4-Freightliner-19394" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define YYTEXT_POINTER 1 | #define HTML_VIEWER "mozilla" | #define HAVE_LIBGNUTLS 1 | #define HAVE_LIBGCRYPT 1 | #define DATAFILE_DIR "/usr/local/share/wireshark" | #define HAVE_INTTYPES_H 1 | #define INTTYPES_H_DEFINES_FORMATS | #define HAVE_LIBPCAP 1 | #define HAVE_PCAP_VERSION 1 | #define HAVE_PCAP_OPEN_DEAD 1 | #define HAVE_PCAP_FREECODE 1 | #define HAVE_PCAP_BREAKLOOP 1 | #define HAVE_PCAP_FINDALLDEVS 1 | #define HAVE_PCAP_DATALINK_VAL_TO_NAME 1 | #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 | #define HAVE_PCAP_LIST_DATALINKS 1 | #define HAVE_PCAP_SET_DATALINK 1 | #define HAVE_PCAP_LIB_VERSION 1 | #define HAVE_PCAP_GET_SELECTABLE_FD 1 | #define HAVE_LIBZ 1 | #define HAVE_LIBPCRE 1 | #define HAVE_LUA_H 1 | #define HAVE_LUALIB_H 1 | #define HAVE_LAUXLIB_H 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char luaL_register (); | int | main () | { | return luaL_register (); | ; | return 0; | } configure:28121: result: no configure:28156: error: Linking with liblualib failed.
On 10/4/06, Douglas F. Calvert <douglasfcalvert@xxxxxxxxx> wrote: > On 10/2/06, stan <stanb@xxxxxxxxx> wrote: > > I just built wireshark on OpenBSD 4.0 prerelase. It built OK, > > but i don't think it took advantage of all the posible libraries. > > Here is what configure had to say: > > > > The Wireshark package has been configured with the following options. > > Build wireshark : yes > > Build tshark : yes > > Build capinfos : yes > > Build editcap : yes > > Build dumpcap : yes > > Build mergecap : yes > > Build text2pcap : yes > > Build idl2wrs : yes > > Build randpkt : yes > > Build dftest : yes > > Install setuid : no > > Use plugins : yes > > Build lua plugin : no > > > Has anyone gotten the lua plugin to work on openbsd 4.0 with lua from > /usr/ports? > _______________________________________________ > Wireshark-users mailing list > Wireshark-users@xxxxxxxxxxxxx > http://www.wireshark.org/mailman/listinfo/wireshark-users > -- This information is top security. When you have read it, destroy yourself. -- Marshall McLuhan _______________________________________________ Wireshark-users mailing list Wireshark-users@xxxxxxxxxxxxx http://www.wireshark.org/mailman/listinfo/wireshark-users
-- --dfc douglasfcalvert@xxxxxxxxx
- Follow-Ups:
- Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- From: Douglas F. Calvert
- Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- From: LEGO
- Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- References:
- [Wireshark-users] Wireshark on OppenBSD 4.0
- From: stan
- Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- From: Douglas F. Calvert
- Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- From: LEGO
- [Wireshark-users] Wireshark on OppenBSD 4.0
- Prev by Date: Re: [Wireshark-users] Question about parsing raw MTP3
- Next by Date: [Wireshark-users] Hubs and Switches
- Previous by thread: Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- Next by thread: Re: [Wireshark-users] Wireshark on OppenBSD 4.0
- Index(es):