httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathiha...@hp.com>
Subject RE: [PATCH] README.platforms for HPUX /C++ modules
Date Thu, 30 Jan 2003 22:37:11 GMT
Oh cool.. I did not see the commit :(. I've eliminated the extra details,
and here's the new patch that gives details about what libraries *have* to
be linked into httpd. I'm not sure if this level of detail should be
documented at all or can I assume that the users should know what modules to
link.

$ cvs diff README.platforms
Index: README.platforms
===================================================================
RCS file: /home/cvspublic/httpd-2.0/README.platforms,v
retrieving revision 1.7
diff -u -r1.7 README.platforms
--- README.platforms    8 Dec 2002 21:05:55 -0000       1.7
+++ README.platforms    30 Jan 2003 22:31:37 -0000
@@ -54,3 +54,24 @@
    shell implementation (/bin/sh) on FreeBSD.  Be sure to use v2.13
    of autoconf.
 
+================
+  HP-UX:
+   The dlopen() system call in HP-UX has problems when loading/unloading
+   C++ modules. The problem can be resolved by using shl_load() instead
+   of dlopen(). This is fixed in the Apache 2.0.44 release.
+   To enable loading of C++ modules, the httpd binary has to be linked with
+   the following libraries :
+
+   HP-UX (11.0 / 11i):
+      When using shl_load        : "cpprt0_stub.s -lcl"
+      When using dlopen          : "cpprt0_stub.s -lcl -lCsup"
+
+   HP-UX (11i version 1.5 and greater):
+      When using dlopen/shl_load : "cpprt0_stub.s -lcl -lunwind"
+
+   The cpprt0_stub.s can be downloaded from the web site :
+
http://h21007.www2.hp.com/hpux-devtools/CXX/hpux-devtools.0107/0083.html
+   Compile cpprt0_stub.s with the PIC option
+     cc -c +z cpprt0_stub.s
+       - OR -
+     gcc -c -fPIC cpprt0_stub.s

Thanks
-Madhu



>-----Original Message-----
>From: William A. Rowe, Jr. [mailto:wrowe@apache.org]
>Sent: Thursday, January 30, 2003 2:03 PM
>To: dev@httpd.apache.org
>Cc: 'dev@httpd.apache.org'
>Subject: Re: [PATCH] README.platforms for HPUX /C++ modules
>
>
>At 02:10 PM 1/30/2003, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote:
>>Hi,
>>        I was thinking of putting the following in the 
>README.platforms..
>>Any comments ?.
>>
>>+   (1) Recommended : Use the shl_load to do the module 
>loading/unloading.
>>+
>>+      - Create a config.cache file in $APACHE_SRC with the following
>>contents:
>>+        ac_cv_func_dlopen=${ac_cv_func_dlopen=no}
>>+        ac_cv_header_dl_h=${ac_cv_header_dl_h=yes}
>>+        ac_cv_header_dlfcn_h=${ac_cv_header_dlfcn_h=yes}
>>+        ac_cv_lib_dl_dlopen=${ac_cv_lib_dl_dlopen=no}
>>+        ac_cv_lib_dld_shl_load=${ac_cv_lib_dld_shl_load=yes}
>>+
>>+        Using the --config-cache option with the configure, 
>forces the use
>>+        of shl_load system call instead of the dlopen to 
>load the modules. 
>
>This entire section can disappear.  The current APR code 
>prefers shl_load
>anyways.  This changed with my commit between 2.0.43 and 2.0.44.
>Simply document that the user should obtain 2.0.44 or later.
>
>Revision 
><http://cvs.apache.org/viewcvs.cgi/*checkout*/apr/configure.in?
>rev=1.490>1.490 / 
><http://cvs.apache.org/viewcvs/apr/configure.in?rev=1.490&conte
>nt-type=text/vnd.viewcvs-markup>(view) - 
><http://cvs.apache.org/viewcvs/apr/configure.in?annotate=1.490>
>annotate - 
><http://cvs.apache.org/viewcvs/apr/configure.in?r1=1.490>[selec
>t for diffs] , Thu Oct 17 17:40:24 2002 UTC (3 months, 1 week 
>ago) by wrowe 
>Branch: 
><http://cvs.apache.org/viewcvs/apr/configure.in?only_with_tag=M
>AIN>MAIN 
>Changes since 1.489: +4 -4 lines 
>Diff to 
><http://cvs.apache.org/viewcvs/apr/configure.in.diff?r1=1.489&r
>2=1.490>previous 1.489 
(<http://cvs.apache.org/viewcvs/apr/configure.in.diff?r1=1.489&r2=1.490&diff
_format=h>colored) 
  Platform preference for shl_load on HPUX11 must be expressed by testing
  first for that method.  dlopen on HPUX11/64 bit OS'es or including one
  off libdld's should not be recognized.



Mime
View raw message