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: Zoran Bošnjak <Zoran.Bosnjak@xxxxxxxxxxxxxxxxxx>
Date: Fri, 5 Sep 2008 09:58:50 +0200

It was a mistake in configure option.
with "./configure --with-lua=/usr" it compiles and works fine.
Thanks.

Zoran 

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Luis EG Ontanon
Sent: Tuesday, September 02, 2008 11:19 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] with-lua does not compile

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
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev

  • References:
    • Re: [Wireshark-dev] with-lua does not compile
      • From: Luis EG Ontanon
  • Prev by Date: [Wireshark-dev] Doesn't "ANY" be allowed in XML DTD?
  • Next by Date: [Wireshark-dev] Question about missing break; in packet-ncp22222.inc
  • Previous by thread: Re: [Wireshark-dev] with-lua does not compile
  • Next by thread: [Wireshark-dev] tshark reassemble http headers
  • Index(es):
    • Date
    • Thread

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