You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by azl <az...@azlweb.com> on 2003/05/08 20:22:22 UTC

redhat 9 berkley db errors

When using the subversion RPM from red hat 
(subversion_0.17.1-4503.0_i386.rpm) or latest the RPMs available on the 
website (subversion-0.21.0-5641.i386.rpm). I get the following error 
when trying to run "svnadmin create":
svnadmin create tester
svn: Berkeley DB error
svn: Berkeley DB error while creating environment for filesystem tester/db:
Function not implemented

Is there something that I'm missing?

Asiel


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by kf...@collab.net.
Ralph Loader <su...@ihug.co.nz> writes:
> FAQ item take 2.

Committed in revision 5862.  Thank you.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by Ralph Loader <su...@ihug.co.nz>.
Ok,

FAQ item take 2.

Ralph.

On Fri, 2003-05-09 at 11:31, kfogel@collab.net wrote:
> Happy to!
> 
> A couple of quick points:
> 
>    1. Your patch doesn't seem to apply to the latest FAQ.  Please
>       update and regenerate?
> 
>    2. Paths like "/extra/ralph/svn/www/project_faq.html" make it
>       *slightly* harder to apply the patch :-).  Not a big deal, but
>       if you post with paths relative to the top of the trunk of the
>       Subversion source tree, that helps us a bit.
> 

Index: www/project_faq.html
===================================================================
--- www/project_faq.html	(revision 5860)
+++ www/project_faq.html	(working copy)
@@ -80,6 +80,8 @@
 <li><a href="#db3db4">When I start Apache, mod_dav_svn complains about
     a "bad database version", that it found db-3.X, rather than
     db-4.X.</a></li>
+<li><a href="#redhat-db">I'm getting "Function not implemented" errors on
+    RedHat 9, and nothing works.  How do I fix this?</a></li>
 <p>
 
 <strong>References:</strong>
@@ -877,6 +879,35 @@
 
 <![CDATA[=========================================================]]>
 
+<h3><a name="redhat-db">I'm getting "Function not implemented" errors on RedHat
+9, and nothing works.  How do I fix this?</a></h3>
+
+<p>This is not really a problem with subversion, but it often effects
+subversion users.</p>
+
+<p>RedHat 9 ships with a Berkeley DB library that relies upon the kernel
+support for NPTL (the Native Posix Threads Library).</p>
+
+<p>The kernels that RedHat provides have this support built in, but if you
+compile your own kernel, then you may well not have the NPTL support.  If that
+is the case, then you will see errors like this:
+<blockquote><pre>
+svn: Berkeley DB error
+svn: Berkeley DB error while creating environment for filesystem tester/db:
+Function not implemented
+</pre></blockquote>
+This can be fixed in one of several ways:
+<ul>
+<li>Rebuild db4 for the kernel you're using.</li>
+<li>Use a RedHat 9 kernel.</li>
+<li>Apply the NPTL patches to the kernel you're using.</li>
+<li>Use a recent (2.5.x) kernel with the NPTL support included.</li>
+</ul>
+</p>
+
+<![CDATA[-----------------------------------------------------------]]>
+
+
 <p>
 <hr>
 <p>




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by kf...@collab.net.
Ralph Loader <su...@ihug.co.nz> writes:
> Here's a patch for the FAQ that explains this.  Does someone want to add
> it?

Happy to!

A couple of quick points:

   1. Your patch doesn't seem to apply to the latest FAQ.  Please
      update and regenerate?

   2. Paths like "/extra/ralph/svn/www/project_faq.html" make it
      *slightly* harder to apply the patch :-).  Not a big deal, but
      if you post with paths relative to the top of the trunk of the
      Subversion source tree, that helps us a bit.

-Karl


> Index: /extra/ralph/svn/www/project_faq.html
> ===================================================================
> --- /extra/ralph/svn/www/project_faq.html	(revision 5843)
> +++ /extra/ralph/svn/www/project_faq.html	(working copy)
> @@ -77,6 +77,8 @@
>  <li><a href="#revert">Why does the <tt>svn revert</tt> require an
>      explicit target?  Why is it not recursive by default?  These
>      behaviors differ from almost all the other subcommands.</a></li>
> +<li><a href="#redhat-db">I'm getting "Function not implemented" errors on
> +    RedHat 9, and nothing works.  How do I fix this?</a></li>
>  <p>
>  
>  <strong>References:</strong>
> @@ -856,9 +858,37 @@
>  forever.</p>
>  
>  
> -<![CDATA[=========================================================]]>
> +<!-- ========================================================= -->
>  
> +<h3><a name="redhat-db">I'm getting "Function not implemented" errors on RedHat
> +9, and nothing works.  How do I fix this?</a></h3>
>  
> +<p>This is not really a problem with subversion, but it often effects
> +subversion users.</p>
> +
> +<p>RedHat 9 ships with a Berkeley DB library that relies upon the kernel
> +support for NPTL (the Native Posix Threads Library).</p>
> +
> +<p>The kernels that RedHat provides have this support build in, but if you
> +compile your own kernel from the kernel.org sources, then you may well not have
> +the NPTL support.  If that is the case, then you will see errors like this:
> +<blockquote><pre>
> +svn: Berkeley DB error
> +svn: Berkeley DB error while creating environment for filesystem tester/db:
> +Function not implemented
> +</pre></blockquote>
> +This can be fixed in one of several ways:
> +<ul>
> +<li>Rebuild db4 for the kernel you're using.</li>
> +<li>Use a RedHat 9 kernel.</li>
> +<li>Apply the NPTL patches to the kernel you're using.</li>
> +<li>Use a recent (2.5.x) kernel with the NPTL support included.</li>
> +</ul>
> +</p>
> +
> +<![CDATA[-----------------------------------------------------------]]>
> +
> +
>  <p>
>  <hr>
>  <p>
> 
> 
> 
> 
> On Fri, 2003-05-09 at 10:40, azl wrote:
> > I'm running a 2.4.20 kernel.org kernel with no patches.
> > Is there a specific place I need to get NPTL from, and/or a specific 
> > version I need to have?
> > 
> > Also is this documented anywhere in the subversion docs that this is a 
> > requirement for subversion on linux?  If not should it be since this 
> > isn't something that comes in the standard kernel.org kernel?
> > 
> > Asiel
> > 
> > Ralph Loader wrote:
> > 
> > >Hi,
> > >
> > >What kernel are you running?
> > >
> > >I saw something similar due to running a kernel that doesn't have
> > >support for NPTL.
> > >
> > >Ralph.
> > >
> > >On Fri, 2003-05-09 at 08:22, azl wrote: 
> > >  
> > >
> > >>When using the subversion RPM from red hat 
> > >>(subversion_0.17.1-4503.0_i386.rpm) or latest the RPMs available on the 
> > >>website (subversion-0.21.0-5641.i386.rpm). I get the following error 
> > >>when trying to run "svnadmin create":
> > >>svnadmin create tester
> > >>svn: Berkeley DB error
> > >>svn: Berkeley DB error while creating environment for filesystem tester/db:
> > >>Function not implemented
> > >>
> > >>Is there something that I'm missing?
> > >>
> > >>Asiel
> > >>    
> > >>
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by Ralph Loader <su...@ihug.co.nz>.
Hi,

Here's a patch for the FAQ that explains this.  Does someone want to add
it?

Ralph.

Index: /extra/ralph/svn/www/project_faq.html
===================================================================
--- /extra/ralph/svn/www/project_faq.html	(revision 5843)
+++ /extra/ralph/svn/www/project_faq.html	(working copy)
@@ -77,6 +77,8 @@
 <li><a href="#revert">Why does the <tt>svn revert</tt> require an
     explicit target?  Why is it not recursive by default?  These
     behaviors differ from almost all the other subcommands.</a></li>
+<li><a href="#redhat-db">I'm getting "Function not implemented" errors on
+    RedHat 9, and nothing works.  How do I fix this?</a></li>
 <p>
 
 <strong>References:</strong>
@@ -856,9 +858,37 @@
 forever.</p>
 
 
-<![CDATA[=========================================================]]>
+<!-- ========================================================= -->
 
+<h3><a name="redhat-db">I'm getting "Function not implemented" errors on RedHat
+9, and nothing works.  How do I fix this?</a></h3>
 
+<p>This is not really a problem with subversion, but it often effects
+subversion users.</p>
+
+<p>RedHat 9 ships with a Berkeley DB library that relies upon the kernel
+support for NPTL (the Native Posix Threads Library).</p>
+
+<p>The kernels that RedHat provides have this support build in, but if you
+compile your own kernel from the kernel.org sources, then you may well not have
+the NPTL support.  If that is the case, then you will see errors like this:
+<blockquote><pre>
+svn: Berkeley DB error
+svn: Berkeley DB error while creating environment for filesystem tester/db:
+Function not implemented
+</pre></blockquote>
+This can be fixed in one of several ways:
+<ul>
+<li>Rebuild db4 for the kernel you're using.</li>
+<li>Use a RedHat 9 kernel.</li>
+<li>Apply the NPTL patches to the kernel you're using.</li>
+<li>Use a recent (2.5.x) kernel with the NPTL support included.</li>
+</ul>
+</p>
+
+<![CDATA[-----------------------------------------------------------]]>
+
+
 <p>
 <hr>
 <p>




On Fri, 2003-05-09 at 10:40, azl wrote:
> I'm running a 2.4.20 kernel.org kernel with no patches.
> Is there a specific place I need to get NPTL from, and/or a specific 
> version I need to have?
> 
> Also is this documented anywhere in the subversion docs that this is a 
> requirement for subversion on linux?  If not should it be since this 
> isn't something that comes in the standard kernel.org kernel?
> 
> Asiel
> 
> Ralph Loader wrote:
> 
> >Hi,
> >
> >What kernel are you running?
> >
> >I saw something similar due to running a kernel that doesn't have
> >support for NPTL.
> >
> >Ralph.
> >
> >On Fri, 2003-05-09 at 08:22, azl wrote: 
> >  
> >
> >>When using the subversion RPM from red hat 
> >>(subversion_0.17.1-4503.0_i386.rpm) or latest the RPMs available on the 
> >>website (subversion-0.21.0-5641.i386.rpm). I get the following error 
> >>when trying to run "svnadmin create":
> >>svnadmin create tester
> >>svn: Berkeley DB error
> >>svn: Berkeley DB error while creating environment for filesystem tester/db:
> >>Function not implemented
> >>
> >>Is there something that I'm missing?
> >>
> >>Asiel
> >>    
> >>
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by azl <az...@azlweb.com>.
I'm running a 2.4.20 kernel.org kernel with no patches.
Is there a specific place I need to get NPTL from, and/or a specific 
version I need to have?

Also is this documented anywhere in the subversion docs that this is a 
requirement for subversion on linux?  If not should it be since this 
isn't something that comes in the standard kernel.org kernel?

Asiel

Ralph Loader wrote:

>Hi,
>
>What kernel are you running?
>
>I saw something similar due to running a kernel that doesn't have
>support for NPTL.
>
>Ralph.
>
>On Fri, 2003-05-09 at 08:22, azl wrote: 
>  
>
>>When using the subversion RPM from red hat 
>>(subversion_0.17.1-4503.0_i386.rpm) or latest the RPMs available on the 
>>website (subversion-0.21.0-5641.i386.rpm). I get the following error 
>>when trying to run "svnadmin create":
>>svnadmin create tester
>>svn: Berkeley DB error
>>svn: Berkeley DB error while creating environment for filesystem tester/db:
>>Function not implemented
>>
>>Is there something that I'm missing?
>>
>>Asiel
>>    
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by Ralph Loader <su...@ihug.co.nz>.
Hi,

What kernel are you running?

I saw something similar due to running a kernel that doesn't have
support for NPTL.

Ralph.

On Fri, 2003-05-09 at 08:22, azl wrote: 
> When using the subversion RPM from red hat 
> (subversion_0.17.1-4503.0_i386.rpm) or latest the RPMs available on the 
> website (subversion-0.21.0-5641.i386.rpm). I get the following error 
> when trying to run "svnadmin create":
> svnadmin create tester
> svn: Berkeley DB error
> svn: Berkeley DB error while creating environment for filesystem tester/db:
> Function not implemented
> 
> Is there something that I'm missing?
> 
> Asiel
> 
> 
> --
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by azl <az...@azlweb.com>.
I rebooted with the standard red hat 9 kernel, and now get the following 
errors:

[root@azl azl]# uname -srvpo
Linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 GNU/Linux
[root@azl azl]# svnadmin create tester
svnadmin: relocation error: svnadmin: undefined symbol: svn_cmdline_init

This error occurs with any svn* command that I run.

Asiel

>This happens if you don't boot the right kernel - either use the kernel
>provided with Red Hat Linux 9, or recompile DB4 on your current kernel.  
>There are more details in this bug report:
>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=86381
>
>Regards,
>
>joe
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by "Edward S. Marshall" <es...@logic.net>.
On Fri, May 09, 2003 at 11:51:27AM +0200, Tobias Ringström wrote:
> Does anyone here know if RedHat plan to fix this, or if it is supposed 
> to be really hard to run vanilla kernels with RedHat 9? (If I had known 
> this before, I would not have "upgraded" my server.)

I don't think running "vanilla" kernals has ever been an explicitly
endorsed path for Red Hat users. NPTL is just the most visible thing
that's different; there's a lot of little things that have gone into
the RH kernels in the past that weren't in mainstream (I was bitten
by the software raid on-disk format differences in the 7.x line, and
I remember there being some differences between mainline and RH with
some of the autofs stuff).

If you *really* want a newer kernel release for some reason, grab the
latest SRPM from Red Hat, and work through applying the patches to a
newer kernel (or getting the newest version of those particular patches
instead). It's a long process trying to merge everything and get a
working kernel, but it's the most likely route to producing a reliable
system. Or, just stick with what Red Hat ships with releases and their
errata packages. ;-)

-- 
Edward S. Marshall <es...@logic.net>
http://esm.logic.net/

Felix qui potuit rerum cognoscere causas.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by Tobias Ringström <to...@ringstrom.mine.nu>.
Joe Orton wrote:

>This happens if you don't boot the right kernel - either use the kernel
>provided with Red Hat Linux 9, or recompile DB4 on your current kernel.  
>There are more details in this bug report:
>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=86381
>  
>
I'm currently using RedHat 9 with a custom kernel, and I can confirm 
that it works to recompile db4 from the source RPM, but I had to 
manually remove the --enable-posixmutexes stuff from the spec file 
first. I don't know why, but I had to do an "svnadmin recover" on my 
repositories before I could access them. I also had to recompile Apache 
HTTPD 2.0.45 since it too was using POSIX mutexes. I think I see other 
smaller problem as well, but I have not been able to isolate them yet. 
It may very well be totally unrelated problems.

Does anyone here know if RedHat plan to fix this, or if it is supposed 
to be really hard to run vanilla kernels with RedHat 9? (If I had known 
this before, I would not have "upgraded" my server.)

/Tobias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: redhat 9 berkley db errors

Posted by Joe Orton <jo...@redhat.com>.
On Thu, May 08, 2003 at 02:22:22PM -0600, azl wrote:
> When using the subversion RPM from red hat 
> (subversion_0.17.1-4503.0_i386.rpm) or latest the RPMs available on the 
> website (subversion-0.21.0-5641.i386.rpm). I get the following error 
> when trying to run "svnadmin create":
> svnadmin create tester
> svn: Berkeley DB error
> svn: Berkeley DB error while creating environment for filesystem tester/db:
> Function not implemented
> 
> Is there something that I'm missing?

This happens if you don't boot the right kernel - either use the kernel
provided with Red Hat Linux 9, or recompile DB4 on your current kernel.  
There are more details in this bug report:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=86381

Regards,

joe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org