| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Compile-time configuration</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" /> |
| 10 | <link rel="up" href="debug.html" title="Chapter 3. Debugging Applications" /> |
| 11 | <link rel="prev" href="debug.html" title="Chapter 3. Debugging Applications" /> |
| 12 | <link rel="next" href="debug_runtime.html" title="Run-time error information" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Compile-time configuration</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="debug.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 3. |
| 26 | Debugging Applications |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="debug_runtime.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="debug_compile"></a>Compile-time configuration</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>There are three compile-time configuration options that assist in |
| 42 | debugging Berkeley DB and Berkeley DB applications:</p> |
| 43 | <div class="variablelist"> |
| 44 | <dl> |
| 45 | <dt> |
| 46 | <span class="term"> |
| 47 | <a class="link" href="build_unix_conf.html#build_unix_conf.--enable-debug">--enable-debug</a> |
| 48 | </span> |
| 49 | </dt> |
| 50 | <dd>If you want to build Berkeley DB with <span class="bold"><strong>-g</strong></span> as the C and C++ compiler |
| 51 | flag, enter --enable-debug as an argument to configure. This will create |
| 52 | Berkeley DB with debugging symbols, as well as load various Berkeley DB routines |
| 53 | that can be called directly from a debugger to display database page |
| 54 | content, cursor queues, and so forth. (Note that the <span class="bold"><strong>-O</strong></span> |
| 55 | optimization flag will still be specified. To compile with only the |
| 56 | <span class="bold"><strong>-g</strong></span>, explicitly set the <code class="literal">CFLAGS</code> environment variable |
| 57 | before configuring.)</dd> |
| 58 | <dt> |
| 59 | <span class="term"> |
| 60 | <a class="link" href="build_unix_conf.html#build_unix_conf.--enable-diagnostic">--enable-diagnostic</a> |
| 61 | </span> |
| 62 | </dt> |
| 63 | <dd>If you want to build Berkeley DB with debugging run-time sanity checks and with |
| 64 | DIAGNOSTIC #defined during compilation, enter --enable-diagnostic as an |
| 65 | argument to configure. This will cause a number of special checks to be |
| 66 | performed when Berkeley DB is running. This flag should not be defined when |
| 67 | configuring to build production binaries because it degrades performance.</dd> |
| 68 | <dt> |
| 69 | <span class="term"> |
| 70 | <a class="link" href="build_unix_conf.html#build_unix_conf.--enable-umrw">--enable-umrw</a> |
| 71 | </span> |
| 72 | </dt> |
| 73 | <dd>When compiling Berkeley DB for use in run-time memory consistency checkers |
| 74 | (in particular, programs that look for reads and writes of uninitialized |
| 75 | memory), use --enable-umrw as an argument to configure. This |
| 76 | guarantees, among other things, that Berkeley DB will completely initialize |
| 77 | allocated pages rather than initializing only the minimum necessary |
| 78 | amount.</dd> |
| 79 | </dl> |
| 80 | </div> |
| 81 | </div> |
| 82 | <div class="navfooter"> |
| 83 | <hr /> |
| 84 | <table width="100%" summary="Navigation footer"> |
| 85 | <tr> |
| 86 | <td width="40%" align="left"><a accesskey="p" href="debug.html">Prev</a> </td> |
| 87 | <td width="20%" align="center"> |
| 88 | <a accesskey="u" href="debug.html">Up</a> |
| 89 | </td> |
| 90 | <td width="40%" align="right"> <a accesskey="n" href="debug_runtime.html">Next</a></td> |
| 91 | </tr> |
| 92 | <tr> |
| 93 | <td width="40%" align="left" valign="top">Chapter 3. |
| 94 | Debugging Applications |
| 95 | </td> |
| 96 | <td width="20%" align="center"> |
| 97 | <a accesskey="h" href="index.html">Home</a> |
| 98 | </td> |
| 99 | <td width="40%" align="right" valign="top"> Run-time error information</td> |
| 100 | </tr> |
| 101 | </table> |
| 102 | </div> |
| 103 | </body> |
| 104 | </html> |