2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: FreeBSD</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<a name="2"><!--meow--></a>
13
<table width="100%"><tr valign=top>
14
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX systems</dl></h3></td>
15
<td align=right><a href="../../ref/build_unix/embedix.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/build_unix/hpux.html"><img src="../../images/next.gif" alt="Next"></a>
18
<h1 align=center>FreeBSD</h1>
20
<p><li><b>I can't compile and run multithreaded applications.</b>
21
<p>Special compile-time flags are required when compiling threaded
22
applications on FreeBSD. If you are compiling a threaded application,
23
you must compile with the _THREAD_SAFE and -pthread flags:
24
<p><blockquote><pre>cc -D_THREAD_SAFE -pthread ...</pre></blockquote>
25
<p>The Berkeley DB library will automatically build with the correct options.
27
<p><li><b>I get occasional failures when running RPC-based programs under
29
<p>There is a known bug in the XDR implementation in the FreeBSD C library
30
from version 2.2 up to version 4.0-RELEASE, that causes certain-sized
31
messages to fail and return a zero-filled reply to the client. A bug
32
report (#16028) has been filed with FreeBSD. The following patch is the
34
<p><blockquote><pre>*** /usr/src/lib/libc/xdr/xdr_rec.c.orig Mon Jan 10 10:20:42 2000
35
--- /usr/src/lib/libc/xdr/xdr_rec.c Wed Jan 19 10:53:45 2000
38
* but we don't have any way to be certain that they aren't
39
* what the client actually intended to send us.
41
! if ((header & (~LAST_FRAG)) == 0)
43
rstrm->fbtbc = header & (~LAST_FRAG);
46
* but we don't have any way to be certain that they aren't
47
* what the client actually intended to send us.
51
rstrm->fbtbc = header & (~LAST_FRAG);
55
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/build_unix/embedix.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/build_unix/hpux.html"><img src="../../images/next.gif" alt="Next"></a>
57
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>