Ethereal-dev: [Ethereal-dev] unable to build .so plugins on fedora1 after adding own pluggin

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

From: Henrik Koch <hck@xxxxx>
Date: Tue, 12 Oct 2004 00:18:29 +0200
Hello

I've tried changing one of my dissectors to a plugin.

After adding it and remaking it the .so files are no longer built.

I read in the archives something about HP having a problem with libtool. Sadly 
I did not understand that concept, other than to the extent that there are 
two ways to generate a loadable module, dl_open and another.

I have tried to do a diff between the Makefile's in plugin on the two 
different versions.
The only diff I can see on the Makefiles in that and the parent dir is the 
definition of compilers and flags.

the system builds, the plugin build, but on the modified system no .so files 
are generated. I have included a diff on plugins/mgcp below.

Does any one have an idea, or have an idea of where I could find some 
documentation to help me on this.

  I greatly appreciate any hints I could get.

    Henrik


I'm using 
  Gtk+ version 2.2.4
  glib   version 2.2.3
  
The Ethereal package has been configured with the following options.
                    Build ethereal : yes
                   Build tethereal : yes
                     Build capinfo : yes
                     Build editcap : yes
                    Build mergecap : yes
                   Build text2pcap : yes
                     Build idl2eth : yes
                     Build randpkt : no
                      Build dftest : yes

                    Install setuid : no
                       Use plugins : yes
               Use GTK+ v2 library : yes
                       Use threads : no
            Build profile binaries : no
                  Use pcap library : yes
                  Use zlib library : yes
                  Use pcre library : no
              Use kerberos library : no
              Use GNU ADNS library : no
          Use IPv6 name resolution : yes
     Use UCD SNMP/NET-SNMP library : no

ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)
uname -a
Linux mybox 2.4.22-1.2115.nptl #1 Wed Oct 29 15:31:21 EST 2003 i686 athlon 
i386 GNU/Linux

diff -q -r ethereal-0.10.6-mod/plugins/mgcp ethereal-0.10.6/plugins/mgcp
Files ethereal-0.10.6-mod/plugins/mgcp/.deps/packet-mgcp.Plo and 
ethereal-0.10.6/plugins/mgcp/.deps/packet-mgcp.Plo differ
Only in ethereal-0.10.6-mod/plugins/mgcp/.libs: mgcp
Files ethereal-0.10.6-mod/plugins/mgcp/.libs/mgcp.la and 
ethereal-0.10.6/plugins/mgcp/.libs/mgcp.la differ
Files ethereal-0.10.6-mod/plugins/mgcp/.libs/mgcp.lai and 
ethereal-0.10.6/plugins/mgcp/.libs/mgcp.lai differ
Only in ethereal-0.10.6/plugins/mgcp/.libs: mgcp.so
Files ethereal-0.10.6-mod/plugins/mgcp/Makefile and 
ethereal-0.10.6/plugins/mgcp/Makefile differ
Files ethereal-0.10.6-mod/plugins/mgcp/mgcp.la and 
ethereal-0.10.6/plugins/mgcp/mgcp.la differ


diff ethereal-0.10.6-mod/Makefile ethereal-0.10.6/Makefile
1c1
< # Makefile.in generated by automake 1.7.8 from Makefile.am.
---
> # Makefile.in generated by automake 1.7.7 from Makefile.am.
20c20
< # $Id: Makefile.am,v 1.1 2004/10/09 22:21:03 hck Exp hck $
---
> # $Id: Makefile.am 11730 2004-08-12 22:46:09Z gerald $
92d91
< AR = ar
102,105d100
< CXX = g++
< CXXCPP = g++ -E
< CXXDEPMODE = depmode=gcc3
< CXXFLAGS = -g -O2
119,120d113
< F77 = g77
< FFLAGS = -g -O2
212d204
< ac_ct_AR = ar
214,215d205
< ac_ct_CXX = g++
< ac_ct_F77 = g77
221,222d210
< am__fastdepCXX_FALSE = #
< am__fastdepCXX_TRUE =
561,562d548
< #plugin_libs =
<
577d562
<       plugins/myplugin/myplugin.la \
586a572,573
> #plugin_libs =
>
602d588
<       "-dlopen" plugins/myplugin/myplugin.la \
612,613d597
< #plugin_ldadd =
<
650d633
< #     plugins/myplugin/packet-myplugin.o \
659a643,644
> #plugin_ldadd =
>
795c780
<                       \
---
>                       \
978d962
< #SUBDIRS = tools wiretap doc epan packaging help gtk
980a965
> #SUBDIRS = tools wiretap doc epan packaging help gtk
1760a1746
>       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
1763d1748
<       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
1771a1757
>
1799a1786
>