You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Cliff Woolley <jw...@virginia.edu> on 2002/06/10 17:59:13 UTC

Re: [APR PATCH] Bootstrapping problem on Mac OS X

On Mon, 10 Jun 2002, Pier Fumagalli wrote:

> Now, the question is _why_ that thing is called and why libsvn_ra_local.so
> does not exist (if shared is disabled, it should be compiled in, right?)...

I was under the impression that it was one of those things of SVN
attempting to load all extensions (with no preconceived notions of which
ones exist and which ones don't).  Right?

--Cliff


Re: [APR PATCH] Bootstrapping problem on Mac OS X

Posted by Greg Marr <gr...@alum.wpi.edu>.
At 12:22 PM 06/10/2002, Pier Fumagalli wrote:
>My code should better check for errors :) that's for sure, but at 
>the same time, they shouldn't be trying to load libraries randomly 
>if the files do not exist :) :) :)

On Windows, LoadLibrary will search all directories in PATH, the 
current working directory, and the directory where the executable is 
located looking for a library if no path is specified, so they don't 
necessarily have to be in any given directory to be loaded.  This is 
the "recommended" way to search for a library on Windows, you ask the 
OS to load it.  If it fails, it doesn't exist, or just can't be found.

-- 
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


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

Re: [APR PATCH] Bootstrapping problem on Mac OS X

Posted by Greg Marr <gr...@alum.wpi.edu>.
At 12:22 PM 06/10/2002, Pier Fumagalli wrote:
>My code should better check for errors :) that's for sure, but at 
>the same time, they shouldn't be trying to load libraries randomly 
>if the files do not exist :) :) :)

On Windows, LoadLibrary will search all directories in PATH, the 
current working directory, and the directory where the executable is 
located looking for a library if no path is specified, so they don't 
necessarily have to be in any given directory to be loaded.  This is 
the "recommended" way to search for a library on Windows, you ask the 
OS to load it.  If it fails, it doesn't exist, or just can't be found.

-- 
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


Re: [APR PATCH] Bootstrapping problem on Mac OS X

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Cliff Woolley" <jw...@virginia.edu> wrote:

> On Mon, 10 Jun 2002, Pier Fumagalli wrote:
> 
>> Now, the question is _why_ that thing is called and why libsvn_ra_local.so
>> does not exist (if shared is disabled, it should be compiled in, right?)...
> 
> I was under the impression that it was one of those things of SVN
> attempting to load all extensions (with no preconceived notions of which
> ones exist and which ones don't).  Right?

Right... That's what I assume as well... But at the same time, that's
exactly what Cyrus-SASL does, but he reads its "plugins" directory first,
and then issues a "dlopen()" then on each file it finds over in that
directory...

My code should better check for errors :) that's for sure, but at the same
time, they shouldn't be trying to load libraries randomly if the files do
not exist :) :) :)

    Pier


Re: [APR PATCH] Bootstrapping problem on Mac OS X

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Cliff Woolley" <jw...@virginia.edu> wrote:

> On Mon, 10 Jun 2002, Pier Fumagalli wrote:
> 
>> Now, the question is _why_ that thing is called and why libsvn_ra_local.so
>> does not exist (if shared is disabled, it should be compiled in, right?)...
> 
> I was under the impression that it was one of those things of SVN
> attempting to load all extensions (with no preconceived notions of which
> ones exist and which ones don't).  Right?

Right... That's what I assume as well... But at the same time, that's
exactly what Cyrus-SASL does, but he reads its "plugins" directory first,
and then issues a "dlopen()" then on each file it finds over in that
directory...

My code should better check for errors :) that's for sure, but at the same
time, they shouldn't be trying to load libraries randomly if the files do
not exist :) :) :)

    Pier


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