Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building on OpenVMS [I]
From: Bruce Visscher (bruce.visscher_at_[hidden])
Date: 2012-04-04 13:27:30

On Wed, Apr 4, 2012 at 7:19 AM, Victor Kirk <Victor.Kirk_at_[hidden]> wrote:
> I’m hoping  to port an application to open vms using HP C++7.3.  I don’t suppose anyone has any dcl scripts to build boost.  I ‘only’ need asio and threading.

I have some code utilizing boost libraries running on OpenVMS(*)
compiled using "HP C++ V7.3-009 for OpenVMS Alpha V7.3-2". I did not
use boost build. In fact, I used the GNUmake that comes with GNV.
(GNV has wrappers for cxx, cc, and ld commands that make the compiler
more similar to other platforms (but still using the "native" HP
compilers and linker). It also comes with a bash shell.) I don't
recall having to do too much to get set up to compile and build using
boost. I have used the boost::thread library and the
boost::filesystem library but not asio. Of course, a lot of boost
does not need to be compiled separately, but the thread library does.

Okay, I do see in boost_1_33_1/boost/config/user.hpp I have added:

#Ifdef __VMS
# include <boost/config/posix_features.hpp>

I am not sure if this is still needed with newer versions of boost. I
have a newer version of boost (boost-1_47) that I have used without
this but I might not be doing as much.

> Currently I’m just trying to compile the asio chat examples.  I’m completely new to VMS and the compiler, I managed to get a few things to compile but now get a  “could not open source file "sys/select.h"’, a bit of googling suggests I may need to have an HP porting library installed or maybe I’m just missing an prepocessor directive to include the correct code, can’t see anything obvious in socket_types.hpp to set?

The OpenVMS platform does not have a "sys" include path. Instead, the
C and C++ compilers always just ignore the "sys/" prefix. However,
there is no select.h header in any of the system header "text
libraries". Maybe the above configuration will help?

> Any pointers in the right general direction would be gratefully appreciated.
> Kind Regards, Vic
> Victor Kirk
> Analyst
> Transportation Systems - Network Services
> Serco Civil Government
> Cavendish House
> Clearwater Park
> Prince's Wharf
> Stockton-On-Tees
> TS17 6QY
> T +44 (0) 1642 636 894
> F +44 (0) 1642 636 701
> Victor.Kirk_at_[hidden]

Bruce Visscher

(*) OpenVMS is a marketing name. It is not open source.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at