Operating System - HP-UX
1753758 Members
4440 Online
108799 Solutions
New Discussion юеВ

Weblogic module mod_wl_20.so

 
tash S
Frequent Advisor

Weblogic module mod_wl_20.so

Hello All,

When we import mod_wl_20.so, the following error is happening.

----------------------------------------
# ./apachectl start
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
Syntax error on line 280 of /opt/hpws/apache/conf/httpd.conf:
Cannot load /opt/hpws/apache/modules/mod_wl_20.so into server: Exec format error
----------------------------------------


Here is the the format of http.conf

------------------------------------------
LoadModule weblogic_module modules/mod_wl_20.so
------------------------------------------

Here is the what command result of "/usr/lib/libdld.sl
"
==================================
bash-2.04# what /usr/lib/libdld.sl
/usr/lib/libdld.sl:
92453-07 dld dld libdld.sl B.11.53 060322
bash-2.04# what /usr/lib/libcl.2
==================================

If anyone knows Any workaround, please let us know.

Regards,
tash S
4 REPLIES 4
Ermin Borovac
Honored Contributor

Re: Weblogic module mod_wl_20.so

Try

LD_PRELOAD=/usr/lib/libcl.2 ./apachectl start
tash S
Frequent Advisor

Re: Weblogic module mod_wl_20.so

The following-up question is the order of shared library.

(1)
------------------------------------
LoadModule weblogic_module /opt/hpws/apache/test/plugin_apache.sl
LoadModule weblogic_module modules/mod_wl_20.so
------------------------------------

(2)
------------------------------------
LoadModule weblogic_module modules/mod_wl_20.so
LoadModule weblogic_module /opt/hpws/apache/test/plugin_apache.sl
------------------------------------


The order is important.
(1) does work, but (2) does NOT work.
(2) generate core.

Here is the result of ldd command.

=====================================
bash-2.04# ldd mod_wl_20.so
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/libcl.2 => /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2


bash-2.04# ldd plugin_apache.sl
/usr/lib/libCsup_v2.2 => /usr/lib/libCsup_v2.2
/usr/lib/libstd_v2.2 => /usr/lib/libstd_v2.2
/usr/lib/librwtool_v2.2 => /usr/lib/librwtool_v2.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
../lib/libapr-0.sl.9 => ../lib/libapr-0.sl.9
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libCsup_v2.2 => /usr/lib/libCsup_v2.2
/usr/lib/libstd_v2.2 => /usr/lib/libstd_v2.2
/usr/lib/librwtool_v2.2 => /usr/lib/librwtool_v2.2

=====================

If anyone knows any tips, please let me know.

Thanks,
tash S


Gunasekaran
New Member

Re: Weblogic module mod_wl_20.so

Hi All,

To do the Apache-Weblogic configuration, the version should be same for ld(Linker) and libdld.sl(Library) in HP-UX. I checked the version's of both and I can see the version mismatch between linker and the library. I have run the below commands in HPUX server to check the Version of ld and libdld.sl



$ld -V
Ld: 92453-07 linker ld HP Itanium(R) B.12.41 IPF/IPF
Ld: No Input files
Fatal error.



$what /usr/lib/libdld.sl
/usr/lib/libdld.sl:
92453-07 dld dld libdld.sl B.11.53 060322




So the version has to be same and greater than B.11.32.

Please refer the below site for more information.

http://e-docs.bea.com/platform/docs70/relnotes/relnotes.html#228068 -> under the topic Considerations About Apache Version

http://72.14.235.104/search?q=cache:Bm-BXcMEnSEJ:e-docs.bea.com/platform/suppconfigs/configs70/pdf/hpux11_itanium.pdf+mod_wl_20.so+download&hl=en&ct=clnk&cd=4&gl=in#14

Please give your comments to overcome this obsolete versions of ld and/or libdld.sl.

Regards,
Guna.





Dennis Handly
Acclaimed Contributor

Re: Weblogic module mod_wl_20.so

This application is illegal. It is trying to mix -AP with -AA:
ldd mod_wl_20.so
/usr/lib/libCsup.2 -AP

ldd plugin_apache.sl
/usr/lib/libCsup_v2.2 -AA


>Guna: Please give your comments to overcome this obsolete versions of ld and/or libdld.sl.

There are no problems here. You are comparing the PA libdld with the IPF linker.

To check the IPF dld, you should use:
$ what /usr/lib/hpux32/dld.so