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: Frank Singleton <frank.singleton@xxxxxxxxxxxx>
Date: Tue, 07 May 2002 08:38:33 -0500
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 BSS
Office : +1 972 583 3251      ECN 800 33251  
Mobile : +1 214 228 0874      Amateur Radio: VK3FCS/KM5WS   
Email : frank.singleton@xxxxxxxxxxxx

Hardware: HP Omnibook 4150 running Redhat Linux 7.1 (2.4.3-12 kernel).