Operating System - HP-UX
1834009 Members
3647 Online
110063 Solutions
New Discussion

Re: Linking apache with Shared Libraries

 
siba
Advisor

Linking apache with Shared Libraries

hi again,

thanks to you guys that i am able to build apache and also my shared libraries. But i have one more issue.

Apache build has created .so (shared object) files.

while the shared libraries i have created are of (.sl) shared libraries

i am not able to create .so for my shared libraries.

my Issue now is that i am not able to link apache shared objects with my shared libraries.

my shared library is a plugin which i want to run on top of apache.

when i start apache it gives me the error

/usr/lib/dld.sl: Can't find path for shared library: libSM_DSV2Plugin.sl
/usr/lib/dld.sl: No such file or directory
Syntax error on line 237 of /home/smplug/Install/apache/conf/httpd.conf:
Cannot load /home/smplug/Install/apache/libexec/mod_auth_tkt.so into server: No such
file or directory
../bin/apachectl start: httpd could not be started

Note: in httpd.conf i have added the Plugin in LoadModule and also AddModule.

the plugin is in so mode. and it uses other functions which is in sl mode.
but when i start apache it doesnt recognise the Dsv2Plugin library which has a .sl extension.

please help me .

regards
shiva
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Linking apache with Shared Libraries

Check SHLIB, PATH and other relavent environment variables.

OR:

Install apache off SD-UX depots and do something more fun.

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW100501

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ranganath ramachandra
Esteemed Contributor

Re: Linking apache with Shared Libraries

quick and dirty -
cant you simply create symbolic links to each of your *.sl as *.so ?
for file in *.sl do ; name=`echo $file | cut -f1 -d.` ; ln -fs ${name}.sl ${name}.so ; done
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

siba
Advisor

Re: Linking apache with Shared Libraries

rangnath.....
i have already tried that and its not working.

steven i would try your option.
shlib and path are fine. and i hope i get the source code for apache in that site.
ranganath ramachandra
Esteemed Contributor

Re: Linking apache with Shared Libraries

if you have PHSS_28434/PHSS_28436 linker/loader patch installed, it may be a known dlopen() related issue. the fix is in PHSS_28869/PHSS_28871.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo