003 File Manager
Current Path:
/usr/local/share/doc/db5/installation
usr
/
local
/
share
/
doc
/
db5
/
installation
/
π
..
π
BDB_Installation.pdf
(942.78 KB)
π
arch_bigpic.gif
(2.53 KB)
π
arch_smallpic.gif
(1.58 KB)
π
build_android_config.html
(4.9 KB)
π
build_android_intro.html
(12.27 KB)
π
build_android_jdbc.html
(15.97 KB)
π
build_unix.html
(12.24 KB)
π
build_unix_aix.html
(7.99 KB)
π
build_unix_conf.html
(27.32 KB)
π
build_unix_db_nosync.html
(3.29 KB)
π
build_unix_encrypt.html
(3.55 KB)
π
build_unix_flags.html
(5.23 KB)
π
build_unix_freebsd.html
(3.57 KB)
π
build_unix_install.html
(6.52 KB)
π
build_unix_iphone.html
(4.4 KB)
π
build_unix_irix.html
(3.03 KB)
π
build_unix_linux.html
(3.9 KB)
π
build_unix_macosx.html
(4.55 KB)
π
build_unix_notes.html
(12.13 KB)
π
build_unix_qnx.html
(6.7 KB)
π
build_unix_sco.html
(2.84 KB)
π
build_unix_shlib.html
(8.34 KB)
π
build_unix_small.html
(9.67 KB)
π
build_unix_solaris.html
(8.4 KB)
π
build_unix_sql.html
(29.97 KB)
π
build_unix_stacksize.html
(2.98 KB)
π
build_unix_sunos.html
(3.29 KB)
π
build_unix_test.html
(5.94 KB)
π
build_vxworks.html
(6.73 KB)
π
build_vxworks_faq.html
(11.98 KB)
π
build_vxworks_notes.html
(6.67 KB)
π
build_win.html
(15.88 KB)
π
build_win_csharp.html
(5.09 KB)
π
build_win_faq.html
(7.65 KB)
π
build_win_java.html
(5.43 KB)
π
build_win_notes.html
(5.45 KB)
π
build_win_small.html
(4.76 KB)
π
build_win_sql.html
(24.89 KB)
π
build_win_tcl.html
(6.4 KB)
π
build_win_test.html
(9.53 KB)
π
build_wince.html
(15.36 KB)
π
build_wince_faq.html
(6.56 KB)
π
build_wince_notes.html
(4.77 KB)
π
ch01s02.html
(5.78 KB)
π
changelog_4_8.html
(52.46 KB)
π
changelog_5_0.html
(44.98 KB)
π
changelog_5_1.html
(37.5 KB)
π
changelog_5_2.html
(37.49 KB)
π
changelog_5_3.html
(33.8 KB)
π
cross_compile_unix.html
(5.35 KB)
π
debug.html
(8.44 KB)
π
debug_compile.html
(4.67 KB)
π
debug_printlog.html
(20.75 KB)
π
debug_runtime.html
(4.67 KB)
π
gettingStarted.css
(1.13 KB)
π
index.html
(64.07 KB)
π
install.html
(16.79 KB)
π
install_multiple.html
(5.19 KB)
π
introduction.html
(6.29 KB)
π
moreinfo.html
(7 KB)
π
preface.html
(4.28 KB)
π
test.html
(9.25 KB)
π
test_faq.html
(2.75 KB)
π
upgrade_11gr2_51_dpl_recompile.html
(3.14 KB)
π
upgrade_11gr2_51_mod_db4_unsupp.html
(2.78 KB)
π
upgrade_11gr2_51_sqlite_ver.html
(2.95 KB)
π
upgrade_11gr2_51_src_reorg.html
(3.04 KB)
π
upgrade_11gr2_52_bit_cmp_win.html
(3.18 KB)
π
upgrade_11gr2_52_dyn_env.html
(7.17 KB)
π
upgrade_11gr2_52_excl_txn_sql.html
(3.21 KB)
π
upgrade_11gr2_52_grp_mbr.html
(13.25 KB)
π
upgrade_11gr2_52_heap.html
(5.54 KB)
π
upgrade_11gr2_52_hot_backup.html
(3.41 KB)
π
upgrade_11gr2_52_mvcc_sql.html
(4.19 KB)
π
upgrade_11gr2_52_rep_2site_strict.html
(3.22 KB)
π
upgrade_11gr2_52_rep_dbt_readonly.html
(3.84 KB)
π
upgrade_11gr2_52_rep_sql.html
(5.21 KB)
π
upgrade_11gr2_52_repmgr_channels.html
(5.35 KB)
π
upgrade_11gr2_52_seq_sql.html
(4.87 KB)
π
upgrade_11gr2_52_sqlite_ver.html
(3.16 KB)
π
upgrade_11gr2_52_xa.html
(6.11 KB)
π
upgrade_11gr2_53_build_windows.html
(3.23 KB)
π
upgrade_11gr2_53_conn_status.html
(5.19 KB)
π
upgrade_11gr2_53_excl.html
(4.33 KB)
π
upgrade_11gr2_53_heap_regionsize.html
(4.04 KB)
π
upgrade_11gr2_53_hotbackup.html
(7.97 KB)
π
upgrade_11gr2_53_jdbc.html
(2.94 KB)
π
upgrade_11gr2_53_meta_dir.html
(4.32 KB)
π
upgrade_11gr2_53_sql_build.html
(3.41 KB)
π
upgrade_11gr2_53_sql_pragma.html
(4.23 KB)
π
upgrade_11gr2_53_sql_rep.html
(4.93 KB)
π
upgrade_11gr2_53_xa_mvcc.html
(3.23 KB)
π
upgrade_11gr2_autoinit.html
(3.23 KB)
π
upgrade_11gr2_dbsqlcodegen.html
(3.01 KB)
π
upgrade_11gr2_remsupp.html
(2.95 KB)
π
upgrade_11gr2_repmgr.html
(3.93 KB)
π
upgrade_11gr2_toc.html
(5.68 KB)
π
upgrade_4_8_disk.html
(3.16 KB)
π
upgrade_4_8_dpl.html
(4.1 KB)
π
upgrade_4_8_fcntl.html
(2.96 KB)
π
upgrade_4_8_mpool.html
(3.77 KB)
π
upgrade_4_8_toc.html
(9.92 KB)
π
upgrade_51_toc.html
(9.31 KB)
π
upgrade_52_toc.html
(14.82 KB)
π
upgrade_53_toc.html
(12.24 KB)
π
win_additional_options.html
(5.46 KB)
π
win_build64.html
(4.71 KB)
π
win_build_cxx.html
(2.58 KB)
π
win_build_cygwin.html
(2.73 KB)
π
win_build_dist_dll.html
(4.28 KB)
π
win_build_stl.html
(3.3 KB)
Editing: build_unix_solaris.html
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Solaris</title> <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" /> <link rel="up" href="build_unix.html" title="ChapterΒ 7.Β Building Berkeley DB for UNIX/POSIX" /> <link rel="prev" href="build_unix_sco.html" title="SCO" /> <link rel="next" href="build_unix_sunos.html" title="SunOS" /> </head> <body> <div xmlns="" class="navheader"> <div class="libver"> <p>Library Version 11.2.5.3</p> </div> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Solaris</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="build_unix_sco.html">Prev</a>Β </td> <th width="60%" align="center">ChapterΒ 7.Β Building Berkeley DB for UNIX/POSIX </th> <td width="20%" align="right">Β <a accesskey="n" href="build_unix_sunos.html">Next</a></td> </tr> </table> <hr /> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="build_unix_solaris"></a>Solaris</h2> </div> </div> </div> <div class="orderedlist"> <ol type="1"> <li> <span class="bold"> <strong>I can't compile and run multithreaded applications.</strong> </span> <p>Special compile-time flags and additional libraries are required when compiling threaded applications on Solaris. If you are compiling a threaded application, you must compile with the D_REENTRANT flag and link with the libpthread.a or libthread.a libraries:</p> <pre class="programlisting">cc -mt ... cc -D_REENTRANT ... -lthread cc -D_REENTRANT ... -lpthread</pre> <p>The Berkeley DB library will automatically build with the correct options.</p> </li> <li> <span class="bold"> <strong>I've installed gcc on my Solaris system, but configuration fails because the compiler doesn't work.</strong> </span> <p>On some versions of Solaris, there is a cc executable in the user's path, but all it does is display an error message and fail:</p> <pre class="programlisting">% which cc /usr/ucb/cc % cc /usr/ucb/cc: language optional software package not installed</pre> <p>Because Berkeley DB always uses the native compiler in preference to gcc, this is a fatal error. If the error message you are seeing is the following, then this may be the problem:</p> <pre class="programlisting">checking whether the C compiler (cc -O) works... no configure: error: installation or configuration problem: C compiler cannot create executables.</pre> <p>The simplest workaround is to set your CC environment variable to the system compiler and reconfigure; for example:</p> <pre class="programlisting">env CC=gcc ../dist/configure</pre> <p>If you are using the --configure-cxx option, you may also want to specify a C++ compiler, for example the following:</p> <pre class="programlisting">env CC=gcc CCC=g++ ../dist/configure</pre> </li> <li> <span class="bold"> <strong>I see the error "libc internal error: _rmutex_unlock: rmutex not held", followed by a core dump when running threaded or JAVA programs.</strong> </span> <p>This is a known bug in Solaris 2.5 and it is fixed by Sun patch 103187-25.</p> </li> <li> <span class="bold"> <strong>I see error reports of nonexistent files, corrupted metadata pages and core dumps.</strong> </span> <p>Solaris 7 contains a bug in the threading libraries (-lpthread, -lthread), which causes the wrong version of the pwrite routine to be linked into the application if the thread library is linked in after the C library. The result will be that the pwrite function is called rather than the pwrite64. To work around the problem, use an explicit link order when creating your application.</p> <p>Sun Microsystems is tracking this problem with Bug Id's 4291109 and 4267207, and patch 106980-09 to Solaris 7 fixes the problem:</p> <pre class="programlisting">Bug Id: 4291109 Duplicate of: 4267207 Category: library Subcategory: libthread State: closed Synopsis: pwrite64 mapped to pwrite Description: When libthread is linked after libc, there is a table of functions in libthread that gets "wired into" libc via _libc_threads_interface(). The table in libthread is wrong in both Solaris 7 and on28_35 for the TI_PWRITE64 row (see near the end).</pre> </li> <li> <span class="bold"> <strong>I see corrupted databases when doing hot backups or creating a hot failover archive.</strong> </span> <p>The Solaris cp utility is implemented using the mmap system call, and so writes are not blocked when it reads database pages. See <a href="../programmer_reference/transapp_reclimit.html" class="olink">Berkeley DB recoverability</a> for more information.</p> </li> <li> <span class="bold"> <strong>Performance is slow and the application is doing a lot of I/O to the disk on which the database environment's files are stored.</strong> </span> <p>By default, Solaris periodically flushes dirty blocks from memory-mapped files to the backing filesystem. This includes the Berkeley DB database environment's shared memory regions and can affect Berkeley DB performance. Workarounds include creating the shared regions in system shared memory (<a href="../api_reference/C/envopen.html#envopen_DB_SYSTEM_MEM" class="olink">DB_SYSTEM_MEM</a>) or application private memory (<a href="../api_reference/C/envopen.html#envopen_DB_PRIVATE" class="olink">DB_PRIVATE</a>), or configuring Solaris to not flush memory-mapped pages. For more information, see the "Solaris Tunable Parameters Reference Manual: fsflush and Related Tunables".</p> </li> <li> <span class="bold"> <strong>I see errors about "open64" when building Berkeley DB applications.</strong> </span> <p>System include files (most commonly fcntl.h) in some releases of AIX 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: </p> <div class="orderedlist"> <ol type="a"> <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> <li>Before building Berkeley DB, modify the generated include file db.h to itself include the problematical system include files.</li> <li>Turn off Berkeley DB large-file support by specifying the <a class="link" href="build_unix_conf.html#build_unix_conf.--disable-largefile">--disable-largefile</a> configuration option and rebuilding.</li> </ol> </div> </li> </ol> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="build_unix_sco.html">Prev</a>Β </td> <td width="20%" align="center"> <a accesskey="u" href="build_unix.html">Up</a> </td> <td width="40%" align="right">Β <a accesskey="n" href="build_unix_sunos.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">SCOΒ </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top">Β SunOS</td> </tr> </table> </div> </body> </html>
Upload File
Create Folder