Operating System - HP-UX
1753598 Members
6382 Online
108796 Solutions
New Discussion юеВ

How do I build apache for 64-bit server, Please suggest.

 
SOLVED
Go to solution
GnanaShekar
Regular Advisor

How do I build apache for 64-bit server, Please suggest.

Hi,

I have downloaded the apache 2058 source.
I need to build apache for a HP Itanium server.

How do I build apache for 64-bit server, Please suggest.

Thanks
5 REPLIES 5
Arunvijai_4
Honored Contributor

Re: How do I build apache for 64-bit server, Please suggest.

Hi,

You need to use "-mlp64" in case if you use GCC to build. If you are using "aCC", you can specify "+DD64". Just export CFLAGS and CPPFLAGS before start configuring,

# export CFLAGS="-mlp64" or "+DD64"
# export CPPFLAGS="-mlp64" or "+DD64"

-Arun

P.S Remember to assign points
"A ship in the harbor is safe, but that is not what ships are built for"
GnanaShekar
Regular Advisor

Re: How do I build apache for 64-bit server, Please suggest.

Hi,

Thanks.

I could build apache using the following steps:

export CC="gcc"
export CFLAGS="-mlp64"
./configure --prefix=/disk1/apache2058
make
make install

However when I run apache I am getting the following error:

asaha@banpchp5:/disk1/apache2058/bin>./apachectl start
/usr/lib/hpux64/dld.so: Unable to find library 'libgcc_s.so.0'.
./apachectl[80]: 2379 Killed

I have created a symbolic link in /usr/lib/hpux64 for libgcc_s.so.0, even then I am getting this error. Please suggest.

asaha@banpchp5:/usr/lib/hpux64>ls -l libgcc_s.so.0
lrwxr-xr-x 1 root sys 35 May 17 16:05 libgcc_s.so.0 -> /opt/hp-gcc-4.0.3/lib/libgcc_s.so.0
asaha@banpchp5:/usr/lib/hpux64>

Thanks.
Arunvijai_4
Honored Contributor
Solution

Re: How do I build apache for 64-bit server, Please suggest.

Hi,

Did you link the correct library (64) to /usr/lib/hpux64 ? Use chatr and file command to find the correct libgcc.so

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

Re: How do I build apache for 64-bit server, Please suggest.

While HP Itanium systems can be considered 64-bit servers, one does not necessarily have to run a 64-bit application binary on them when running HP-UX.

What _specifically_ makes you want a 64-bit Apache binary? For that matter, is there something specific you need that is not provided by the HP-supplied Apache binary?

Is the gcc you have installed capable of building a 64-bit binary?

Keep in mind that one cannot mix 32-bit and 64-bit objects/libraries in the same executable.
there is no rest for the wicked yet the virtuous have no pillows
GnanaShekar
Regular Advisor

Re: How do I build apache for 64-bit server, Please suggest.

Hi,

You are right.

I had created a symbolic link for libgcc_s.so.0 in /usr/lib/hpux64, but the source was a 32-bit library in /opt/hp-gcc-4.0.3/lib.

I changed it to point to 64-bit one at /opt/hp-gcc-4.0.3/lib/hpux64 and could start apache.

Thanks a lot.

By the way we are testing apache-weblogic plugin module on hp unix itanium and so we had build apache 64-bit binary.

Thanks again.