1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Dynamic Modules on OpenBSD
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Dynamic%20Modules%20on%20OpenBSD&In-Reply-To=3cd804e4.41707%40achurch.org">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000643.html">
11 <LINK REL=
"Next" HREF=
"000648.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Dynamic Modules on OpenBSD
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Dynamic%20Modules%20on%20OpenBSD&In-Reply-To=3cd804e4.41707%40achurch.org"
17 TITLE=
"[IRCServices Coding] Dynamic Modules on OpenBSD">chris at monkeyircd.org
19 <I>Tue May
7 09:
49:
18 PDT
2002</I>
21 <LI>Previous message:
<A HREF=
"000643.html">[IRCServices Coding] Dynamic Modules on OpenBSD
23 <LI>Next message:
<A HREF=
"000648.html">[IRCServices Coding] Just in case..
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#644">[ date ]
</a>
27 <a href=
"thread.html#644">[ thread ]
</a>
28 <a href=
"subject.html#644">[ subject ]
</a>
29 <a href=
"author.html#644">[ author ]
</a>
34 <PRE>On Wed,
2002-
05-
08 at
02:
44, Andrew Church wrote:
35 Hehe, came to that conclusion myself :).
36 ><i> >DL_LAZY is only needed for future compatibility, as stated in the
37 </I>><i> >OpenBSD
3.0 man page.
38 </I>><i> >man dlopen reports:
39 </I>><i> >"The path argument can either be an absolute pathname or it can be of
40 </I>><i> >the form ``lib
<name
>.so[.xx[.yy]]'' in which case the same library
41 </I>><i> >search rules apply that are used for ``intrinsic'' shared library
42 </I>><i> >searches. The second argument currently has no effect, but should be
43 </I>><i> >set to DL_LAZY for future compatibility.
"
45 </I>><i> Then it sounds like OpenBSD is already doing things the wrong way,
46 </I>><i> so I'll probably just disable dynamic modules entirely for it.
48 </I>><i> --Andrew Church
49 </I>><i> <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
50 </I>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
52 </I>><i> >On Tue,
2002-
05-
07 at
22:
07, Andrew Church wrote:
53 </I>><i> >> DL_LAZY shouldn't be needed, and in fact goes contrary to what I want
54 </I>><i> >> (which is to resolve all symbols on load and fail if some are missing).
55 </I>><i> >> Did you read the manual page correctly? As far as the underscores, I'll
56 </I>><i> >> see about putting in a check for those in the configure script.
58 </I>><i> >> --Andrew Church
59 </I>><i> >> <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
60 </I>><i> >> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
62 </I>><i> >> >
63 </I>><i> >> >Hello Peeps
64 </I>><i> >> >
65 </I>><i> >> >On OpenBSD the flags to dlopen should be DL_LAZY, which is for future
66 </I>><i> >> >compatibility (according to its manpage), also, it needs an underscore
67 </I>><i> >> >prefixed onto any symbol you try and get from the modules (i believe
68 </I>><i> >> >this is due to the a.out binary format, and it isn't handled in BSD's
69 </I>><i> >> >dl* routines).
70 </I>><i> >> >I just tried a compile on OpenBSD
3.0, and ircservices doesn't handle
71 </I>><i> >> >either of these quirks, it should be a relatively simple
72 </I>><i> >> >makefile/configure change to get ircservices to account for them.
73 </I>><i> >> >
74 </I>><i> >> >Chris
75 </I>><i> >> >
76 </I>><i> >> >------------------------------------------------------------------
77 </I>><i> >> >To unsubscribe or change your subscription options, visit:
78 </I>><i> >> ><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
79 </I>><i> >> ------------------------------------------------------------------
80 </I>><i> >> To unsubscribe or change your subscription options, visit:
81 </I>><i> >> <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
84 </I>><i> >------------------------------------------------------------------
85 </I>><i> >To unsubscribe or change your subscription options, visit:
86 </I>><i> ><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
87 </I>><i> ------------------------------------------------------------------
88 </I>><i> To unsubscribe or change your subscription options, visit:
89 </I>><i> <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
99 <LI>Previous message:
<A HREF=
"000643.html">[IRCServices Coding] Dynamic Modules on OpenBSD
101 <LI>Next message:
<A HREF=
"000648.html">[IRCServices Coding] Just in case..
103 <LI> <B>Messages sorted by:
</B>
104 <a href=
"date.html#644">[ date ]
</a>
105 <a href=
"thread.html#644">[ thread ]
</a>
106 <a href=
"subject.html#644">[ subject ]
</a>
107 <a href=
"author.html#644">[ author ]
</a>