host:/tmp/perl# sh Configure -A prepend:libswanted='cl pthread ' -Dprefix=/opt/perl-5.10.0 -Dextras="CGI URI" -Dcc=gcc ... Making Time::HiRes (dynamic) Configuring Time::HiRes... Have syscall()... looking for syscall.h... found . Looking for gettimeofday()... found. Looking for setitimer()... found. Looking for getitimer()... found. You have interval timers (both setitimer and getitimer). Looking for ualarm()... found. Looking for usleep()... found. Looking for nanosleep()... testing... found. You can mix subsecond sleeps with signals, if you want to. (It's still not portable, though.) Looking for clock_gettime()... found. Looking for clock_getres()... found. Looking for clock_nanosleep()... NOT found. Looking for clock()... found. Looking for stat() subsecond timestamps... Trying struct stat st_atimespec.tv_nsec...NOT found. Trying struct stat st_atimensec...NOT found. Trying struct stat st_atime_n...NOT found. Trying struct stat st_atim.tv_nsec...NOT found. Trying struct stat st_uatime...NOT found. You do not seem to have stat subsecond timestamps. Writing Makefile for Time::HiRes cp HiRes.pm ../../../lib/Time/HiRes.pm ../../../miniperl "-I../../../lib" "-I../../../lib" ../../../lib/ExtUtils/xsubpp -typemap ../../../lib/ExtUtils/typemap -typemap typemap HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c gcc -c -fPIC -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.9711\" -DXS_VERSION=\"1.9711\" -fPIC "-I../../.." -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK -DATLEASTFIVEOHOHFIVE HiRes.c HiRes.xs:74:1: warning: "CLOCK_REALTIME" redefined In file included from /usr/include/time.h:12, from ../../../perl.h:1159, from HiRes.xs:16: /opt/hp-gcc-4.2.1/lib/gcc/ia64-hp-hpux11.23/4.2.1/include/sys/_time.h:94:1: warning: this is the location of the previous definition HiRes.xs:75:1: warning: "CLOCK_VIRTUAL" redefined /opt/hp-gcc-4.2.1/lib/gcc/ia64-hp-hpux11.23/4.2.1/include/sys/_time.h:96:1: warning: this is the location of the previous definition HiRes.xs:76:1: warning: "CLOCK_PROFILE" redefined /opt/hp-gcc-4.2.1/lib/gcc/ia64-hp-hpux11.23/4.2.1/include/sys/_time.h:97:1: warning: this is the location of the previous definition In file included from HiRes.xs:749: const-c.inc: In function 'constant_14': const-c.inc:102: error: 'CLOCK_REALTIME' undeclared (first use in this function) const-c.inc:102: error: (Each undeclared identifier is reported only once const-c.inc:102: error: for each function it appears in.) HiRes.c: In function 'XS_Time__HiRes_clock_gettime': HiRes.c:1518: error: 'CLOCK_REALTIME' undeclared (first use in this function) HiRes.c: In function 'XS_Time__HiRes_clock_getres': HiRes.c:1595: error: 'CLOCK_REALTIME' undeclared (first use in this function) *** Error exit code 1 Stop. *** Error exit code 1 Stop.