AIX Build Notes

See also Berkeley DB notes on AIX

  1. Normal build command for AIX using xlC_r and xlc_r and no options:

    sh buildall.sh -x xlC_r -c xlc_r
  2. I get a link error regarding open and open64 on AIX 5.3 while linking against Berkeley DB.

    On AIX 5.3, you may see a link failure while building Berkeley DB XML against Berkeley DB 6.1.x with "open" or "open64" in the message. This may occur when trying to link dbxml_dump or dbxml_load.

    This can be worked around by adding this line to db-6.1.x/build_unix/db.h:

    #include <fcntl.h>

    It should be added near the top of the file, before the include of db.h. After this, rebuild Berkeley DB by changing to the directory db-6.1.x/build_unix and running "make clean; make; make install."

  3. 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.