Operating System - HP-UX
1753705 Members
4925 Online
108799 Solutions
New Discussion юеВ

Re: Apache installation error /usr/lib/hpux32/dld.so

 
Prashantj
Valued Contributor

Apache installation error /usr/lib/hpux32/dld.so

Hi,

We have installed Apache 1.3.42 on hpux 11.31
but we are facing below issue.

# ./apachectl start
/usr/lib/hpux32/dld.so: '/usr/sap/apache/libexec/mod_sapcsc.so' is not a valid load module: Bad magic number
Syntax error on line 206 of /usr/sap/apache/conf/httpd.conf:
Cannot load /usr/sap/apache/libexec/mod_sapcsc.so into server: Invalid argument
./apachectl start: httpd could not be started

Please advice

Prashant
Good judgment comes from experience and experience comes from bad judgment.
13 REPLIES 13
Torsten.
Acclaimed Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

>> Syntax error on line 206 of /usr/sap/apache/conf/httpd.conf:



You should check and adjust this line.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Prashantj
Valued Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

Hi Torsten,

Thanks for your reply.
i have checked,
LoadModule sapcsc_module ibexec/mod_sapcsc.so
LoadModule sapcs_module libexec/mod_sapcs.so
and
AddModule mod_sapcsc.cpp
AddModule mod_sapcs.cpp

above path loaded while sap contend server installation.

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Steven Schweda
Honored Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

> >> Syntax error on line 206 of
> /usr/sap/apache/conf/httpd.conf:

> You should check and adjust this line.

Probably not. "Syntax error" is a generic
Apache error message, and, while it usually
means that Apache is unhappy about something
for some reason, it seldom means that there's
actually a _syntax_ error where it says there
is.

> above path loaded while sap contend server
> installation.

I know nothing, but if your "sap contend
server installation" has left you with files
which dld.so can't use, then I'd try asking
the people who supplied this software about
this problem.
Dennis Handly
Acclaimed Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

dld.so: /usr/sap/apache/libexec/mod_sapcsc.so is not a valid load module: Bad magic number

This shlib is bad. (What Steven said.) Either get a valid Integrity replacement or remove all mention of that shlib.
Prashantj
Valued Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

Hi Dennis / Steven,

Thanks for your response. If i remove these line then Apache web server working fine but SAP showing HTTP:404 error, he unable to connect HTTP server.
If i continue with these line, then Apache not work.

i have check that file command showing 64 bits for usr/sap/apache/libexec/mod_sapcsc.so
and /usr/sap/apache//bin/httpd showing 32 bits.

That means Apache 1.3.42 is 32 bits and syntex line eoor is 64 bits.

Can u advice how i change 32 bits to 64 bits
or any other way to resolve this issue ?

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Dennis Handly
Acclaimed Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

>Can you advice how I change 32 bits to 64 bits
or any other way to resolve this issue?

You can't without recompiling. You can only install a 64 bit apache to match your 64 bit mod_sapcsc.so.

Or ask SAP to give you a 32 bit version.
Prashantj
Valued Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

Hi Dennis,

Can u tell me how to recompiling ?

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Dennis Handly
Acclaimed Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

>Can you tell me how to recompiling?

You would have to have the source to recompile. (I assumed you would reject this as too hard.)

Given that /usr/sap has both the httpd and mod_sapcsc.so, any reason they aren't consistent?
Prashantj
Valued Contributor

Re: Apache installation error /usr/lib/hpux32/dld.so

Hi All,

Now i have installed Apache httpd-2.2.17.
But after ./configuration, while running make at end it showing below error.

[rudmsprd]# make
Making all in srclib
Making all in apr
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
sed 's,^\(apr_build.*=\).*$,\1/usr/sap/apache/build,' < build/apr_rules.mk > build/apr_rules.out
Making all in apr-util
/bin/sh /sapcd/httpd-2.2.17/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DHPUX11 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE -I/sapcd/httpd-2.2.17/srclib/apr-util/include -I/sapcd/httpd-2.2.17/srclib/apr-util/include/private -I/sapcd/httpd-2.2.17/srclib/apr/include -Ibuildin/include -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:19: error: expat.h: No such file or directory
xml/apr_xml.c:66: error: expected specifier-qualifier-list before 'XML_Parser'
xml/apr_xml.c: In function 'cleanup_parser':
xml/apr_xml.c:344: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:345: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: At top level:
xml/apr_xml.c:364: error: expected ';', ',' or ')' before '*' token
xml/apr_xml.c: In function 'apr_xml_parser_create':
xml/apr_xml.c:381: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:382: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:390: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:391: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:392: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:404: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:404: error: 'default_handler' undeclared (first use in this function)
xml/apr_xml.c:404: error: (Each undeclared identifier is reported only once
xml/apr_xml.c:404: error: for each function it appears in.)
xml/apr_xml.c: In function 'do_parse':
xml/apr_xml.c:414: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:418: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:422: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:422: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: In function 'apr_xml_parser_geterror':
xml/apr_xml.c:480: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:480: error: 'apr_xml_parser' has no member named 'xp_err'
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

But missing file avaiable in below path
# find / -name expat.h -print
/opt/gtk2.6/include/expat.h
/opt/hpws/apache/include/expat.h
/sapcd/httpd-2.2.17/srclib/apr-util/xml/expat/lib/expat.h

Please advice.

Prashant
Good judgment comes from experience and experience comes from bad judgment.