Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] with-lua does not compile

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Luis EG Ontanon" <luis@xxxxxxxxxxx>
Date: Tue, 2 Sep 2008 11:18:57 +0200

It appears like lua_State is not defined (like if the configure script
actually found lua but it did not set up propperly CFLAGS and
LDFLAGS).

Can you get this to compile using just what you find in /usr/lib ?
(CFLAGS=/usr/local/include LDFLAGS=/usr/local/lib)

/*start*/
#include <stdlib.h>
#include <lua.h>
int main (int c, char** v) {
   lua_State* L = lua_newstate(realloc,NULL);
}
/*end*/




On Tue, Sep 2, 2008 at 9:22 AM, Zoran Bošnjak
<Zoran.Bosnjak@xxxxxxxxxxxxxxxxxx> wrote:
> Latest devel release of wireshark (svn r26107) does not compile when --with-lua option is set.
>
> $./autogen.sh
> $./configure --with-lua=/usr/lib
> $make
>
> I get this error:
> ...
> ./wslua_tvb.c:600: error: expected ')' before '*' token
> ./wslua_tvb.c:643: error: expected ')' before '*' token
> ./wslua_tvb.c:682: error: expected ')' before '*' token
> ./wslua_tvb.c:715: error: expected ')' before '*' token
> ./wslua_tvb.c:740: error: expected ')' before '*' token
> ./wslua_tvb.c:758: error: expected ')' before '*' token
> ./wslua_tvb.c:785: error: expected ')' before '*' token
> ./wslua_tvb.c:813: error: expected ')' before '*' token
> ./wslua_tvb.c:839: error: expected ')' before '*' token
> ./wslua_tvb.c:854: error: expected ')' before '*' token
> ./wslua_tvb.c:873: error: expected ')' before '*' token
> ./wslua_tvb.c:889: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TvbRange_methods'
> ./wslua_tvb.c:903: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TvbRange_meta'
> ./wslua_tvb.c:910: error: expected ')' before '*' token
> make[4]: *** [wslua_tvb.lo] Error 1
> make[4]: Leaving directory `/home/bosnjak/wireshark/asterix/epan/wslua'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/bosnjak/wireshark/asterix/epan/wslua'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/bosnjak/wireshark/asterix/epan'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bosnjak/wireshark/asterix'
> make: *** [all] Error 2
>
> regards,
> Zoran
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-dev
>



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

  • Follow-Ups:
    • Re: [Wireshark-dev] with-lua does not compile
      • From: Zoran Bošnjak
  • References:
    • [Wireshark-dev] with-lua does not compile
      • From: Zoran Bošnjak
  • Prev by Date: [Wireshark-dev] lua http.request and http.response structure
  • Next by Date: Re: [Wireshark-dev] lua http.request and http.response structure
  • Previous by thread: [Wireshark-dev] with-lua does not compile
  • Next by thread: Re: [Wireshark-dev] with-lua does not compile
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation