On Fri, Aug 1, 2008 at 6:57 PM, Paul Collins <[EMAIL PROTECTED]> wrote:
> "Kevin Coffman" <[EMAIL PROTECTED]> writes:
>> On Fri, Aug 1, 2008 at 9:41 AM, Paul Collins <[EMAIL PROTECTED]> wrote:
>>> "Kevin Coffman" <[EMAIL PROTECTED]> writes:
>>>
>>>> Did you run ldconfig? I was trying to find the right thing to force
>>>> that, but from what I saw, when you install in /usr/local/lib, libtool
>>>> knows better. If anyone has the answer on that, let me know.
>>>
>>> The convention on Debian seems to be to install plugins as
>>> /usr/lib/${packagename}/${plugin}.so and dlopen them with an absolute path.
>>
>> OK, I'll update the code and put out a -0.22 ASAP, but it might not be
>> for a few days.
>
> Having had some sleep, I realized a quicker fix is to just change the
> dlopen calls to do e.g. dlopen("libfoo.so.0", ...). This would avoid
> any tussling with libtool and the autogar, which is always a plus.
>
> I've tried that out here and it works nicely. Patch below.
>
>> BTW, this is the kind of comments I was looking for since putting the
>> beta out in April, but received none. I guess I was asking in the
>> wrong places. :-/
>
> You may have to just be bold and trick people into testing your betas by
> calling them releases. I'm happy to complain about anything that ends
> up in Debian unstable, but I tend not to grab stuff from upstream much.
>
>
> --- libnfsidmap-0.21/libnfsidmap.c~ 2008-08-02 10:52:00.289845221 +1200
> +++ libnfsidmap-0.21/libnfsidmap.c 2008-08-02 10:47:50.647889312 +1200
> @@ -101,7 +101,7 @@
> char plgname[128];
> int ret = 0;
>
> - snprintf(plgname, sizeof(plgname), "%s%s.so", PLUGIN_PREFIX, method);
> + snprintf(plgname, sizeof(plgname), "%s%s.so.0", PLUGIN_PREFIX,
> method);
>
> dl = dlopen(plgname, RTLD_NOW | RTLD_LOCAL);
> if (dl == NULL) {
>
>
Getting back to this. I'm curious if there is a specific reason why
the *.so symlink was not there? Adding the ".0" shouldn't be
necessary. But there may be a reason for not including the .so
symlink that I am not aware of.
My default install in /usr/local/lib shows:
lrwxrwxrwx 1 root root 29 2008-07-30 16:59
/usr/local/lib/libnfsidmap_nsswitch.so ->
libnfsidmap_nsswitch.so.0.0.0
lrwxrwxrwx 1 root root 29 2008-07-30 16:59
/usr/local/lib/libnfsidmap_nsswitch.so.0 ->
libnfsidmap_nsswitch.so.0.0.0
-rwxr-xr-x 1 root root 17141 2008-07-30 16:59
/usr/local/lib/libnfsidmap_nsswitch.so.0.0.0
Thanks,
K.C.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]