RE: LYNX 2-8-3 dev 22

        I have tried to build this on some OpenVMS systems and it seems there
are some difficulties...

 Firstly OpenVMS Alpha 7.1-1H1, UCX 5.0A, DECC 5.7-004

The first attempt went like this...

...
$ cc [-.Implementation]HTUU.c
$ cc [-.Implementation]HTVMSUtils.c

      VmsName = HTVMS_name("",colon+1);
......^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to char".
at line number 178 in file 
DISK$UTIL_DISK:[UTIL.LYNX2-8-3.WWW.LIBRARY.IMPLEMENTATION]HTVMSUTILS.C;1

      VmsName = HTVMS_name("",FileName);
......^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to char".
at line number 180 in file 
DISK$UTIL_DISK:[UTIL.LYNX2-8-3.WWW.LIBRARY.IMPLEMENTATION]HTVMSUTILS.C;1

   strcpy(DirEntry, HTVMS_name("",UnixEntry));
...^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 495 in file 
DISK$UTIL_DISK:[UTIL.LYNX2-8-3.WWW.LIBRARY.IMPLEMENTATION]HTVMSUTILS.C;1
$ cc [-.Implementation]getpass.c
$ cc [-.Implementation]getline.c

[snip]
$!      Compile the Lynx [.SRC] modules
$!
$ set default [.SRC]
$! DECC:
$  cc := cc/decc/prefix=all/nomember -
           /DEFINE=(ACCESS_AUTH,UCX,__VMS_CURSES)-
           /INCLUDE=([],[-],[-.WWW.Library.Implementation],[.chrtrans]) 
$!
$ cc DefaultStyle
$ cc GridText
$ cc HTAlert
$ cc HTFWriter
$ cc HTInit
$ cc HTML
$ cc LYBookmark
$ cc LYCgi
$ cc LYCharSets
$ cc LYCharUtils
$ cc LYClean
$ cc LYCookie
$ cc LYCurses
$ cc LYDownload
$ cc LYEdit

    StrAllocCopy(filename, HTSYS_name(filename));
....^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 94 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYEDIT.C;1

    StrAllocCopy(filename, HTSYS_name(filename));
....^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 94 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYEDIT.C;1
$ cc LYEditmap
$ cc LYexit
$ cc LYForms
$ cc LYGetFile
$ cc LYHistory
$ cc LYJump
$ cc LYKeymap
$ cc LYLeaks
$ cc LYList
$ cc LYMail

            HTSprintf(command, mail_adrs, address_ptr1);
......................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value 
"command" is "char", which is not compatible with "pointer to char".
at line number 1893 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIL.C;1
$ cc LYMain

            StrAllocCopy(temp, HTVMS_name("", lynx_temp_space));
............^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 1031 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1

            StrAllocCopy(temp, HTVMS_name("", lynx_temp_space));
............^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 1031 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1

                StrAllocCopy(temp, HTVMS_name("", lynx_save_space));
................^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 1677 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1

                StrAllocCopy(temp, HTVMS_name("", lynx_save_space));
................^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 1677 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1
$ cc LYMainLoop
$ cc LYMap
$ cc LYNews
$ cc LYOptions
$ cc LYPrint

    char my_temp[LY_MAXPATH];
.........^
%CC-E-NOLINKAGE, In this declaration, "my_temp" has no linkage and has a prior 
declaration in this scope at line number 477 in file 
DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYPRINT.C;1.
at line number 480 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYPRINT.C;1
$ CLEANUP:

This is the offending section
          26427 PRIVATE void send_file_to_mail ARGS3(
          26428         document *,     newdoc,
          26429         char *,         content_base,
          26430         char *,         content_location)
      1   26431 {
      1   26432     static BOOLEAN first_mail_preparsed = TRUE;
      1   26433 
      1   26434 #ifdef VMS
      1   26435     BOOLEAN isPMDF = !strncasecomp(system_mail, "PMDF SEND", 9);
      1   26436     FILE *hfd;
      1   26437     char hdrfile[LY_MAXPATH];
      1   26438     char my_temp[LY_MAXPATH];
      1   26439 #endif
      1   26440 #if !CAN_PIPE_TO_MAILER 
      1   26441     char my_temp[LY_MAXPATH];
                .........1                    
%CC-E-NOLINKAGE, (1) In this declaration, "my_temp" has no linkage and has a prior 
declaration in this scope at line number 477 in f
ile DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYPRINT.C;1.

      1   26442 #endif
      1   26443 

I commented out line 26438 and tried again...

$!      Compile the Lynx [.SRC] modules
$!
$ set default [.SRC]
$! DECC:
$  cc := cc/decc/prefix=all/nomember -
           /DEFINE=(ACCESS_AUTH,UCX,__VMS_CURSES)-
           /INCLUDE=([],[-],[-.WWW.Library.Implementation],[.chrtrans]) 
$!
$ cc DefaultStyle
$ cc GridText
$ cc HTAlert
$ cc HTFWriter
$ cc HTInit
$ cc HTML
$ cc LYBookmark
$ cc LYCgi
$ cc LYCharSets
$ cc LYCharUtils
$ cc LYClean
$ cc LYCookie
$ cc LYCurses
$ cc LYDownload
$ cc LYEdit

    StrAllocCopy(filename, HTSYS_name(filename));
....^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 94 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYEDIT.C;1

    StrAllocCopy(filename, HTSYS_name(filename));
....^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 94 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYEDIT.C;1
$ cc LYEditmap
$ cc LYexit
$ cc LYForms
$ cc LYGetFile
$ cc LYHistory
$ cc LYJump
$ cc LYKeymap
$ cc LYLeaks
$ cc LYList
$ cc LYMail

            HTSprintf(command, mail_adrs, address_ptr1);
......................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value 
"command" is "char", which is not compatible with "pointer to char".
at line number 1893 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIL.C;1
$ cc LYMain

            StrAllocCopy(temp, HTVMS_name("", lynx_temp_space));
............^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 1031 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1

            StrAllocCopy(temp, HTVMS_name("", lynx_temp_space));
............^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 1031 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1

                StrAllocCopy(temp, HTVMS_name("", lynx_save_space));
................^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 1677 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1

                StrAllocCopy(temp, HTVMS_name("", lynx_save_space));
................^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 1677 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.C;1
$ cc LYMainLoop
$ cc LYMap
$ cc LYNews
$ cc LYOptions
$ cc LYPrint
$ cc LYrcFile
$ cc LYReadCFG
$ cc LYSearch
$ cc LYShowInfo
$ cc LYStrings
$ cc LYTraversal
$ cc LYUpload
$ cc LYUtils

                    (fbuffer_size - 1), HTVMS_name("", temp));
........................................^
%CC-W-OUTTYPELEN, In this statement, the type or size of this argument to sprintf is 
not appropriate for the conversion specifier "%.*s".  The value might be truncated or 
formatted in an unintended manner.
at line number 5825 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYUTILS.C;1

                    (fbuffer_size - 1), HTVMS_name("", temp));
........................................^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 5825 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYUTILS.C;1

        strcpy(result, HTVMS_name("", given));
........^
%CC-I-IMPLICITFUNC, In this statement, the identifier "HTVMS_name" is implicitly 
declared as a function.
at line number 7007 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYUTILS.C;1

        strcpy(result, HTVMS_name("", given));
........^
%CC-W-CVTDIFTYPES, In this statement, "HTVMS_name(...)" of type "int", is being 
converted to "pointer to const char".
at line number 7007 in file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYUTILS.C;1
$ cc TRSTable
$ cc UCAuto
$ cc UCAux
$ cc UCdomap
$!
$!      Link the objects and libaries.
$!
$ link/exe=lynx.exe -
DefaultStyle.obj, -
GridText.obj, -
HTAlert.obj, -
HTFWriter.obj, -
HTInit.obj, -
HTML.obj, -
LYBookmark.obj, -
LYCgi.obj, -
LYCharSets.obj, -
LYCharUtils.obj, -
LYClean.obj, -
LYCookie.obj, -
LYCurses.obj, -
LYDownload.obj, -
LYEdit.obj, -
LYEditmap.obj, -
LYexit.obj, -
LYForms.obj, -
LYGetFile.obj, -
LYHistory.obj, -
LYJump.obj, -
LYKeymap.obj, -
LYLeaks.obj, -
LYList.obj, -
LYMail.obj, -
LYMain.obj, -
LYMainLoop.obj, -
LYMap.obj, -
LYNews.obj, -
LYOptions.obj, -
LYPrint.obj, -
LYrcFile.obj, -
LYReadCFG.obj, -
LYSearch.obj, -
LYShowInfo.obj, -
LYStrings.obj, -
LYTraversal.obj, -
LYUpload.obj, -
LYUtils.obj, -
TRSTable.obj, -
UCAuto.obj, -
UCAux.obj, -
UCdomap.obj, -
[-.WWW.Library.Implementation]WWWLib_UCX.olb/library, -
sys$disk:[]UCXSHR.opt/opt, sys$disk:[]DECC.opt/opt
sys$share:ucx$ipc_shr/share
sys$library:vaxcrtl/library
sys$library:vaxccurse/library
%LINK-W-WRNERS, compilation warnings
        in module LYEDIT file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYEDIT.OBJ;3
%LINK-W-WRNERS, compilation warnings
        in module LYMAIL file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIL.OBJ;3
%LINK-W-WRNERS, compilation warnings
        in module LYMAIN file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYMAIN.OBJ;3
%LINK-W-WRNERS, compilation warnings
        in module LYUTILS file DISK$UTIL_DISK:[UTIL.LYNX2-8-3.SRC]LYUTILS.OBJ;1
%LINK-W-WRNERS, compilation warnings
        in module HTVMSUTILS file 
DISK$UTIL_DISK:[UTIL.LYNX2-8-3.WWW.LIBRARY.IMPLEMENTATION]WWWLIB_UCX.OLB;1
$!
$!      Copy the executable to the top directory and restore the default.


This vesion would work for at least simple things....

I also tried on an old VAX VMS 5.5-2, UCX 4.1, VAX C 3.2

$!      Build the WWWLibrary
$!
$ set default [.WWW.Library.VMS]
$! VAXC:
$!
$   cc/DEFINE=(ACCESS_AUTH,UCX,VC="""2.14""") -
      /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---]) -
      [-.Implementation]HTString.c
$!
$   cc := cc/DEFINE=(ACCESS_AUTH,UCX) -
            /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---])
$!
$ cc [-.Implementation]HTParse.c
$ cc [-.Implementation]HTAccess.c
            UIP_UNKNOWN=-1
%CC-I-ANACHRONISM, The "=-" operator is an obsolete form,
                and may not be portable.
                Listing line number 18561.
At line number 133 in DISK$MHLRF73:[CUSER.LYNX2-8-3.SRC]LYUTILS.H;1.

            UIP_UNKNOWN=-1
%CC-E-SYNTAXERROR, Found "=-" when expecting
                one of { "," "}" }.
                Listing line number 18561.
At line number 133 in DISK$MHLRF73:[CUSER.LYNX2-8-3.SRC]LYUTILS.H;1.

        #endif /* NOT_USED_CODE */
%CC-F-FATALSYNTAX, Fatal syntax error.
                Listing line number 20305.
At line number 1420 in 
DISK$MHLRF73:[CUSER.LYNX2-8-3.WWW.LIBRARY.IMPLEMENTATION]HTACCESS.C;1.

        #endif /* NOT_USED_CODE */
%CC-I-NOBJECT, No object file produced.
                Listing line number 20305.
At line number 1420 in 
DISK$MHLRF73:[CUSER.LYNX2-8-3.WWW.LIBRARY.IMPLEMENTATION]HTACCESS.C;1.

$ CLEANUP:

>From HTACCESS.lis

20295   X                         
PARSE_ACCESS|PARSE_HOST|PARSE_PATH|PARSE_PUNCTUATION);
20296   X           if (my_home_document) {
20297   X               CTRACE((tfp, "HTAccess: Using custom home page %s i.e., 
address %s\n",
20298   X                           my_home_document, ref));
20299   X               FREE(my_home_document);
20300   X           }
20301   X           anchor = (HTParentAnchor*)HTAnchor_findAddress(ref);
20302   X           FREE(ref);

HTACCESS                                                        18-MAR-2000 19:07:42   
 VAX C      V3.2-044                 Page 26
V1.0                                                            14-FEB-2000 20:07:40   
 HTACCESS.C;1 (1)

20303   X           return anchor;
20304   X       }
20305           #endif /* NOT_USED_CODE */
%CC-F-FATALSYNTAX, Fatal syntax error.
 
%CC-I-NOBJECT, No object file produced.
 

PS: Due to anti-spam provisions you will need to reply to TBolton at mhl.nsw.gov.au
                               Regards
 *      *     *     *     *       Tony Bolton   
****  ****   **     **   **       TBolton at mhl.nsw.gov.au
** **** **   *********   **       MANLY HYDRAULICS LABORATORY.
**  **  **   *********   **       110B King ST. Manly Vale 2093 Sydney AUSTRALIA
**      **   **     **   ******** Phone +61 2 99490200 FAX +61 2 99486185
 *      *     *     *     ******  http://www.mhl.nsw.gov.au 

Reply via email to