Ask a Question related to UNIX Programming, Design and Development.
-
Tobias Oed #1
dlopen portability
Hello,
On linux there is an interface to dynamically link against shared libraries
using the functions,
void *dlopen(const char *filename, int flag);
const char *dlerror(void);
void *dlsym(void *handle, char *symbol);
int dlclose(void *handle);
Most of my man pages have a section CONFORMING TO at the end, but not the
one for these functions. There is an (unusual) section
ACKNOWLEDGEMENTS
The dlopen interface standard comes from Solaris.
I was wondering how portable this interface was to other unixen then
linux/solaris? xxBSD/True 64/HP-UX/etc.
Thanks!
Tobias.
--
unix [url]http://www.faqs.org/faqs/by-newsgroup/comp/comp.unix.programmer.html[/url]
clc [url]http://www.eskimo.com/~scs/C-faq/top.html[/url]
fclc (french): [url]http://www.isty-info.uvsq.fr/~rumeau/fclc/[/url]
Tobias Oed Guest
-
Portability
Hi all, I want to know from where can i start making a GUI, i don't think it is the same way as writing code, as u adviced me from "printing hello... -
PHP Portability Tip
"Michael Willcocks" <michael@metrogroup.com.au> wrote... Not a battery operated device. The things are called "pen drives", "thumb drives", "usb... -
dlopen problem
I'm trying to dlopen a library on AIX 5.1 but getting errno == ENOEXEC. dlerror() returns nothing. This library has other dependencies. If I... -
dlopen - calling functions other way round
I am using the dlopen,dlsym functions to load in an external module in my program which works fine. I can call functions inside the loaded module... -
dlopen() and shared objects
I created a shared object - as others before on AIX - and wanted it to be used from Tcl/Tk at runtime via dlopen(). But what worked for me on Linux,... -
Bjorn Reese #2
Re: dlopen portability
Tobias Oed wrote:
The dlopen interfaces are part of the SUSv2 (aka UNIX98) standard.> I was wondering how portable this interface was to other unixen then
> linux/solaris? xxBSD/True 64/HP-UX/etc.
It is implemented on many Unices that predate this standard.
Bjorn Reese Guest
-
phil-news-nospam@ipal.net #3
Re: dlopen portability
On Wed, 30 Jul 2003 11:02:56 -0700 William Ahern <william@wilbur.25thandclement.com> wrote:
| Tobias Oed <tobias@physics.odu.edu> wrote:
|> Hello,
|> On linux there is an interface to dynamically link against shared libraries
|> using the functions,
|>
|> void *dlopen(const char *filename, int flag);
|> const char *dlerror(void);
|> void *dlsym(void *handle, char *symbol);
|> int dlclose(void *handle);
|
|> Most of my man pages have a section CONFORMING TO at the end, but not the
|> one for these functions. There is an (unusual) section
|> ACKNOWLEDGEMENTS
|> The dlopen interface standard comes from Solaris.
|>
|> I was wondering how portable this interface was to other unixen then
|> linux/solaris? xxBSD/True 64/HP-UX/etc.
|> Thanks!
|> Tobias.
|
| Many people use GNU Autotools' Libtool library/interface. It smoothes over
| the edges for portable applications. For instance, OpenBSD has dlopen()
| available from libc, whereas on Linux you have to link to libdl; OTOH
| OpenBSD doesn't support the RTLD_NEXT handler.
I found dlopen() in SUSv3. The RTLD_NEXT option is not listed, so SUSv3
does not appear to require it. So it could be the case that OpenBSD is in
full conformance for dlopen().
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | [url]http://linuxhomepage.com/[/url] [url]http://ham.org/[/url] |
| (first name) at ipal.net | [url]http://phil.ipal.org/[/url] [url]http://ka9wgn.ham.org/[/url] |
-----------------------------------------------------------------------------
phil-news-nospam@ipal.net Guest
-
William Ahern #4
Re: dlopen portability
[email]phil-news-nospam@ipal.net[/email] wrote:
> I found dlopen() in SUSv3. The RTLD_NEXT option is not listed, so SUSv3
> does not appear to require it. So it could be the case that OpenBSD is in
> full conformance for dlopen().
According to the following (registration required) RTLD_NEXT is reserved
for future use.
[url]http://www.opengroup.org/onlinepubs/007904975/functions/dlsym.html[/url]
It'd be extremely nice if OpenBSD didn't wait to implement it.
William Ahern Guest



Reply With Quote

