Operating System - Linux
1753677 Members
5475 Online
108799 Solutions
New Discussion юеВ

Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

 
SOLVED
Go to solution
Steve_The_King
Frequent Advisor

Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

We need Apache to run in 32 bit compatibility mode on an Itanium HP-UX11.23. The default installed version of Apache is 64-bit 2.0.54.
We also tried installing Apache 32 bit 2.0.58 from http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSSUITE

We are trying to load our custom library in Apache httpd process. The library is built on HP PA-RISC 11.11 machine. It loads correctly on HP PA-RISC 11.11 machine.

In both cases, this is the error we are getting:
Syntax error on line 1148 of /opt/hpws/apache32/conf/httpd.conf:
Cannot load /data/steve/webgate704/access/oblix/apps/module_loader/bin/obmodule_loader.sl into server: '/data/steve/webgate704/access/oblix/apps/module_loader/bin/obmodule_loader.sl' is not a valid load module: Bad magic number

Does anyone know how to run/configure HP's Apache distribution for Itanium 11.23 to run in 32 bit mode?

Would building our library on HP PA-RISK 11.23 platform help?

Thanks
27 REPLIES 27
Steve_The_King
Frequent Advisor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

Let me give more details on what all we
tried :

1. We tried installing the 32 bit apache (2.0.58) from following
location:
https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=HPUXWS...
Please note from there we installed - "HP-UX 11i version 2 PA-RISC/IPF
32 bit"
Which means we installed - HPUXWSATW-B217-1123-32.depot

This package works on both itanium and pa-risc 11.23 versions. Its a
single binary.

Still we get the same "magic" error. However no issues while
installing as the versions are same.

2. Now next we tried installing "HP-UX 11i PA-RISC with IPv6 support"
Which means we installed - HPUXWSATW-B217-1111.depot

We got installation warnings saying incompatible versions as we were
trying to install a 11.11 depot on 11.23 machine.
However after setting the install option "allow_incompatible=true" we
could proceed successfully.
Our custom library got loaded without any errors. (however since this
gives a incompatibility error Customer might not agree with it.)
Please note here that our custom library is also built on 11.11 PA-
RISC machine only.

Hence we were thinking of building on 11.23 PA-RISC or then may be
Itanium.

Dennis Handly
Acclaimed Contributor
Solution

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

>Would building our library on HP PA-RISC 11.23 platform help?

No. If you have a PA plugin you want to use on IPF, you must run the PA version of apache.

This isn't something that we would want people to do so you have to do a bunch of fiddling to make it work.

>Our custom library got loaded without any errors. (however since this
gives a incompatibility error Customer might not agree with it.)

>Hence we were thinking of building on 11.23 PA-RISC or then may be Itanium.

No need to bother with 11.23 PA. Just port to IPF so you and your customers can use the normal apache installation on IPF.
Steve_The_King
Frequent Advisor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

>No. If you have a PA plugin you want to >use on IPF, you must run the PA version of >apache.

There is no seperate installer for pa-risc and itanium. The package works on both itanium and pa-risc.
rick jones
Honored Contributor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

And when you install on an IPF system, it installs only the IPF binaries, and when you install on a PARISC system it only installs the PARISC binaries.

Do not confuse "single depot" with "single binary." A depot can contain many different versions of a binary or binaries.
there is no rest for the wicked yet the virtuous have no pillows
Dennis Handly
Acclaimed Contributor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

>Rick: A depot can contain many different versions of a binary or binaries.

Righ, this is why you'll have problems, it isn't going to want to install the PA version. But somehow it seems Steve was able to do magic?
rick jones
Honored Contributor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

It sounds like the magic was to use an 11.11 depot which by definition would be PA-RISC binaries only.
there is no rest for the wicked yet the virtuous have no pillows
Steve_The_King
Frequent Advisor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

Thank you, Dennis and Rick.

So it seems that we should build our library on Itanium platform and then test is the better option.

If you guys have any idea about problems/issues that we might face while compiling PA-RISC code on Itanium, Please let us know (we are acc compiler).
Dennis Handly
Acclaimed Contributor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

>If you guys have any idea about problems/issues that we might face while compiling PA-RISC code on Itanium, Please let us know (we are aCC compiler)

It's good that you are using aCC++, what version?

When going to IPF, you need to port to use -AA:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,5520,00.html

aCC6 is different from aCC3/aCC5:
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7274,00.html

To get quicker answers (and if you don't mind everyone on the list seeing your questions), you should sign up to the CXX-DEV mailing list:
http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html
Steve_The_King
Frequent Advisor

Re: Configuring Apache to run in 32 bit compatibility mode on Itanium & HP-UX 11.23

Hello guys,

we started building our code with aCC A.05.50 version for compiling the code on Itanium. We got follwing error.

Error 203: "/src/obdev2/csabuild/coreid7043hpport/np_common/util/base/hp-ux/../obmsgcatalog.cpp", line 636 # Cannot assign 'char *' with
'const char *'.
while ((p = strchr(lastp, '%')) != NULL) {
^^^^^^^^^^^^^^^^^^

This error comes even if we specify -AA or -AP in compiler flags.
We did not get this error on PA-RISC 11.11.

It would be great if you can help us out with this. :)