Berkeley DB XML Reference Guide:
Building Berkeley DB XML for UNIX/POSIX systems

PrevRefNext

HP-UX

  1. I can't build or run Berkeley DB XML on HP-UX using the native compiler, aCC.

    Some specific flags are required in order to compile and link smoothly on HP-UX. In addition, the default make on HP-UX is not GNU make, so it's necessary to install GNU make. Using this buildall.sh command will work on HP-UX:

    sh buildall.sh -m <path_to_gnu_make> -x aCC -c cc
      --with-berkeleydb-conf="CXXFLAGS=-AA"
      --with-xerces-conf="-l -lstd_v2 -l -lCsup_v2 -l -lm"

    It is safest if you set your CXXFLAGS environment variable to include "-AA" for all libraries. This can be done using the --with-configure-env option:

    sh buildall.sh -m <path_to_gnu_make> -x aCC -c cc
      --with-configure-env="CXXFLAGS=-AA"
      --with-xerces-conf="-l -lstd_v2 -l -lCsup_v2 -l -lm"

    If you want to build with debug enabled, you should do this:

    sh buildall.sh -m <path_to_gnu_make> -x aCC -c cc
      --with-configure-env="CXXFLAGS=-AA -g0"
      --with-xerces-conf="-l -lstd_v2 -l -lCsup_v2 -l -lm"

    ])

    The error you may see if the -AA flag is not properly set during compilation is the following:

    /usr/lib/dld.sl: Unresolved symbol: typeid__XT9exception_ (data)  from /home/db/dbxml-2.2.7/install/lib/libxerces-c.sl.27
    

    The -lCsup_v2 in the command may not be necessary. It is probably required if you are using a scripting API that dynamically loads the BDB XML libraries, such as Tcl.

    ])

PrevRefNext

Copyright (c) 1996,2007 Oracle. All rights reserved.