cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: VMS fixes needed to allow building.

From: Tom Grace <Thomas.Grace_at_amdocs.com>
Date: Tue, 12 Mar 2013 22:47:23 +0000

>From: Yang Tse <yangsita_at_gmail.com<mailto:yangsita_at_gmail.com?Subject=Re:%20VMS%20fixes%20needed%20to%20allow%20building.>>
>> from Tom Grace <Thomas.Grace_at_amdocs.com> wrote:
>> Also I see in TOOL_MAIN.C that variable vms_show is a module static yet ,
>> the thread update comments suggest it should be extern, via edit submitted
>> in TOOL_MAIN.H , what do you want to do here?
>>
> >(there is compile warning for this)
>Tom, copy & paste full warning including line reference.

CC (opts) DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;1
  OBJDIR = "DISK$USER1:[TGRACE.CURL.CURL-7_29_0.PACKAGES.VMS.ALPHA]"
  EXEDIR = "DISK$USER1:[TGRACE.CURL.CURL-7_29_0.PACKAGES.VMS.ALPHA]"
  CC_DEFS = "/define = (HAVE_CONFIG_H=1,_USE_STD_STAT,_LARGEFILE)"
  CC_QUAL1 = "/list='objdir'/show=(all, nomessages)/machine/names=(shortened, as_is)/repository='exedir'/float=ieee/ieee_mode=denorm
_results/debug/optimize"
  CC_QUAL2 = " /object = DISK$USER1:[TGRACE.CURL.CURL-7_29_0.PACKAGES.VMS.ALPHA] /include = ([-.lib], [-.src], [-.packages.vms], [-.
packages.vms.ALPHA])/nested_include_directory=none"

static int vms_show = 0;
...........^
%CC-W-MIXLINKAGE, In this declaration, "vms_show" is declared with both internal and external linkage. The previous declaration is
at line number 33 in file DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_VMS.H;1.
at line number 55 in file DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;1
%LIBRAR-W-COMCOD, compilation warnings in module TOOL_MAIN file DISK$USER1:[TGRACE.CURL.CURL-7_29_0.PACKAGES.VMS.ALPHA]TOOL_MAIN.OBJ
;1

I have fixed this with, below,,, also linker needed a symbol def as neither of the "extern vms_show" were providing it. This may be due to our default mode of the compile mode of "extern" since there are several options for this.

$ diff tool_main.c ;1
************
File DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;3
   55 globaldef int vms_show = 0;
   56 #endif
******
File DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;1
   55 static int vms_show = 0;
   56 #endif
************

Number of difference sections found: 1
Number of difference records found: 1

DIFFERENCES /IGNORE=()/MERGED=1-
    DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;3-
    DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;1
$

From the bottom of the listing file
Command Line
------- ----

CC/DEFINE=(HAVE_CONFIG_H=1,_USE_STD_STAT,_LARGEFILE)/LIST=DISK$USER1:[TGRACE.CU
RL.CURL-7_29_0.PACKAGES.VMS.ALPHA]/SHOW=(EXPAN,INCLUD)/MACHINE/NAMES=(SHORTENED
,AS_IS)/REPOSITORY=DISK$USER1:[TGRACE.CURL.CURL-7_29_0.PACKAGES.VMS.ALPHA]/FLOA
T=IEEE/IEEE_MODE=DENORM_RESULTS/DEBUG/OPTIMIZE/OBJECT=DISK$USER1:[TGRACE.CURL.C
URL-7_29_0.PACKAGES.VMS.ALPHA]/INCLUDE=([-.LIB],[-.SRC],[-.PACKAGES.VMS],[-.PAC
KAGES.VMS.ALPHA])/NESTED_INCLUDE_DIRECTORY=NONE DISK$USER1:[TGRACE.CURL.CURL-7_
29_0.SRC]TOOL_MAIN.C;3

Hardware: /ARCHITECTURE=GENERIC /OPTIMIZE=TUNE=GENERIC

These macros are in effect at the start of the compilation.
----- ------ --- -- ------ -- --- ----- -- --- ------------

__G_FLOAT=0 __DECC=1 vms=1 VMS=1 __32BITS=1 __PRAGMA_ENVIRONMENT=1
 __CRTL_VER=80300000 __vms_version="V8.3 " CC$gfloat=0 __X_FLOAT=1
 vms_version="V8.3 " __DATE__="Mar 12 2013" __STDC_VERSION__=199901L
 __DECC_MODE_RELAXED=1 _USE_STD_STAT=1 __DECC_VER=70390009 __VMS=1
 _LARGEFILE=1 __ALPHA=1 VMS_VERSION="V8.3 " HAVE_CONFIG_H=1
 __IEEE_FLOAT=1 __VMS_VERSION="V8.3 " __TIME__="18:21:35" __Alpha_AXP=1
 __VMS_VER=80300022 __BIASED_FLT_ROUNDS=2 __INITIAL_POINTER_SIZE=0
 __STDC__=2 _IEEE_FP=1 __LANGUAGE_C__=1 __vms=1 __alpha=1 __D_FLOAT=0
[End of file]

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-12