Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Edwin Eyan Moragas (eyanyndy.org)
Date: Wed Aug 11 2010 - 08:42:18 CDT
> 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".
> 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.