Mariusz,
I don't have the Perl source right now so I can't work through the issue all of the way, but the definition for struct timeval should picked up in /usr/include/sys/time.h.   If that file is included in util.c, then I suspect that there was a configuration problem.

If you look at the Z/OS runtime library documentation for things like select() or gettimeofday() they should that you have to define _XOPEN_SOURCE_EXTENDED or a few other feature test macros.   Without them, the pre-processor will skip over the structure defs.


John Goodyear
ATS Benchmarking Team
Gaithersburg, MD.


Mariusz Stakowski <[EMAIL PROTECTED]> wrote on 05/05/2005 08:13:38 AM:

>                         Hello list,
>
>         I am trying to install perl 5.8.6 under z/OS 1.4 but during make I
> have got the following error:
>
> `sh  cflags "optimize=''" util.o`  util.c
>           CCCMD =  c89 -DPERL_CORE -c  -W 0,float(ieee)
> ERROR CCN3007 ./util.c:4258  "struct timeval" is undefined.
>
>
> It seems, that there is no header with this structure. I have browsed
> include library. Perhaps there should be utmpx.h among headers included ?
>
>                 Or I have made a mistake during configuration stage ?
>
>                                                                 I hope you
> will be able to help me.
>
>  Regards
>
>  Mariusz Stakowski

Reply via email to