cURL / Mailing Lists / curl-library / Single Mail

curl-library

[curl 7.19.5] consfigure & struct timeval on VMS

From: John E. Malmberg <wb8tyw_at_qsl.net>
Date: Sat, 30 May 2009 15:35:20 -0500

Hello all,

I am attempting to build curl 7.19.5 on VMS after successfully building
7.18.1 last year or so.

This time, I have run into an issue where configure is looking for
struct timeval in time.h and not finding it because the VMS C headers
only expose it there if the _X_OPEN_SOURCE_EXTENDED macro is defined.

With out that macro defined, struct timeval is exposed in socket.h which
configure does not check. The header files reference the XPG4 V2
standard as the requirements for this placement.

This causes configure not to be able to determine the return type and
arguments for select() since the structure definition in socket.h
conflicts with the one provided by the configure test program.

 From reading the archives of this list, I see that it is not
recommended to define the macro _X_OPEN_SOURCE_EXTENDED.

To get configure to work, I have added:
  export ac_cv_struct_timeval="yes" to the shell script that I used to
run configure.

I am not sure how to modify the configure script or the tools that build
the configure script to check socket.h in addition to sys/time.h.

Regards,
-John
Received on 2009-05-30