I think I had the same problem once and solved it
just that way. Rename gmake. The worstr that'll
happen is that the build still won't work.

At 05:50 PM 4/19/2001 -0400, you wrote:
>In order to solve my mod_jk problem on hp-ux, I took the advice from
>Mike Braden.  Thanks a lot to Mike!
>
>I tried to configure with apache_1.3.17 which I downloaded before,
>but received some error messages.  Then I download apache_1.3.19 and
>redo the configure command, and saw the same error messages as below.
>
>My questions are:
>   1. why gcc has been recognized first, and then some Error message about
>ANSI C
>      still was shown: "Apache requires an ANSI C Compiler, such as gcc."
>   2. I have downloadeded gnu make, but still have problem with it. (path is
>      (/opt/gcc/bin/gmake - should I rename gmake to make?)
>      How can I fix the problem with
>       "A test compilation with your Makefile configuration failed."
>
>  ( I have gnu gcc and gnu make installed in my server with the PATH setup to
>them.
>    Is there anything else I need to do before running configure? )
>
>Here is the command I run:
># cd apache_1.3.19
># ./configure --prefix=/usr/local/apache \
>               --enable-module=most \
>               --enable-shared=max
>
>***** Screen captures of the error message *****
>
>Configuring for Apache, Version 1.3.19
>  + using installation path layout: Apache (config.layout)
>Creating Makefile
>Creating Configuration.apaci in src
>  + enabling mod_so for DSO support
>Creating Makefile in src
>  + configured for HP-UX 11 platform
>  + setting C compiler to gcc
>  + setting C pre-processor to gcc -E
>  + checking for system header files
>  + adding selected modules
>     o rewrite_module uses ConfigStart/End
>       disabling DBM support for mod_rewrite
>       (perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS)
>     o dbm_auth_module uses ConfigStart/End
>  + checking sizeof various data types
>  + doing sanity check on compiler and options
>** A test compilation with your Makefile configuration
>** failed.  The below error output from the compilation
>** test will give you an idea what is failing. Note that
>** Apache requires an ANSI C Compiler, such as gcc.
>
>         cd ..; gcc  -DHPUX11 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT
>-I./lib/expat-lite `./apaci`     -o helpers/dummy helpers/dummy.c   -lm
>-lpthread
>as: "/var/tmp/cc4VDJjb.s", line 14: error 1052: Directive name not
>recognized - NSUBSPA
>as: "/var/tmp/cc4VDJjb.s", line 46: error 1052: Directive name not
>recognized - NSUBSPA
>*** Error exit code 1
>
>Stop.
>======== Error Output for sanity check ========
>============= End of Error Report =============
>
>  Aborting!
>
>**** End of screen captures ****
>
>
>Does anybody have some ideas about what was wrong?  Any advice?
>Thanks a lot!
>
>Alice
>
>Xiaobu Alice Lian
>Database Engineer
>Agere Systems
>[EMAIL PROTECTED]
>(484)397-2583
>
>
>-----Original Message-----
>From: Mike Braden [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 19, 2001 1:35 PM
>To: [EMAIL PROTECTED]
>Subject: RE: mod_jk on hp-ux - need help
>
>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
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>
>-----Original Message-----
>From: Lian, Xiaobu (Alice) (Xiaobu (Alice)) [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 19, 2001 10:47 AM
>To: '[EMAIL PROTECTED]'
>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
>[EMAIL PROTECTED]
>(484)397-2583
>
>I

Reply via email to