> 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?

thank you.


>
> particulars:
>
> compiling looks like:
>
> gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
> -fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
> -Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_OS='"OpenBSD"' main.c
>
> and the dynamic library is compiled as:
>
> gcc -o ../lib/ht -m32 -shared -export-dynamic ht.o
>
> "ht" is the dynamically loaded library.
>
> what am i missing here? this is the first time i'm dealing with
> dlopen() and company so please be gentle.
>
> thank you to all who responded so far.
>
> /e

Reply via email to