Privacy and Security Notice

Archived Messages for CDEV_1997@cebaf.gov: Re: Problems building cdev-1.5 under HPUX-9.x

Re: Problems building cdev-1.5 under HPUX-9.x

Jie chen (chen@merak.cebaf.gov)
Mon, 21 Apr 1997 14:56:49 -0400

Hi, Jimmie:
cxxdl.h is the header file for dynamic library loading under C++ for
hpux. It came with HPUX CC compiler. If you are using gcc to compile
cdev on hpux and without cxxdl, you have to modify shobjLoader.cc(h) a little.
First remove cxxdl.h from shobjLoader.h or using a flag such as

#if defined (hpux) && !defined (__GNUC__)
#include <cxxdl.h>
#endif

Then in the shobjLoader.cc change cxxshl_load to shl_load. After you have done
above, you should be able to compile cdev. Also make sure to use gcc -fpic
to compile the position independent code to build the shared library.

If you do not need shared library + dynamic loading capability of the
CDEV, you can compile static library without modifying any code.

I hope all the above will help you. If you manage to compile CDEV
shared library and make cdev work with dynamic loading services using g++,
please send us your Makefile so that we can distribute it. Thank you.

--Jie Chen