Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Plugins and ETHEREAL_STATIC

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ruud Linders <moztest@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Jul 2003 14:29:44 +0200

All,

There is something about the building of plugins that I don't get.

This is what I usually configure :

./configure --enable-static=no --prefix=/usr

(according to configure --help this enable=static=no is default anyways)
Then simply 'make' and a quick cop of coffee later everything is built.


However, when I do 'make' again (or 'make install') always the static
part of all the plugins is compiled again (see attached part of make output).
Obviously this is rather annoying.

But why are we building these 'static' objects anyway ?
- using ./configure --enable-static=yes doesn't seem to include the plugins
  into the main ethereal binary anyway
- do the licenses allow building plugins into the main binary ?


Regards,
	Ruud Linders


====

This is using Linux, gcc 2.95.3, make 3.79.1:
....
make[2]: Entering directory `/source/ethereal/ethereal-0.9.14/plugins'
Making all in artnet
/source/ethereal/ethereal-0.9.14/plugins/artnet
make[3]: Entering directory `/source/ethereal/ethereal-0.9.14/plugins/artnet'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
  -I../.. -I../../wiretap -I/usr/local/include  -DINET6 -D_U_="__attribute__((un
used))" -Wall -W -g -O2 -I../.. -I../../wiretap -I/usr/local/include -I/usr/incl
ude/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
 -c -o packet-artnet-static.o -D__ETHEREAL_STATIC__ ./packet-artnet.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../wiretap -I/usr/local
/include -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -g -O2 -I../.. -I../..
/wiretap -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/
usr/lib/glib/include -I/usr/X11R6/include -c -D__ETHEREAL_STATIC__ ./packet-artn
et.c  -fPIC -DPIC -o packet-artnet-static.lo