- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Apache Failure: Can't open shared library: /us...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 06:14 AM
тАО09-20-2006 06:14 AM
Failed OS Patch check on the following:
тАв PHSS_31221
тАв PHSS_32508
тАв PHSS_32509
тАв PHSS_32510
тАв PHSS_32731
тАв PHSS_31312
Failed Kernel parameter check on the following:
тАв ksi_alloc_max=32768; found ksi_alloc_max=16384
тАв maxssiz_64bit=1073741824; found maxssiz_64bit=134217728
тАв maxswapchunks=16384; found maxswapchunks=1513
тАв maxuprc=3687; found maxuprc=75
тАв msgmap=4098; found msgmap=42
тАв msgmni=4096; found msgmni=50
тАв msgseg=32767; found msgseg=2048
тАв msgtql=4096; found msgtql=40
тАв ncsize=34816; found ncsize=7848
тАв nfile=63488; found nfile=3000
тАв nflocks=4096; found nflocks=200
тАв ninode=34816; found ninode=2728
тАв nkthread=7184; found nkthread=6000
тАв nproc=4096; found nproc=2048
тАв semmap=4098; found semmap=2050
тАв semmni=4096; found semmni=2048
тАв semmns=8192; found semmns=2048
тАв semmnu=4092; found semmnu=64
тАв shmmax=1073741824; found shmmax=268435456
тАв shmmni=512; found shmmni=500
тАв vps_ceiling=64; foundvps_ceiling=16
This is the contents of the Bundle that was applied:
patch hp-ux_patches/s700_800/11.X/PHCO_33142
patch hp-ux_patches/s700_800/11.X/PHKL_29243
patch hp-ux_patches/s700_800/11.X/PHSS_32732
patch hp-ux_patches/s700_800/11.X/PHSS_33037
patch hp-ux_patches/s700_800/11.X/PHSS_33944
patch hp-ux_patches/s700_800/11.X/PHSS_35098
patch hp-ux_patches/s700_800/11.X/PHSS_35099
patch hp-ux_patches/s700_800/11.X/PHSS_35100
patch superseded_patches/hp-ux_patches/s700_800/11.X/PHCO_31314
patch superseded_patches/hp-ux_patches/s700_800/11.X/PHNE_28810
patch superseded_patches/hp-ux_patches/s700_800/11.X/PHSS_32731
The Kernel changes were also applied. The database starts up fine. but when I try and start Apache, the following error is thrown:
Syntax error on line 176 of /opt/hpapache2/conf/httpd.conf:
Cannot load /web/sso/netegrity/webagent/bin/libmod_sm20.sl into server: Can't open shared library: /usr/lib/libnsl.1
Line 176 of httpd.conf is:
LoadModule sm_module "/web/sso/netegrity/webagent/bin/libmod_sm20.sl"
libmod_sm20.sl trys to load /usr/lib/libnsl.1 and that is where the failure is!
Any help would be greatly appreciated!
Ron
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 06:15 AM
тАО09-20-2006 06:15 AM
Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1
-r-xr-xr-x 1 bin bin 745472 Apr 27 2005 libnsl.1
# more /opt/hpapache2/bin/envvars
SHLIB_PATH=/web/sso/netegrity/webagent/bin:/opt/hpapache2/lib:/usr/lib
export SHLIB_PATH
NETE_WA_PATH=/web/sso/netegrity/webagent/bin
export NETE_WA_PATH
NETE_WA_ROOT=/web/sso/netegrity/webagent
export NETE_WA_ROOT
PATH=$PATH:/web/sso/netegrity/webagent/bin
export PATH
# swlist -l file | grep /usr/lib/libnsl.1
NFS.NFS-SHLIBS: /usr/lib/libnsl.1
PHNE_32477.NFS-SHLIBS: /usr/lib/libnsl.1
# chatr /opt/hpapache2/bin/httpd
/opt/hpapache2/bin/httpd:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled second
embedded path enabled first /opt/hpapache2/lib
shared library list:
dynamic /usr/lib/libcl.2
static /opt/hpapache2/lib/libaprutil-0.sl.9
static /opt/hpapache2/lib/libexpat.sl.1
static /opt/hpapache2/lib/libapr-0.sl.9
dynamic /usr/lib/libm.2
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references enabled
shared library private mapping disabled
shared library text merging disabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 06:44 AM
тАО09-20-2006 06:44 AM
Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1
Thanks for the response!
I commented out the following 2 lines and it starts:
LoadModule sm_module "/web/sso/netegrity/webagent/bin/libmod_sm20.sl"
SmInitFile "/opt/hpapache2/conf/WebAgent.conf"
But the applications are all coded to use Siteminder variables so that is why I need those lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 07:25 AM
тАО09-20-2006 07:25 AM
Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1
Can you do a "ldd" and "chatr" for /web/sso/netegrity/webagent/bin/libmod_sm20.sl
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 07:37 AM
тАО09-20-2006 07:37 AM
Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/dld.sl: Can't open shared library: /vobs/devel/agentframework/Release/HP-UX/lib/libsmeventlog.sl
/usr/lib/dld.sl: No such file or directory
# chatr /web/sso/netegrity/webagent/bin/libmod_sm20.sl
/web/sso/netegrity/webagent/bin/libmod_sm20.sl:
shared library
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /vobs/devel/common/Release/HP-UX/lib/libsmerrlog.sl
dynamic /vobs/devel/agentframework/Release/HP-UX/lib/libsmeventlog.sl
dynamic /usr/lib/libCsup.2
dynamic /usr/lib/libstd.2
dynamic /usr/lib/libstream.2
dynamic /usr/lib/libm.2
dynamic /usr/lib/libc.2
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libpthread.1
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 07:43 AM
тАО09-20-2006 07:43 AM
Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1
Here is the problem, /usr/lib/dld.sl: Can't open shared library: /vobs/devel/agentframework/Release/HP-UX/lib/libsmeventlog.sl
/usr/lib/dld.sl: No such file or directory
I think, at the of build you got hardcorded library. Either get the library from above location and put it in /usr/lib or compile with static library.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 08:34 AM
тАО09-20-2006 08:34 AM
Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/vobs/devel/agentframework/Release/HP-UX/lib/libsmeventlog.sl =>
/vobs/devel/agentframework/Release/HP-UX/lib/libsmeventlog.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/vobs/devel/common/Release/HP-UX/lib/libsmerrlog.sl => /vobs/devel/comm
on/Release/HP-UX/lib/libsmerrlog.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/vobs/devel/common/Release/HP-UX/lib/libsmcommonutil.sl => /vobs/de
vel/common/Release/HP-UX/lib/libsmcommonutil.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
I created the directory structure and put alaises but still get:
./apachectl start
Syntax error on line 176 of /opt/hpapache2/conf/httpd.conf:
Cannot load /web/sso/netegrity/webagent/bin/libmod_sm20.sl into server: Can't op
en shared library: /usr/lib/libnsl.1