curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Problems building curl on openvms (Alpha/Itanium) - no GNV

From: Tiago Bitarelli via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 23 Aug 2019 17:52:27 -0300

Dear all,

I´m trying to build curl/libcurl on OpenVMS using DCL method (I do not
have the GNV). I will only need basic HTTP Request. But currently
facing problems.
The problem is the same on the following systems:
openvms 8.4 @ itanium
openvms 8.3 @ alpha
openvms 8.2 @ alpha

Tried building the master branch from git, as well as several versions before.

Here are the steps I´ve tried already:

1. Unzipped and tried to build on a "home directory"

I19102::VXL $ @ [.packages.vms]build_vms.com NOLDAP NOKERBEROS NOSSL NOZLIB
CC opts: /define = (HAVE_CONFIG_H=1,_USE_STD_STAT,_LARGEFILE) /nolist/names=(sho
rtened, as_is)/repository='exedir'/float=ieee/ieee_mode=denorm_results/debug/opt
imize /object = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]/nested_inc
lude_directory=none
%CURL-I-BLDNOSSL, building with NO SSL support
   OBJDIR = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
   EXEDIR = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
Generating curl custom config_vms.h
%CREATE-E-OPENOUT, error opening DKA1:[CURL.LIB]CONFIG_VMS.H; as output
-RMS-E-DNF, directory not found
-SYSTEM-W-NOSUCHFILE, no such file

2. I tried creating the directories manually, and tried again the
build procedure
I19102::VXL $ CREATE /DIR [000000.CURL]
I19102::VXL $ CREATE /DIR [000000.CURL.LIB]

I19102::VXL $ @ [.packages.vms]build_vms.com NOLDAP NOKERBEROS NOSSL
NOZLIB NOLARGE
%CREATE-I-EXISTS, DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
already exists
Handling of large files disabled.
CC opts: /define = (HAVE_CONFIG_H=1,_USE_STD_STAT)
/nolist/names=(shortened,
as_is)/repository='exedir'/float=ieee/ieee_mode=denorm_results/debug/optimize
 /object = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]/nested_include_directory=none
%CURL-I-BLDNOSSL, building with NO SSL support
   OBJDIR = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
   EXEDIR = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
Generating curl custom config_vms.h
Generating curl_config.h
Can not find [.lib]curl_config*.*in file!

3. Lookeup up and found out that the header of the file
"[.lib]curl_config_h.cmake" mentions curl_config_h.in (/*
lib/curl_config.h.in. Generated somehow by cmake. */). Renamed it
manually. Tried the build procedure again
I19102::VXL $ rename [.lib]curl_config_h.cmake [.lib]curl_config_h.in

I19102::VXL $ @ [.packages.vms]build_vms.com NOLDAP NOKERBEROS NOSSL
NOZLIB NOLARGE
%CREATE-I-EXISTS, DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
already exists
Handling of large files disabled.
CC opts: /define = (HAVE_CONFIG_H=1,_USE_STD_STAT)
/nolist/names=(shortened,
as_is)/repository='exedir'/float=ieee/ieee_mode=denorm_results/debug/optimize
 /object = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]/nested_include_directory=none
%CURL-I-BLDNOSSL, building with NO SSL support
   OBJDIR = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
   EXEDIR = DKA1:[VXLP56_DRV.U5DO.CURL-MASTER.PACKAGES.VMS.IA64]
Generating curl custom config_vms.h
Generating curl_config.h
Creating new sys$disk:[]config_vms.h for you.
%COPY-E-OPENIN, error opening
DKA1:[VXLP56_DRV.U5DO.CURL-MASTER]CONFIGURE.; as input
-RMS-E-FNF, file not found

4. I found the problem [.packages.vms]config.h @ line 100:
$copy sys$disk:[]configure 'configure_script'
Could not figure out exactly what it was doing, but as the comments
before mentions sobre problems with NFS, and as Im not using NFS I
commented out these 2 lines:
$!if f$search(configure_script) .nes. "" then delete 'configure_script';*
$!copy sys$disk:[]configure 'configure_script'

5. Run the build procedure again
I19102::VXL $ @ [.packages.vms]build_vms.com NOLDAP NOKERBEROS NOSSL
NOZLIB NOLARGE
Handling of large files disabled.
CC opts: /define = (HAVE_CONFIG_H=1,_USE_STD_STAT)
/nolist/names=(shortened,
as_is)/repository='exedir'/float=ieee/ieee_mode=denorm_results/debug/optimize
 /object = DKA1:[000000.CURL.PACKAGES.VMS.IA64]/nested_include_directory=none
%CURL-I-BLDNOSSL, building with NO SSL support
   OBJDIR = DKA1:[000000.CURL.PACKAGES.VMS.IA64]
   EXEDIR = DKA1:[000000.CURL.PACKAGES.VMS.IA64]
Generating curl custom config_vms.h
Generating curl_config.h
Creating new sys$disk:[]config_vms.h for you.
CC (opts) DKA1:[000000.CURL.LIB]ALTSVC.C;1

  Error Missing_definition_of_macro_sread
..^
%CC-E-TYPEDEFNOTDEF, In this declaration, "Error" appears to be used
as if it named a type, but there is no declared type of that name
visible.
at line number 174 in file DKA1:[000000.CURL.LIB]curl_setup_once.h;1

struct timeval {
^
%CC-E-REDEFSTRUCT, In this declaration, the struct "timeval" is redefined.
at line number 109 in file DKA1:[000000.CURL.LIB]curl_setup_once.h;1

6. So, got to this point where:
- Apparently the macro SREAD was not correctly defined
- Apparently the macro HAVE_STRUCT_TIMEVAL was not correctly defined

As I made some workarounds trying to build it, I'm not sure if one of
the modifications is the source of this problem.
Can someone help me with this build?

Att

--
Tiago Bitarelli Gomes
lvta0909_at_gmail.com
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-08-23