File: freebsd.html

package info (click to toggle)
evolution-data-server 1.0.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 39,504 kB
  • ctags: 26,423
  • sloc: ansic: 175,347; tcl: 30,499; sh: 20,699; perl: 11,320; xml: 9,039; java: 7,653; cpp: 6,029; makefile: 4,866; awk: 1,338; yacc: 1,103; sed: 772; cs: 505; lex: 134; asm: 14
file content (59 lines) | stat: -rw-r--r-- 3,023 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!--$Id: freebsd.html,v 1.1.1.1 2003/11/20 22:14:10 toshok Exp $-->
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
<!--All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: FreeBSD</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,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><h3><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX systems</dl></h3></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>
</td></tr></table>
<p>
<h1 align=center>FreeBSD</h1>
<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 FreeBSD.  If you are compiling a threaded application,
you must compile with the _THREAD_SAFE and -pthread flags:
<p><blockquote><pre>cc -D_THREAD_SAFE -pthread ...</pre></blockquote>
<p>The Berkeley DB library will automatically build with the correct options.
<hr size=1 noshade>
<p><li><b>I get occasional failures when running RPC-based programs under
FreeBSD clients.</b>
<p>There is a known bug in the XDR implementation in the FreeBSD C library
from version 2.2 up to version 4.0-RELEASE, that causes certain-sized
messages to fail and return a zero-filled reply to the client.  A bug
report (#16028) has been filed with FreeBSD.  The following patch is the
FreeBSD fix:
<p><blockquote><pre>*** /usr/src/lib/libc/xdr/xdr_rec.c.orig	Mon Jan 10 10:20:42 2000
--- /usr/src/lib/libc/xdr/xdr_rec.c	Wed Jan 19 10:53:45 2000
***************
*** 558,564 ****
  	 * but we don't have any way to be certain that they aren't
  	 * what the client actually intended to send us.
  	 */
! 	if ((header & (~LAST_FRAG)) == 0)
  		return(FALSE);
  	rstrm-&gt;fbtbc = header & (~LAST_FRAG);
  	return (TRUE);
--- 558,564 ----
  	 * but we don't have any way to be certain that they aren't
  	 * what the client actually intended to send us.
  	 */
! 	if (header == 0)
  		return(FALSE);
  	rstrm-&gt;fbtbc = header & (~LAST_FRAG);
  	return (TRUE);
</pre></blockquote>
</ol>
<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>
</td></tr></table>
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
</body>
</html>