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>FreeBSD</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 Programmer's Reference Guide" /> 10 <link rel="up" href="build_unix.html" title="Chapter��27.�� Building Berkeley DB for UNIX/POSIX" /> 11 <link rel="prev" href="build_unix_aix.html" title="AIX" /> 12 <link rel="next" href="build_unix_hpux.html" title="HP-UX" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">FreeBSD</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="build_unix_aix.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��27.�� 23 Building Berkeley DB for UNIX/POSIX 24 </th> 25 <td width="20%" align="right">��<a accesskey="n" href="build_unix_hpux.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="build_unix_freebsd"></a>FreeBSD</h2> 35 </div> 36 </div> 37 </div> 38 <div class="orderedlist"> 39 <ol type="1"> 40 <li> 41 <span class="bold"> 42 <strong>I can't compile and run multithreaded applications.</strong> 43 </span> 44 <p>Special compile-time flags are required when compiling threaded 45applications on FreeBSD. If you are compiling a threaded application, 46you must compile with the _THREAD_SAFE and -pthread flags:</p> 47 <pre class="programlisting">cc -D_THREAD_SAFE -pthread ...</pre> 48 <p>The Berkeley DB library will automatically build with the correct options.</p> 49 </li> 50 <li> 51 <span class="bold"> 52 <strong>I see fsync and close system call failures when accessing 53databases or log files on NFS-mounted filesystems.</strong> 54 </span> 55 <p>Some FreeBSD releases are known to return ENOLCK from fsync and close 56calls on NFS-mounted filesystems, even though the call has succeeded. 57The Berkeley DB code should be modified to ignore ENOLCK errors, or no Berkeley DB 58files should be placed on NFS-mounted filesystems on these systems.</p> 59 </li> 60 </ol> 61 </div> 62 </div> 63 <div class="navfooter"> 64 <hr /> 65 <table width="100%" summary="Navigation footer"> 66 <tr> 67 <td width="40%" align="left"><a accesskey="p" href="build_unix_aix.html">Prev</a>��</td> 68 <td width="20%" align="center"> 69 <a accesskey="u" href="build_unix.html">Up</a> 70 </td> 71 <td width="40%" align="right">��<a accesskey="n" href="build_unix_hpux.html">Next</a></td> 72 </tr> 73 <tr> 74 <td width="40%" align="left" valign="top">AIX��</td> 75 <td width="20%" align="center"> 76 <a accesskey="h" href="index.html">Home</a> 77 </td> 78 <td width="40%" align="right" valign="top">��HP-UX</td> 79 </tr> 80 </table> 81 </div> 82 </body> 83</html> 84