apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Holyat <ehol...@OLF.COM>
Subject [PATCH] unix/dso.c on solaris
Date Mon, 15 Jul 2002 19:22:01 GMT
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>[PATCH] unix/dso.c on solaris</TITLE>

<P><FONT SIZE=2 FACE="Arial">First time addressing this email address and I have
a few questions which I hope someone will take the time to answer.</FONT>

<P><FONT SIZE=2 FACE="Arial">1. Does anyone know a reason why when loading a shared
library on solaris 2.8, flag RTLD_NOW does not work?&nbsp; testdso.c will only work with

<P><FONT SIZE=2 FACE="Arial">Here is the diff for dso to work on solaris 2.8 /
SunOS 5.8</FONT>

<P><FONT SIZE=2 FACE="Arial">D:\src\apr\dso\unix&gt;diff -u dso-old.c dso.c</FONT>
<BR><FONT SIZE=2 FACE="Arial">--- dso-old.c&nbsp;&nbsp; Mon Jul 15 14:55:03
<BR><FONT SIZE=2 FACE="Arial">+++ dso.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Mon Jul 15 14:55:18 2002</FONT>
<BR><FONT SIZE=2 FACE="Arial">@@ -153,7 +153,7 @@</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; void *os_handle
= dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL);</FONT>

<P><FONT SIZE=2 FACE="Arial">&nbsp;#else</FONT>
<BR><FONT SIZE=2 FACE="Arial">-&nbsp;&nbsp;&nbsp; int flags = RTLD_NOW
<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp; int flags = RTLD_LAZY
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; void *os_handle;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;#ifdef _AIX</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; if (strchr(path
+ 1, '(') &amp;&amp; path[strlen(path) - 1] == ')')</FONT>

<P><FONT SIZE=2 FACE="Arial">2.&nbsp; Is there going to be a stable release
of the APR?&nbsp; there seems to be a lot of changes going on, and the APR web page<B>
suggests</B> that the builds are &quot;stable&quot;.</FONT></P>

<P><FONT SIZE=2 FACE="Arial"></FONT>&nbsp;

<P><B><FONT SIZE=2 FACE="Arial">© 2002 OpenLink Financial </FONT></B>

<P><B><FONT SIZE=2 FACE="Arial">Copyright in this message and any attachments
remains with us.&nbsp; It is</FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">confidential and may be legally privileged.&nbsp;&nbsp;
If this message is not </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">intended for you it must not be read, copied
or used by you or </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">disclosed to anyone else.&nbsp;&nbsp;
Please advise the sender immediately if </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">you have received this message in error.</FONT></B>

<P><B><FONT SIZE=2 FACE="Arial">Although this message and any attachments
are believed to be free of </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">any virus or other defect that might affect
any computer system into </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">which it is received and opened, it is
the responsibility of the </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">recipient to ensure that it is virus free
and no responsibility </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">is accepted by Open Link Financial, Inc.
for any loss or damage in any </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">way arising from its use.</FONT></B>


View raw message