pb compiling on HP-UX

Defdef defdef at informaticien.net
Fri Dec 3 07:23:30 UTC 1999


Thanks for reply!

The need of _KERNEL is for the defines RLIM* that are defined in
sys/ressource.h when _KERNEL existing. Maybe another way to declare it
existing.

--- from ressource.h ---
#ifdef _KERNEL  /* unsupported BSD stuff */
#define RLIM_INFINITY   0x7fffffff

#define RLIMIT_CPU      0               /* cpu time in milliseconds */
#define RLIMIT_DATA     2               /* data size */
#define RLIMIT_STACK    3               /* stack size */
#define RLIMIT_RSS      5               /* resident set size */
#endif  /* unsupported BSD stuff */
--- from ressource.h ---

Do you know it?

Heath Kehoe wrote:
> 
> You should never have to define _KERNEL.  The proper define is
> -D_HPUX_SOURCE
> 
> I don't know what effect gcc has in this case, since I don't use
> it with HP/UX.  Perhaps if you have an old gcc you might have
> better results with a newer version.
> 
> By the way, you should seriously consider upgrading your HP/UX
> to 10.20.  This is the first version that is certified to be
> year 2000 ready.
> 
> --Heath
> 
> >
> >I have problem compiling inn 2.2.1 with gcc/hp-ux 10.01 because some
> >part of the code need to have ( '-D _KERNEL' but not '-D HP-UX_SOURCE' )
> >to have FD_ZERO and other part need to have ( '-D HP-UX_SOURCE' but not
> >'-D _KERNEL' ) to have the RLIM_* variables set.
> >
> >The DEFINES are not set by ./configure and I have to set it directly in
> >the Make file/.global file.
> >
> >May be I use a bad DEFINE?
> >Do you have some idea?
> >
> >frederic.
> >
> >


More information about the inn-workers mailing list