Wolfgang Hoschek | 4 Nov 01:10 2003

java-fam-0.1 problem

Hi,

I just tried to build java-fam-0.1 on redhat-9.0 (which ships with fam).
Seems to work (see attached out file [had to add "include/linux" to get
it to work]). Upon running it, i get the following:

[doggy /tmp/tmp2/java-fam-0.1] ./run-example.sh .
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/tmp2/java-fam-0.1/src/c/libjavafam.so:
/tmp/tmp2/java-fam-0.1/src/c/libjavafam.so: undefined symbol: FAMOpen2
          at java.lang.ClassLoader$NativeLibrary.load(Native Method)
          at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
          at java.lang.Runtime.loadLibrary0(Runtime.java:788)
          at java.lang.System.loadLibrary(System.java:834)
          at com.arosii.io.fam.FAM.<clinit>(FAM.java:94)
          at DirectoryMonitor.start(DirectoryMonitor.java:61)
          at DirectoryMonitor.main(DirectoryMonitor.java:118)

I tried this against the fam included in RH9.0 and fam-2.6.10, both to
no avail. Not being a great C/C++ wizard, I'd be thankful for any advice...
Wolfgang.
Buildfile: build.xml

prepare-build:

build-javac:

(Continue reading)

Viner, David | 4 Nov 19:48 2003
Picon

connect to FAM from remote machine?

Hi,

I know that the fam library uses rpc messages to connect to the fam daemon.
Is it possible to connect to a fam daemon on a remote machine (i.e., a
machine that is not localhost)?  

From looking at the code, it appears to me that this is not possible, since
FAMOpen2 constructs the client like this:
	fc->client = new Client(LOCALHOSTNUMBER, famnumber, famversion);
where LOCALHOSTNUMER is
	#define LOCALHOSTNUMBER 0x7f000001 // Internet number for loopback.

thanks
dave

Michael Raymond | 4 Nov 20:53 2003
Picon

Re: connect to FAM from remote machine?

    I'm not that familiar with the code, but I know that the documentation
does talk about the fam daemon contacting fam daemons on other machines to
monitor NFS mounted files.  Therefor fam daemons can talk to each other but
I doubt that clients can do it.  I think one way that the daemon does
security is that it only talks to connections coming from secure port(s).
	    	    	    	     	     		 Michael

On Tue, Nov 04, 2003 at 10:48:30AM -0800, Viner, David wrote:
> Hi,
> 
> I know that the fam library uses rpc messages to connect to the fam daemon.
> Is it possible to connect to a fam daemon on a remote machine (i.e., a
> machine that is not localhost)?  
> 
> >From looking at the code, it appears to me that this is not possible, since
> FAMOpen2 constructs the client like this:
> 	fc->client = new Client(LOCALHOSTNUMBER, famnumber, famversion);
> where LOCALHOSTNUMER is
> 	#define LOCALHOSTNUMBER 0x7f000001 // Internet number for loopback.
> 
> thanks
> dave
> 

--

-- 
Michael A. Raymond              Office: (651) 683-3434
Core OS Scheduling Group        Real-Time Lead

Ken Tanzer | 4 Nov 23:25 2003

Re: connect to FAM from remote machine?

You're supposed to be able to monitor NFS mounted files, either by your FAM server contacting a remote FAM server, or by polling the files.  Unfortunately, we weren't able to get either of those options to work properly.   ("FAM not notifying of non-local changes on NFS file", http://oss.sgi.com/projects/fam/mail_archive/200304/msg00007.html).

If you do get anything like this running, I'd love to know about it, because it would be helpful for us!  Thanks.

Michael Raymond wrote:
I'm not that familiar with the code, but I know that the documentation does talk about the fam daemon contacting fam daemons on other machines to monitor NFS mounted files. Therefor fam daemons can talk to each other but I doubt that clients can do it. I think one way that the daemon does security is that it only talks to connections coming from secure port(s). Michael On Tue, Nov 04, 2003 at 10:48:30AM -0800, Viner, David wrote:
Hi, I know that the fam library uses rpc messages to connect to the fam daemon. Is it possible to connect to a fam daemon on a remote machine (i.e., a machine that is not localhost)? >From looking at the code, it appears to me that this is not possible, since FAMOpen2 constructs the client like this: fc->client = new Client(LOCALHOSTNUMBER, famnumber, famversion); where LOCALHOSTNUMER is #define LOCALHOSTNUMBER 0x7f000001 // Internet number for loopback. thanks dave

-- Kenneth Tanzer Information Services Manager Downtown Emergency Service Center (206) 464-1570, ext. 3061 ktanzer <at> desc.org www.desc.org
Viner, David | 6 Nov 23:30 2003
Picon

fam and win32?

hi,

    i realize this is an odd request... but can fam run on win32?  i'm not a
huge win32 user, but i do occasionally write some stuff on it, and i'd like
to have all the beauty of fam there too.  does such a thing exist?

thanks
dave

Stephen Kennedy | 6 Nov 23:43 2003

Re: fam and win32?


www.sysinternals.com have a program called filemon which is 
'win32 fam with a gui. It comes with full source.

Stephen.

>     i realize this is an odd request... but can fam run on win32?  i'm not
> a huge win32 user, but i do occasionally write some stuff on it, and i'd like
> to have all the beauty of fam there too.  does such a thing exist?

Marco Fontana | 12 Nov 09:01 2003
Picon

(unknown)

Hello,

I'm using an INDY133, running IRIX5.3 and when I try to use the Graphic 
part of SO it said to me "can't connect with /usr/ect/fam" and I can't see 
any window.
For Example, when I try to opne remote or home directory from the toolchest 
IRIX give me that message.

How can I solve this problem?

Thank you
Marco

----------------------------------------------------------------------->>>
Marco Fontana
Via Zanardelli 11
43100 Parma

tel. +39521------
cell. +393333582995
Il Portico Costruzioni s.r.l. +39521371261

E-mail: m-fontana <at> iol.it
---------------------------------------------------------------------->>>

Rusty Ballinger | 12 Nov 16:10 2003
Picon
Picon

Re:

> I'm using an INDY133, running IRIX5.3 and when I try to use the Graphic
> part of SO it said to me "can't connect with /usr/ect/fam" and I can't see
> any window.
> For Example, when I try to opne remote or home directory from the toolchest
> IRIX give me that message.

5.3, wow!!

There have been some significant changes to fam since 5.3...  (That
might even have been before kbob rewrote it, I don't know.)

Is the problem that fam is running & you can't connect to it, or that
it isn't running?  ("ps -ef | grep fam" to begin with)

I don't remember whether any of this applies to 5.3, but here are some
things you might try if the problem is that fam isn't running:
- is fam in /etc/inetd.conf?
- is the sgi_fam service in /etc/services?
- when you run "/etc/init.d/network start" (mumble mumble, that might
  not be right, I don't even have any IRIX boxes since those punks
  laid me off) does anything interesting happen?  (you want the
  portmapper and inetd to be running)

It's possible that fam wasn't started by inetd in 5.3.  You might try
running /usr/etc/fam by hand (as root) and see what happens.  (Check
fam's man page to see if it had any debugging options then.)

Also, one thing to keep in mind if you're running the fam from 5.3 on
a system that's on a network, that's probably one of the versions of
fam which had a security hole which people on remote machines can use
to learn the names of all the files on your system.  If that's a
concern to you, there are ways to fix that; one which might work for
you would be to run the open-source fam.  Another might be tcpwrapper.

--Rusty

Viner, David | 13 Nov 17:44 2003
Picon

kqueue

hi,
	i noticed that FAM currently has bug open to add kqueue support on
freebsd.  is anyone working on that?  if not, i may be able to spare some
cycles soon to give it a shot.

dave

Michael Raymond | 13 Nov 22:18 2003
Picon

Re: kqueue

    I don't know of anyone working on it right now.  I've almost got CVS up
and going for FAM on sourceforge.  When that's done I'll push out fam-2.7
and we can start look at formally adding in the DNotify patch and support
for kqueue.
    	   						Michael
--

-- 
Michael A. Raymond              Office: (651) 683-3434
Core OS Scheduling Group        Real-Time Lead


Gmane