cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Content server hp unix apache issue

former_member319296
Participant
0 Kudos

Once we completed the DMS installation on HP Unix ( HP 11.23) we found

that the apache server is not running and gaved the following error

while trying to start that.

$ apachectl -v

Server version: Apache/2.0.52

Server built: Mar 26 2011 15:20:39

$ apachectl start

Syntax error on line 233 of /home/sapcsc/conf/httpd.conf:

Cannot load /home/sapcsc/modules/mod_sapcsc2.so into server: Invalid

argument

We followed the note 664384 and exported the following enviorement

variable in the system. We logged into the system with user sapcs and

executed these commands.

export LDFLAGS="+DD64 +DSitanium2"

export CFLAGS="+DD64 +DSitanium2"

After that we again configured the apache with following command.

configure u2013prefix=/usr/users/sapcsc --enable-mods-shared=most u2013with-

mpm=prefork

Now, when we are trying to compile the apache by executing the make

command we are getting following error.

ld: Mismatched Data ABI. Expected EF_IA_64_ABI64 but found None in file

xmltok.lo

Fatal error

Please advice are we missing any steps .

Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

The same issue happened for me. The below steps solved the issue in HP-UX

1) changed shell from sh to ksh using command chsh

2) deleted the apache root directory and recreated it

3) Variables  were set using

export LDFLAGS="+DD64 +DSitanium2"

export CFLAGS="+DD64 +DSitanium2"

This will ensure the 64 bit compilation happens

4) Issued make clean

5) Since we used Apache 2.0.52  used below configure command

./configure –prefix=/usr/users/sapcs  -enable-mods-shared=most  -with-mpm=prefork

6)Issued make and make install

7)Edited httpd.conf as per note 940584

😎 Started Apache server using ./apachectl start

Regards,

Jinesh

former_member189546
Active Contributor
0 Kudos

Hello,

Which compiler do you use ? Please use the Native Platform Compiler of

HP. You must not use the GNU or GCC

compiler.

regards,

John Feely

former_member319296
Participant
0 Kudos

Hi John ,

I do not think we are using any GNU or GCC compiler.

Here are the outputs of following commands.

PILDMS:/>>swlist -l product | grep -i compiler

COMPLIBS B.11.31 Compiler Support Libraries

PHCO_39115 1.0 Linker/Compiler/Unwind ENG

Manpage Patch

PHCO_39862 1.0 linker/compiler/unwind Japanese

manpage patch

PHSS_38155 1.0 bundled PA C compiler on IPF

Regards

markus_doehr2
Active Contributor
0 Kudos

> Cannot load /home/sapcsc/modules/mod_sapcsc2.so into server: Invalid

> argument

Please execute

file mod_sapcsc2.so
chatr mod_sapcsc2.so

> ld: Mismatched Data ABI. Expected EF_IA_64_ABI64 but found None in file

> xmltok.lo

> Fatal error

What compiler do you use?

cc -V
aCC -V

Markus

former_member319296
Participant
0 Kudos

Hi Markus ,

Few things I noticed

1. The apache was installed as per the three steps mentioned in the guide and note 664384 , however we did not exported the environment variable for 64 bit. when we tried to run the apache after the DMS installation it gave this error .

$ apachectl start

Syntax error on line 233 of /home/sapcsc/conf/httpd.conf:

Cannot load /home/sapcsc/modules/mod_sapcsc2.so into server: Invalid

argument

2. Now when we tried to install it using the 64 bit after exporting the environment variable it gave Mismatched Data ABI error , now even when we have unset the enviorement variable it is not getting installed and giving same Mismatched Data ABI error.

Here is the required information.

$ file mod_sapcsc2.so

mod_sapcsc2.so: ELF-64 shared object file - IA64

$ chatr mod_sapcsc2.so

mod_sapcsc2.so:

64-bit ELF shared library

shared library dynamic path search:

LD_LIBRARY_PATH enabled first

SHLIB_PATH enabled second

embedded path enabled third /opt/aCC/lib:/usr/lib/hpux64:/opt/langtools/lib/hpux64

shared library list:

libCsup.so.1

libm.so.1

libcl.so.1

libpthread.so.1

libdl.so.1

libnsl.so.1

shared library mapped private disabled

shared vtable support disabled

explicit unloading enabled

linkage table protection disabled

segments:

index type address flags size

6 text 4000000000000000 z---c- D (default)

7 data 6000000000000000 -m D (default)

kernel assisted branch prediction enabled

lazy swap allocation for dynamic segments disabled

nulptr dereferences trap disabled

address space model: default

caliper dynamic instrumentation disabled

GPILDMS:/>>cc -V

(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11 2006]

GPILDMS:/>>aCC -V

ksh: aCC: not found

Regards

Edited by: Singh Dharm on Mar 30, 2011 8:29 AM

former_member319296
Participant
0 Kudos

We are also in touch with HP vendor regarding the issue and they are saying to either use their own supported apache version from link

https://h20392.www2.hp.com/portal/swdepot/try.do?productNumber=HPUXWSATW233

or rebuild rebuild xmltok.lo (and everything else) in 64-bit mode.

Please advice can we use the vendor provided apache for content server ?

Regards

markus_doehr2
Active Contributor
0 Kudos

It seems you only have the bundled C compiler, this one is only sufficient to relink the kernel but not to build software.

Check

http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=4b080f1ba...

Markus

former_member319296
Participant
0 Kudos

Hi Markus , After suggestion from vendor we did a make clean and again tried to compile the apache source in 64 bit after exporting the environment variable , the configure and make phased went fine however the "make install" is throwing u time error

cp: utime failed /home/sapcsc/httpd-2.0.52/srclib/apr/include/apr_getopt.h: Not owner

Also , can you suggest in case this fails can we use the HP suggested apache supported source.?

Regards

markus_doehr2
Active Contributor
0 Kudos

> Hi Markus , After suggestion from vendor we did a make clean and again tried to compile the apache source in 64 bit after exporting the environment variable , the configure and make phased went fine however the "make install" is throwing u time error

> cp: utime failed /home/sapcsc/httpd-2.0.52/srclib/apr/include/apr_getopt.h: Not owner

Are you using the same user to compile and install?

> Also , can you suggest in case this fails can we use the HP suggested apache supported source.?

Compiling sources requires a full featured compiler which doesn't come with the OS but need to be bought and installed separately.

Check

http://www.hp.com/products1/unix/webservers/?jumpid=go/webserver

to download a compiled version.

Markus

former_member319296
Participant
0 Kudos

The issue got resolved after deleting whole apache tree structure and using make clean and again compiled from beginning using 64 bit env variable .

Regards