[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] compiling 1.4.12 on HP-UX 11.31



I'm compiling libevent 1.4.12 on HP-UX 11.31 using the HP compiler.  I'm
getting errors because the compat/sys/_time.h is causing structs like
timeval, etc to be redeclared.

All I need to do is create testme.c with just

#include <time.h>

in it and then compile as

cc -DHAVE_CONFIG_H -I. -I./compat -Ae +DD64 -c testme.c

and I get the following errors
"/usr/include/sys/_timeval.h", line 24: error #2101: "timeval" has already
          been declared in the current scope
  struct timeval {
         ^

"/usr/include/sys/time.h", line 51: error #2101: "itimerval" has already been
          declared in the current scope
  struct        itimerval {
                ^

"/usr/include/sys/_timespec.h", line 18: error #2101: "timespec" has already
          been declared in the current scope
  struct timespec {
         ^

"/usr/include/sys/time.h", line 170: error #2101: "timezone" has already been
          declared in the current scope
  struct timezone {
         ^

if I take out the -I./compat it compiles fine.  Of course this causes
problems when compiling the real source code as it needs
compat/sys/queue.h  so I just removed compat/sys/_time.h for the HPUX
11.31 build.

-- 
Kathryn
http://womensfooty.com
National Team Donation - http://womensfooty.com/freedom/donate
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.