Hello,
Browsing through the FAM mailing list archive, I noticed that several
other people are having the same problem I am - FAM does not properly
compile. I get the same errors others have reported on this list, even
after installing the posted patch, I could not get FAM to install. I am
running Debian/unstable, using GCC 2.95.2.
Tonight I modified the code to get it to run properly on my machine. Attached
to this E-mail is a patch to the code which allows it to compile for me. It
should work on other systems as well, but I have not tested it
on any system other than my own.
To install the patch, download/unpack the source code and run configure.
Change directories to fam-oss-2.6.2/fam and type:
patch -p 2 < fam.patch
Below is a list of changes in this patch:
1) Included sys/types.h and sys/wait.h in IMonLinux.c++. It was not able
to find waitpid() without these include files.
2) NFSFileSystem.c++ did not compile because it did not include <stdio.h>,
and was choking on sscanf()
3) Listener.c++ did not use a socklen_t as the third argument to
accept(), which Linux appears to require. I got around this by
typecasting it..
4) Changed setreuid(-1, value) commands to be seteuid(value) to avoid
compiler warnings. It should work with setreuid as well, the two
functions are identical when using a -1 as it's first value
5) Modified Scheduler.h FD_Info iohandler name to "FDInfo_handler" so it
has a unique name and avoid the known ANSI compiler errors
6) Modified the CXXFLAGS variable in the Makefile - as I learned on this
mailing list, when setting your CXXFLAGS to -O2 it breaks.
Regards,
David
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
fam.patch
Description: Binary data
|