Ethereal-dev: [Ethereal-dev] omniidl problem in trying compile IDL For ethereal

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

From: "Patnaik, Anjela" <APatnaik@xxxxxxxxx>
Date: Tue, 13 Aug 2002 18:46:39 -0400
Frank & others:

I have downloaded cygwin and untarred
and unzipped the ethereal version that I got
for Win2k. 

Now, when I try to use omniidl, i get this error:

I have placed all IDL files in the same directory
where I have ethereal and all its scripts and c files

$ omniidl -p ./ -b ethereal_be GlobalDefs.idl
omniidl: Could not import back-end `ethereal_be'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was `No module named tempfile')

Note that I have ethereal_be.py file and the GlobalDefs.idl
file in the same directory and this directory is
the same as where I am launching omniidl


Another question for you, is that I have about 
50 IDL files. Can I process them all in one
call by listing all IDL files in the same line or
should I do them one by one?

Also, should there be a separate output file per
IDL or can it be one big file for IDL files? There
are some dependencies.

-----Original Message-----
From: Patnaik, Anjela 
Sent: Monday, August 12, 2002 6:00 PM
To: 'Frank Singleton'
Subject: RE: where is idl2eth?



Hi,
I am a bit lost.I am running on Windows 2k Prof.
I already have a binary exec for Windows.

Now, is it possible to get the Windows files
for idl2eth, and the two python files to just
compile the IDL and add the compiled plug in at
run-time?

I guess i do not understand why I would have
to rebuild ethereal as a whole if I just want
to add the giop plugin.

A second question: Where is the source
distribution of ethereal and the GIOP scripts
on the web??
I can only find .tar files which I believe are
for unix.

Thanks!
-----Original Message-----
From: Frank Singleton [mailto:frank.singleton@xxxxxxxxxxxx]
Sent: Friday, August 09, 2002 5:12 PM
To: Patnaik, Anjela
Subject: Re: where is idl2eth?


Hi, 

See my comments ..


"Patnaik, Anjela" wrote:
> 
> Thanks. Can you send me the path to the ethereal source
> that i need to download? 

http://www.ethereal.com/development.html#snapshots

Also, do I need to rebuild
> ethereal after I download this? I thought it was
> a plugin that I can add at run-time or something.
> 

You should compile etheral source as in my article.

But after that, plugins can be added as shared libraries 
which is really cool. So you do not have to recompile
the whole thing again..

Eg: The Cosevent and Cosnaming plugins are shared libs
on my linux box.


[frank@cray frank]$ ll /usr/local/lib/ethereal/plugins/0.9.4/
total 748
-rw-r--r--    1 root     root        61594 Jun  4 10:58 coseventcomm.a
-rwxr-xr-x    1 root     root          770 Jun  4 10:58 coseventcomm.la
-rwxr-xr-x    1 root     root        61400 Jun  4 10:58 coseventcomm.so
-rw-r--r--    1 root     root        77844 Jun  4 10:58 cosnaming.a
-rwxr-xr-x    1 root     root          749 Jun  4 10:58 cosnaming.la
-rwxr-xr-x    1 root     root        73584 Jun  4 10:58 cosnaming.so
-rw-r--r--    1 root     root       122958 Jun  4 10:58 gryphon.a
-rwxr-xr-x    1 root     root          735 Jun  4 10:58 gryphon.la
-rwxr-xr-x    1 root     root       138613 Jun  4 10:58 gryphon.so
-rw-r--r--    1 root     root        81842 Jun  4 10:58 mgcp.a
-rwxr-xr-x    1 root     root          714 Jun  4 10:58 mgcp.la
-rwxr-xr-x    1 root     root        83851 Jun  4 10:58 mgcp.so
[frank@cray frank]$ 


> I used a binary distribution of ethereal on Windows and
> did not compile ethereal. Do I need to do this and
> what compiler do you recommend to compile the plugin?
> 

gcc of course............

If you are a windowsbuff, you could try cygwin environment
but I have not testd that (Linux fan here ..)


> Thanks,
> anjela
> 
> -----Original Message-----
> From: Frank Singleton [mailto:frank.singleton@xxxxxxxxxxxx]
> Sent: Friday, August 09, 2002 3:34 PM
> To: Patnaik, Anjela
> Subject: Re: where is idl2eth?
> 
> "Patnaik, Anjela" wrote:
> >
> > Hello,
> > I am trying to find out the location of the python
> > script idl2eth.
> > I have downloaded the binary distribution for
> > ethereal for Windows 2k and don't see this
> > anywhere on the installed directory.
> >
> > Please let me know where it is located.
> > Can I run this on Windows? And do I need
> > a C compiler or just python to add the corba dissector?
> 
> Hi,
> 
> It is part of ethereal source distro, so you could download
> a nightly CVS tarball. Its a shellscript wrapper
> for omniidl using a compiler backend I wrote
> ethereal_*.py
> 
> You will need python and omniidl with ethereal_*.py
> to generate the C code for the plugin. Then you can compile it
> on whatever platform you compile ethereal on.
> 
> Also, see my example for use on Linux at
> 
> http://www.linuxjournal.com/article.php?sid=5453
> 
> It has handled some fairly major IDL ok, and I have
> received good feedback from users.
> 
> Regards / Frank
> 
> --
> EUS/SV/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.3 (2.4.18-5 kernel).

-- 

Regards / Frank

-- 
EUS/SV/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.3 (2.4.18-5 kernel).