Operating System - HP-UX
1832684 Members
2878 Online
110043 Solutions
New Discussion

Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1

 
RonHoover
Occasional Advisor

Apache Failure: Can't open shared library: /usr/lib/libnsl.1

We have an HP-UX server running Oracle 9i database, Cold Fusion and HP Apache with Netegrity Siteminder for third party authentication. I have to upgrade the database to 10g. The runInstaller pre-check recommended Some Kernel changes and Patches.

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 and patches 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

When I comment out the following 2 lines in httpd.conf, 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.
Any help would be greatly appreciated!
Ron
4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1

Hi Ron,

The problem lies on your build. You have a hard coded library path in your apache, /web/sso/netegrity/webagent/bin/libmod_sm20.sl. Either you should have that library in place or you need to compile statically.

I hope, it is clear.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RonHoover
Occasional Advisor

Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1

Arun,
I created the directory structure and put symbolic links but still get:

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
Arunvijai_4
Honored Contributor

Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1

Hi Ron,

I dont think creating symbolic would be helpful. You can do "ll /web/sso/netegrity/webagent/bin/libmod_sm20.sl" and post your output here. I think, it could be either due to permission issue or link problem.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RonHoover
Occasional Advisor

Re: Apache Failure: Can't open shared library: /usr/lib/libnsl.1

-rwxrwxr-x 1 cfusion prog 2179072 Dec 3 2005 /web/sso/netegrity/web
agent/bin/libmod_sm20.sl