Operating System - HP-UX
1748235 Members
3456 Online
108759 Solutions
New Discussion юеВ

link order, apache plugin

 
tash S
Frequent Advisor

link order, apache plugin

Hi All,

I heard that HP-UX 11i v1 is sensitive about link comaparing to Solaris or Linux.

Here is our Apache link information (ldd output) and
plugin information(ldd output).I compile the Apache source codes and plugin codes using aCC++ compilar and linker.

If someone thing that this is strange, please let me know.

(Apache ldd info.)
================
bash-2.04# ldd httpd
/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/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
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libm.2 => /usr/lib/libm.2
/opt/hpws/apache/lib/libapr-0.sl.9 => /opt/hpws/apache/lib/libapr-0.sl
.9
/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
/opt/hpws/apache/lib/libexpat.sl.1 => /opt/hpws/apache/lib/libexpat.sl
.1
/usr/lib/libc.2 => /usr/lib/libc.2
/opt/hpws/apache/lib/libaprutil-0.sl.9 => /opt/hpws/apache/lib/lib
aprutil-0.sl.9
/usr/lib/libc.2 => /usr/lib/libc.2
bash-2.04#
===================

(plugin ldd info.)
====================
bash-2.04# ldd xxx.sl
/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/libc.1 => /usr/lib/libc.1
/usr/lib/libdld.1 => /usr/lib/libdld.1
/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
==============================

BEA Welogic notes said;

Warning: If you are running Apache 2.0.x server on HP-UX11, set the environment variables specified below before you build the Apache server. Because of a problem with the order in which linked libraries are loaded on HP-UX, a core dump can result if the load order is not preset as an environment variable before building. Set the following environment variables before proceeding with the Apache configure, make, and make install steps, (described in Apache HTTP Server documentation at http://httpd.apache.org/docs-2.1/install.html#configure):

export EXTRA_LDFLAGS="-lstd -lstream -lCsup -lm -lcl -ldld -lpthread"


http://e-docs.bea.com/wls/docs81/plugins/apache.html

Regards;
tash S

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: link order, apache plugin

Shalom tash,

I let HP worry about linker issues on my apache. I install the depot version from http://sofware.hp.com

Search for hpws

I do not believe there is a problem here and am against self compiled versions of apache unless they are required by application concerns.

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
tash S
Frequent Advisor

Re: link order, apache plugin

Hello SEP,
For some rason, I have to recomile for apache.

If anyone knows some procedure how to compile statics link,

Is this to change only from "+tls=dynamic" to "+tls=statics" durig link?

I would like to change from dynamics link to staticaly link due to some reason.

Regrads;
tash S


Arunvijai_4
Honored Contributor

Re: link order, apache plugin

Hi Tash,

If you would like to create static linked binaries, you should embed library path into Makefiles (just like /usr/lib/libc.a). Also, moving dependant *.sl or *.so to some name will help.

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