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

PrevRefNext

AIX

  1. I can't compile using the compiler, xlC or xlC_r.

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

    sh buildall.sh -m  <path_to_gnu_make> -x xlC_r -c xlc_r
      --with-berkeleydb-conf="CXXFLAGS=-qstaticinline"

  2. I get an error regarding truncate64 and stat64 on AIX 5.3 while building Berkeley DB.

    On AIX 5.3, you may see a compilation failure while building Berkeley DB 4.3.29 of the nature, "...truncate64 is not a member of..." or "...stat64 is not a member of..."

    This can be worked around by adding this line to db-4.3.29/dbinc/db.in:

    #include <unistd.h>
    
    It should be added just after the line "#ifndef __NO_SYSTEM_INCLUDES." After this, re-run the buildall.sh script, and be sure that Berkeley DB configures itself again, regnerating the file, db-4.3.29/build_unix/db.h.


PrevRefNext

Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.