Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - The Dangers of APR: (8 Items)
   
The Dangers of APR  
Here's a little gotcha that I think I understand.
I tried running "svn up ..." and got an error:
Could not find library libaprutil-0.so.0

I took a look in /usr/pkg/lib and found libaprutil-1.so.0, but not the libaprutil-0.so.0.   I've recently installed the 
package APR, which is version 1.2.9, but I think that the svn that comes in the bootstrap needs a different version.   
Just a guess here.

I'm trying to build and install svn to see if that fixes the problem.
Re: The Dangers of APR  
It gets worse.  svn fails to build with the error

===> Installing for apr-0.9.16.2.0.61
ERROR:apr-1.2.9 is already installed -perhaps an older version?


It would seem that this tree wants 0.9.16 for svn, but 1.2.9 for apache.
I thought that wasn't supposed to happen?

Re: The Dangers of APR  
On Tue, Oct 02, 2007 at 04:37:57PM -0400, Mitchell Schoenbrun wrote:
> It gets worse.  svn fails to build with the error
> 
> ===> Installing for apr-0.9.16.2.0.61
> ERROR:apr-1.2.9 is already installed -perhaps an older version?
> 
> 
> It would seem that this tree wants 0.9.16 for svn, but 1.2.9 for apache.
> I thought that wasn't supposed to happen?

It looks to me like subversion and apache2 want devel/apr0.
Did you install devel/apr?  Try 'pkg_delete apr' then
building svn, apache2.

-seanb
Re: The Dangers of APR  
>> It would seem that this tree wants 0.9.16 for svn, but 1.2.9 for apache.
> I thought that wasn't supposed to happen?

I don't think that's it.   I apache wants the later version and svn wants the newer version.   Thus if I install apache,
 svn no longer works.

The plot thinkens.   I uninstalled apr, which required that I uninstall apache and one other package first.   Then I 
tried to make svn.
It remake the version of apr that it liked, but there
appears to be some additional problems with svn.
While linking libsvn_ra_dav-1.so, a number of ne_*() routines from
neon were not found.   But neon is installed?

I tried to get svn back now by running bootstrap.
This make failed because bootstrap was already installed.
I tried to uninstall bootstrap, and learned that
"bootstraped is marked as not for deletion".

So I'm down to the bottom.   I'm going to delete all
and start from scratch.   





Re: The Dangers of APR  
I think you can do a "bootstrap cleanup".

Not sure. Try "bootstrap --help" and see. 
Re: The Dangers of APR  
> I think you can do a "bootstrap cleanup".
> 
> Not sure. Try "bootstrap --help" and see. 


No such luck.   I've started from scratch and I learned that pkgsrc doesn't like symbolic links.   I had something like 
this:

ln -s /fs/hd1-qnx/usr/pkg /usr/pkg

When building my first package, tar had a message something like:
/usr/pkg/blah-blah resolves to /fs/hd1-qnx/usr/pkg/blah blah, attempt to write outside of current working directory 
aborted.

Soooo, I gave up on that.   Now in my second attempt all seems to be going smoother.   I'm still not sure what to do 
about the snv/Apache/apr problem.
Re: The Dangers of APR  
On Wed, Oct 03, 2007 at 09:39:55PM -0400, Mitchell Schoenbrun wrote:
> > I think you can do a "bootstrap cleanup".
> > 
> > Not sure. Try "bootstrap --help" and see. 
> 
> 
> No such luck.   I've started from scratch and I learned that pkgsrc
> doesn't like symbolic links.   I had something like this:
> 
> ln -s /fs/hd1-qnx/usr/pkg /usr/pkg
> 
> When building my first package, tar had a message something like:
> /usr/pkg/blah-blah resolves to /fs/hd1-qnx/usr/pkg/blah blah, attempt to
> write outside of current working directory aborted.
> 
> Soooo, I gave up on that.   Now in my second attempt all seems to be
> going smoother.   I'm still not sure what to do about the snv/Apache/apr
> problem.

Are you trying to install devel/apr or devel/apr0, apache or apache2?
AFAICT, svn and apache2 both want apr0 so if you stay away from apr
and apache things should be OK?

-seanb
Re: The Dangers of APR  
the Makefile in Apache22 decides to use either apr or apr0 based on some question I don't understand.

On my system, it has always installed apr, not apr0.
I'm a little confused about this, as apr and apr0 are both for the same package "apr" but different versions.  Can they 
both exist together?
I'm pretty sure I saw the installation of one, remove the other.