You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Lian, Xiaobu (Alice) (Xiaobu (Alice))" <li...@agere.com> on 2001/04/19 16:47:02 UTC

mod_jk on hp-ux - need help

Hi,

I am new to the list and new to tomcat/apache.   

I installed apache 1.3.17 and tomcat 2.3.1 on our HP server, running hp-ux
11.00 (64bit).
Both are running well standalone with simple configurations.  We need to
make tomcat
working with apache.  Now I am working on building mod_jk and had some
problems.

Instructions I used include Tomcat - A Minimalistic User's Guide,
Tomcat-Apache HOWTO,
and mod_jk-howto.html.  Finally I found build-hpux.sh and build-hpux-cc.sh
in 
jacarta-tomcat-3.3-m2-src.tar.

When I run build-hpux.sh, or execute the following command
  $APACHE_HOME/bin/apxs -o mod_jk.so -I../common -I/opt/java/include
-I/opt/java/include/hp-ux
   -c *.c ../common/*.c

I have received the same error message:
	Can't locate strict.pm @INC (@INC contains:
/opt/perl5/lib/5.6.1/PA-RISC1 ... )
      at /usr/local/apache/bin/apxs line 68.
      BEGIN failed--comilation aborted at /usr/local/apache/bin/apxs line
68.

Line 68 or apex:
  use strict;

Does anybody know what this mean and how should I fix it?

When I comment off this line, and run the same script or apxs directly, 
I had some other error messsages:
     (bundled) cc: warning 480:  The -A option is available only with the
C/ANCI C product; ignored.
     ...
     (bundled) cc: error 2017: Cannot recover from earlier errors,
terminating.
      apxs: Break: Command failed with rc=1

Then I changed apxs on line 76:  q(cc) --> q(gcc)
This time the error messages are related to gcc:
    gcc: +z No such file or directory
    gcc: unrecognized option '-02'
    ...
    apxs: Break: Command failed with rc=1 

I do not know much about perl. It seems I had a wrong apxs.  
Is there any easy way to fix it?  Or I have to recompile the apache
completely.
Or there might be some other way I can get the mod_jk I need for hp-ux?

Thanks a lot for any information and help!

Alice

Xiaobu Alice Lian
Database Engineer
Agere Systems
lianx@agere.com
(484)397-2583 

I  

RE: mod_jk on hp-ux - need help

Posted by Mike Braden <mi...@nc.rr.com>.
Your best bet for success would be to re-build Apache.  This
will re-create the apxs script with the proper settings for
your system and avoid problems like this if you update
or use other apache modules.

You can download the source for apache from the site and use this
for a generic install (assumes apache source is in /usr/local/src):

# cd /usr/local/src
# gzip -dc apache_1.3.19.tar.gz|tar xvf -
# cd apache_1.3.19
# ./configure --prefix=/usr/local/apache \
              --enable-module=most \
              --enable-shared=max
# make
# make install

You should use gcc, the compiler included with HP-UX is just for
building new kernels and doesn't include full support.

If you are still having problems, post them.  I can also send you
a binary of mod_jk for HP-UX if you like.

Use strict just tells perl to check the script's syntax and enforce
strict rules.  Not sure why you are getting that error.  I used
Perl 5.6.0 with my apache/mod_jk build OK.

Mike.
--
Mike Braden
mikeb@nc.rr.com
mikeb@mwbinc.com 

-----Original Message-----
From: Lian, Xiaobu (Alice) (Xiaobu (Alice)) [mailto:lianx@agere.com]
Sent: Thursday, April 19, 2001 10:47 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: mod_jk on hp-ux - need help


Hi,

I am new to the list and new to tomcat/apache.   

I installed apache 1.3.17 and tomcat 2.3.1 on our HP server, running hp-ux
11.00 (64bit).
Both are running well standalone with simple configurations.  We need to
make tomcat
working with apache.  Now I am working on building mod_jk and had some
problems.

Instructions I used include Tomcat - A Minimalistic User's Guide,
Tomcat-Apache HOWTO,
and mod_jk-howto.html.  Finally I found build-hpux.sh and build-hpux-cc.sh
in 
jacarta-tomcat-3.3-m2-src.tar.

When I run build-hpux.sh, or execute the following command
  $APACHE_HOME/bin/apxs -o mod_jk.so -I../common -I/opt/java/include
-I/opt/java/include/hp-ux
   -c *.c ../common/*.c

I have received the same error message:
	Can't locate strict.pm @INC (@INC contains:
/opt/perl5/lib/5.6.1/PA-RISC1 ... )
      at /usr/local/apache/bin/apxs line 68.
      BEGIN failed--comilation aborted at /usr/local/apache/bin/apxs line
68.

Line 68 or apex:
  use strict;

Does anybody know what this mean and how should I fix it?

When I comment off this line, and run the same script or apxs directly, 
I had some other error messsages:
     (bundled) cc: warning 480:  The -A option is available only with the
C/ANCI C product; ignored.
     ...
     (bundled) cc: error 2017: Cannot recover from earlier errors,
terminating.
      apxs: Break: Command failed with rc=1

Then I changed apxs on line 76:  q(cc) --> q(gcc)
This time the error messages are related to gcc:
    gcc: +z No such file or directory
    gcc: unrecognized option '-02'
    ...
    apxs: Break: Command failed with rc=1 

I do not know much about perl. It seems I had a wrong apxs.  
Is there any easy way to fix it?  Or I have to recompile the apache
completely.
Or there might be some other way I can get the mod_jk I need for hp-ux?

Thanks a lot for any information and help!

Alice

Xiaobu Alice Lian
Database Engineer
Agere Systems
lianx@agere.com
(484)397-2583 

I