fam
[Top] [All Lists]

[fam] patches to compile on IRIX 5.3 with gcc-2.95.2

To: fam@xxxxxxxxxxx
Subject: [fam] patches to compile on IRIX 5.3 with gcc-2.95.2
From: Sumit Bose <bose@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Apr 2000 11:12:00 +0200
Sender: owner-fam@xxxxxxxxxxx
Hi,

here are the changes I have applied to the fam-oss-2.6.2 code to make it compile
and run under IRIX 5.3 with gcc-2.95.2. In the attachement are only the changes
to the c++ and header files. I am not too good with autoconf, so I have made all
changes to the makefiles ( stetting the compiler to g++ and adding -DIRIX_5_3
and -DNDEBUG to the CFLAGS) after running configure.

- IRIX 5.3 does not have snprintf in the libc, so I have taken it from qpopper.
  I have included it in the patch file, but I am not sure if it has the right
  license to be include it into the fam-oss distribution. Perhaps it would be
  better to take it from the glibc source, but I found it easier to take it from
  qpopper.

- Cred.c++:
  my system has getpwuid_r, but with different arguments, and no getgrent_r, so
  I have included code to use getpwuid and getgrent. Is it important to have the
  reentrant versions? If yes, perhaps they can be taken from glibc.

- IMonIrix.c++
  I have not found the definition of struct revokdi on my system, so I put it in
  the file. I also couldn't find struct interest, but interest_t.

- Scheduler.c++ and Scheduler.h:
  gcc-2.95.2 complains about class and member having the same name, so I changed
  the member name to xxx_handler.

- other files:
  some declarations were missing, I have added the include files were the
  declarations can be found.

Sumit  

Attachment: my_fam_patch
Description: patch

<Prev in Thread] Current Thread [Next in Thread>