On Wed, Aug 11, 2010 at 6:54 AM, Edwin Eyan Moragas <eyan@yndy.org> wrote:
quoted text > Hi David,
>
> CCing misc
>
> On Wed, Aug 11, 2010 at 9:50 PM, David Coppa <dcoppa@gmail.com> wrote:
>> On Wed, Aug 11, 2010 at 3:42 PM, Edwin Eyan Moragas <eyan@yndy.org> wrote:
>>>> i'm trying to compile picoLisp on obsd 4.7.
>>>>
>>>> as suggest i passed an absolute path to dlopen(). dlerror() says
>>>> "File not found".
>>>
>>> i am stupid. the buffer used for the param to dlopen() was truncated.
>>> expanding it and passing the full absolute path, dlerror() returns
>>> "Cannot load specified object".
>>>
>>> clues, pointers?
>>
>> You can help us by posting the code that does the dlopen()
>
> if (!(h = dlopen("/home/eyan/src/lib/ht", RTLD_LAZY |
> RTLD_GLOBAL)) || !(h = dlsym(h,p))) {
> printf("%s\n", dlerror());
> printf("%s\n", buf);
> return NO;
> }
That error indicates that dependent libs of that lib aren't able to get
loaded.
Try setting LD_DEBUG and see if that helps trace down the problem.
--patrick