Hi All;

Just thought that you'd like to know that NetBSD requires the same
logic with respect to the DLOPEN_FLAG as OpenBSD, as set up starting
at line 115 of dso_dlfcn.c.

The symptom of the problem is a complaint about the lack of a definition
of RTLD_NOW, which is what I assume also shows up on OpenBSD.

I have changed my copy to have a multi-state #ifdef logic, as so:

-- Cut Here (Line 115) -------------------------------------------------
#ifndef DLOPEN_FLAG
#       ifdef __OpenBSD__
#               ifdef DL_LAZY
#                       define DLOPEN_FLAG DL_LAZY
#               else
#                       ifdef RTLD_NOW
#                               define DLOPEN_FLAG RTLD_NOW
#                       else
#                               define DLOPEN_FLAG 0
#                       endif
#               endif
#       endif
#endif

#ifndef DLOPEN_FLAG
#       ifdef __NetBSD__
#               ifdef DL_LAZY
#                       define DLOPEN_FLAG DL_LAZY
#               else
#                       ifdef RTLD_NOW
#                               define DLOPEN_FLAG RTLD_NOW
#                       else
#                               define DLOPEN_FLAG 0
#                       endif
#               endif
#       endif
#endif

#ifndef DLOPEN_FLAG
#       define DLOPEN_FLAG RTLD_NOW /* Hope this works everywhere else */
#endif
---- End Here ----------------------------------------------------------

I wasn't sure whether you had isses with going with the ANSI
    #if defined(__OpenBSD__) || defined(__NetBSD__)
style tests, so I'll leave that up to you folks (thus, I am not attaching
a patch).


As far as I can tell, everything else looks rosy.


Thanks,
Andrew.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to