Ethereal-dev: Re: [Ethereal-dev] missing plugin
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Ruud Linders <ruud@xxxxxxxxxx>
Date: Tue, 07 May 2002 15:48:20 +0200
Frank,This is exactly why I sent this patch to the list in the hope it would be included in the source:
--- plugins.c.ORIG Sat Feb 23 20:12:26 2002 +++ plugins.c Thu Apr 18 11:18:57 2002 @@ -196,7 +196,12 @@ snprintf(filename, FILENAME_LEN, "%s" G_DIR_SEPARATOR_S "%s", dirname, file->d_name); - if ((handle = g_module_open(filename, 0)) == NULL) continue; + if ((handle = g_module_open(filename, 0)) == NULL) + { + g_warning("loading module <%s> failed \n( %s )\n", + filename, g_module_error() ); + continue; + } name = (gchar *)file->d_name; if (g_module_symbol(handle, "version", (gpointer*)&version) == FALSE) { WITH this patch, it will tell you WHY the plugin could not be loaded. _ Ruud Frank Singleton wrote:
Bernd Becker wrote:Hi Frank, you have probably checked the usual things like access permissions on the directories and shared library files. Even so, have you tried to use strace (on linux) or truss (Solaris) to see what ethereal is doing? E.g. "strace -o /tmp/ethereal.out ethereal" and then grep for plugins in the output file. It will show you which directories is searching for plugins and if opening and reading a plugin shared lib worked ok. Something like this (on linux): open("/usr/lib/ethereal/plugins/0.9.3", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/ethereal/plugins/0.9.3", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 open("/usr/local/lib/ethereal/plugins/0.9.3/cosnaming.so", O_RDONLY) = 5 open("/usr/local/lib/ethereal/plugins/0.9.3/coseventcomm.so", O_RDONLY) = 5 open("/usr/local/lib/ethereal/plugins/0.9.3/gryphon.so", O_RDONLY) = 5 open("/usr/local/lib/ethereal/plugins/0.9.3/mgcp.so", O_RDONLY) = 5 open("/home/bernd/.ethereal/plugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) It might be something trivial, like an older ethereal binary being called that is getting the plugins you are seeing from another directory, or wrong access permissions ... If strace or truss don't show anything, it might be the dlopen failing for some other reason. I am not sure if it will show a warning or error message. What platform are you on?Hi, I am using Linux .. Yep, it present (osimgmt.so) but not in tools/plugins ??I have not seen this behaviour before when testing idl2eth and making plugins.[frank@cray frank]$ grep plugins /tmp/ethereal.out open("/usr/lib/ethereal/plugins/0.9.3", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)open("/usr/local/lib/ethereal/plugins/0.9.3", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 open("/usr/local/lib/ethereal/plugins/0.9.3/gryphon.so", O_RDONLY) = 4 open("/usr/local/lib/ethereal/plugins/0.9.3/cosnaming.so", O_RDONLY) = 4 open("/usr/local/lib/ethereal/plugins/0.9.3/coseventcomm.so", O_RDONLY) = 4 open("/usr/local/lib/ethereal/plugins/0.9.3/osimgmt.so", O_RDONLY) = 4 open("/home/frank/.ethereal/plugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)[frank@cray frank]$[frank@cray frank]$ ll /usr/local/lib/ethereal/plugins/0.9.3/ total 1548 -rw-r--r-- 1 root root 61534 May 6 13:56 coseventcomm.a -rwxr-xr-x 1 root root 719 May 6 13:56 coseventcomm.la -rwxr-xr-x 1 root root 61528 May 6 13:56 coseventcomm.so -rw-r--r-- 1 root root 77792 May 6 13:56 cosnaming.a -rwxr-xr-x 1 root root 698 May 6 13:56 cosnaming.la -rwxr-xr-x 1 root root 73748 May 6 13:56 cosnaming.so -rw-r--r-- 1 root root 122842 May 6 13:56 gryphon.a -rwxr-xr-x 1 root root 684 May 6 13:56 gryphon.la -rwxr-xr-x 1 root root 117868 May 6 13:56 gryphon.so -rw-r--r-- 1 root root 555922 May 6 13:56 osimgmt.a -rwxr-xr-x 1 root root 684 May 6 13:56 osimgmt.la -rwxr-xr-x 1 root root 448058 May 6 13:56 osimgmt.so I removed mgcp.* to see if it would no longer be present in the tools/plugins menu, and that was the case. Any clues on where to look ?? Cheers / Frank -- EUS/WV/Z Frank Singleton ASO Americas BSSOffice : +1 972 583 3251 ECN 800 33251 Mobile : +1 214 228 0874 Amateur Radio: VK3FCS/KM5WS Email : frank.singleton@xxxxxxxxxxxxHardware: HP Omnibook 4150 running Redhat Linux 7.1 (2.4.3-12 kernel). _______________________________________________ Ethereal-dev mailing list Ethereal-dev@xxxxxxxxxxxx http://www.ethereal.com/mailman/listinfo/ethereal-dev
- Follow-Ups:
- Re: [Ethereal-dev] missing plugin
- From: Frank Singleton
- Re: [Ethereal-dev] missing plugin
- References:
- [Ethereal-dev] missing plugin
- From: Frank Singleton
- Re: [Ethereal-dev] missing plugin
- From: Bernd Becker
- Re: [Ethereal-dev] missing plugin
- From: Frank Singleton
- [Ethereal-dev] missing plugin
- Prev by Date: Re: [Ethereal-dev] missing plugin
- Next by Date: Re: [Ethereal-dev] missing plugin
- Previous by thread: Re: [Ethereal-dev] missing plugin
- Next by thread: Re: [Ethereal-dev] missing plugin
- Index(es):