Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OpenBSD and dynamic loading
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-24 (09:07)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] OpenBSD and dynamic loading
> Will dynamic library loading be supported under OpenBSD ? It remotely
> seems to me that it's just a matter of giving the proper options
> to the linker and of defining the (unused) RTLD_ flags to dlopen().

In general, dynamic loading support is activated only after thorough
testing on the OS in question.  That's because there is considerable
variability between Unix systems on
1- the compilation flags for building shared objects;
2- the flags supported by dlopen();
3- whether some features of dynamic loading (e.g. automatic loading of
   dependent libraries) are properly implemented.

Jacques Garrigue and I found the hard way that several reputable Unixes
have well-hidden problems with dynamic loading, especially points 2 and 3
above.  It is better for the final users to leave dynamic loading
turned off in case of doubt rather than turn it on and run into
obscure problems later.

Concerning OpenBSD in particular, we have no OpenBSD machine to do the
testing, so don't expect DLL support there soon.

- Xavier Leroy
Bug reports:  FAQ:
To unsubscribe, mail  Archives: