Re: Building libxml2 on OpenVMS/VAX



On 7 Jan., 11:58, s...@xxxxxxxxxxxx (Steven M. Schweda) wrote:
From: "Andreas W. Wylach" <a...@xxxxxxx>

To my problem: Since 2 days I try to build the libxml2 library on my
Vax (a VaxStation 4000/96 with
OpenVMS 7.3 with Compaq C V6.4-005).

Sounds dangerous.

CC/NAMES=(SHORTENED)/FLOAT=D_FLOAT/object=DKA300:
[AW.LIBXML2-2_6_30.DEBUG]HTMLTR
EE.OBJ; HTMLTREE.C
typedef long double trio_long_double_t;
........^
%CC-I-LONGDOUBLENYI, In this declaration, type long double has the
same
representation as type double on this platform.
At line number 156 in DKA300:
[AW.LIBXML2-2_6_30]TRIODEF.H;1.

So? Whether that's a real problem depends on now many bits it really
uses for trio_long_double_t variables. Without looking at the code, I
have no idea.

Well, I can't tell. I've never dealed with the fp/fp_class stuff in my
life so I just changed that
long double to double (like it stated in the compiler message). I know
it sounds naive, but
I have no other clue yet.


The compilation procedure gets thru and results in the libxml.olb
library. Another problem is, that I get one undefined symbol
(fp_class).

When you do what?

This linker moans about the undefined fp_class symbol, when it comes
to the point
linking some cleint programs (like nanoftp, nanohttp, etc) using the
libxml.olb library.


Overall, these problems seem to be resolvable but I have
the string feeling, that
I won't be able to build that library on OpenVMS /VAX. As far as I
know it can be build on an Alpha. With the
libxml2 distribution there's also an vms build procedure (which I
use).
cc_opts = "/NAMES=(SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS"

IEEE floating point is not available on VAX. Again, without looking
at the code, it would be hard to say how important that would be.

I know, I already saw that in the cc/decc help. I was just wondering
if there's an equivalent
compiler directive / command for the VAX.


[...] Tried to install
the c++ compiler but get an vmsinstal
installtion error that reports some undefined logicals. So for now I
leave the c++ installation for later.

Any hints to get me to an result are greatly appreciated. If I forgot
to give any important info, please let me know.

Which one is "the c++ compiler"? As usual, actual commands and
actual error messages would be more informative than vague descriptions.

Its a saveset (cxx056.a) containing the VAX C++ V5.6 compiler from the
HP C/C++ page I downloaded. Somebody
solved the problem by hacking the kitinstal.com file and several other
adjustments. See
http://unix.derkeiler.com/Newsgroups/comp.os.vms/2003-04/1937.html

If I had more information on the problem I would have mentioned it in
here. All I get
are messages about 3 undefined logicals. That's it.

The fact that I need to get into VMS a lilttle more again (I work on
unix/linux) I skipped installing
the c++ compiler cause I don't know what exactly to change in that dcl
file. Need to do a little
more debugging on that (set verify on, etc). When I've done that I
might return with that problem
to the group to give detailed info's. I will try to solve that c++
compiler problem, when I have
more time to dip into that subject.

For the libxml2 I do not need the c++ compiler.

My general question was, if anybody sucessfully built that libxml2
library on OpenVMS/VAX. If
not, I think it's lost time to continue that and I just skip the xls/
xml project on the VAX. If yes,
it would be nice if I could get a copy of the distribution or at least
the changes / diff that was made.

Btw, the libraries I tried to build is libxml2-2.6.30 (that is the
latest) and also the 5 year old
library libxml2-2.6.0. (both are ready for OpenVMS and contain the
build scripts for VMS).
The port was done by John A Fotheringham in 2001, 7 years ago.

Andreas W. Wylach


------------------------------------------------------------------------

Steven M. Schweda sms@antinode-org
382 South Warwick Street (+1) 651-699-9818
Saint Paul MN 55105-2547

.



Relevant Pages

  • Re: Different behaviour of HP C on Alpha and VAX
    ... :I have a program which generates different messages on Alpha and VAX. ... For some background, the Alpha compiler is newer, and is based on a far ... better and more compatible libraries, and less need for the work-arounds. ...
    (comp.os.vms)
  • Re: DECC /VAXC Compiler
    ... the classic K&R C compiler interface, with various VAX extensions. ... See C coding information in the OpenVMS FAQ, ... Also the Programming Concepts manual and the C documentation set. ...
    (comp.os.vms)
  • Re: Select Case Statement
    ... > I am currently importing my code that was written in Compaq Fortran ... > V.6.6 on Windows to OpenVMS VAX. ... The *current* OpenVMS Alpha compiler also supports them (but I don't ...
    (comp.lang.fortran)
  • Re: Alpha macro (64) and the OTS$... routines
    ... > comparision between a program compiled on VAX COBOL ... On the VAX, ... > the compiler sets up a CMPC5 instruction, followed by a BLEQU, ... > We can make the Alpha work like the VAX if we compile on Alpha with ...
    (comp.os.vms)
  • Re: "A Historical Look at the VAX"
    ... Didn't at least also the Fortran compiler also produce object code ... drives, media, disk drives, magnetic heads for disks and tape drives, chips ... some pretty impressive backplanes in Kanata, PDP-8 to VAX 9000 High Density ... CPU, Disks, Tapes, ...
    (comp.os.vms)