CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/share/doc/db4-devel-4.7.25/ref/build_unix/
Upload File :
Current File : //proc/2/root/usr/share/doc/db4-devel-4.7.25/ref/build_unix/aix.html

<!--$Id: aix.so,v 11.27 2005/04/06 01:45:22 mjc Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: AIX</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td>
<td align=right><a href="../build_unix/notes.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/freebsd.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>AIX</b></p>
<ol>
<p><li><b>I can't compile and run multithreaded applications.</b>
<p>Special compile-time flags are required when compiling threaded
applications on AIX.  If you are compiling a threaded application, you
must compile with the _THREAD_SAFE flag and load with specific
libraries; for example, "-lc_r".  Specifying the compiler name with a
trailing "_r" usually performs the right actions for the system.</p>
<blockquote><pre>xlc_r ...
cc -D_THREAD_SAFE -lc_r ...</pre></blockquote>
<p>The Berkeley DB library will automatically build with the correct options.</p>
<hr size=1 noshade>
<p><li><b>I can't run using the <a href="../../api_c/env_open.html#DB_SYSTEM_MEM">DB_SYSTEM_MEM</a> option to
<a href="../../api_c/env_open.html">DB_ENV-&gt;open</a>.</b>
<p>AIX 4.1 allows applications to map only 10 system shared memory
segments.  In AIX 4.3, this has been raised to 256K segments, but only
if you set the environment variable "export EXTSHM=ON".</p>
<hr size=1 noshade>
<p><li><b>On AIX 4.3.2 (or before) I see duplicate symbol warnings when
building the C++ shared library and when linking applications.</b>
<p>We are aware of some duplicate symbol warnings with this platform,
but they do not appear to affect the correct operation of applications.</p>
<hr size=1 noshade>
<p><li><b>On AIX 4.3.3 I see undefined symbols for DbEnv::set_error_stream,
Db::set_error_stream or DbEnv::verify when linking C++ applications.
(These undefined symbols also appear when building the Berkeley DB C++ example
applications).</b>
<p>By default, Berkeley DB is built with _LARGE_FILES set to 1 to support the
creation of "large" database files.  However, this also affects how
standard classes, like iostream, are named internally.  When building
your application, use a "-D_LARGE_FILES=1" compilation option, or insert
"#define _LARGE_FILES 1" before any #include statements.</p>
<hr size=1 noshade>
<p><li><b>I can't create database files larger than 1GB on AIX.</b>
<p>If you're running on AIX 4.1 or earlier, try changing the source code
for <b>os/os_open.c</b> to always specify the <b>O_LARGEFILE</b>
flag to the <b>open</b>(2) system call, and recompile Berkeley DB from
scratch.</p>
<p>Also, the documentation for the IBM Visual Age compiler states that it
does not not support the 64-bit filesystem APIs necessary for creating
large files; the ibmcxx product must be used instead.  We have not heard
whether the GNU gcc compiler supports the 64-bit APIs or not.</p>
<p>Finally, to create large files under AIX, the filesystem has to be
configured to support large files and the system wide user hard-limit
for file sizes has to be greater than 1GB.</p>
<hr size=1 noshade>
<p><li><b>I see errors about "open64" when building Berkeley DB applications.</b>
<p>System include files (most commonly fcntl.h) in some releases of AIX,
HP-UX and Solaris redefine "open" when large-file support is enabled for
applications.  This causes problems when compiling applications because
"open" is a method in the Berkeley DB APIs.  To work around this problem:
<ol>
<p><li>Avoid including the problematical system include files in source code
files which also include Berkeley DB include files and call into the Berkeley DB
API.
<li>Before building Berkeley DB, modify the generated include file db.h to itself
include the problematical system include files.
<li>Turn off Berkeley DB large-file support by specifying the
<a href="../../ref/build_unix/conf.html#--disable-largefile">--disable-largefile</a> configuration option and rebuilding.
</ol></p>
</ol>
<table width="100%"><tr><td><br></td><td align=right><a href="../build_unix/notes.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/freebsd.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>

Copyright 2K16 - 2K18 Indonesian Hacker Rulez