Re: Apxs problem

2001-07-30 Thread vibha . mullick . b


You got to fix apxs script, add -bexpall to the CFG_LDFLAGS_SHLIB entry in the
apxs script. I did this and apxs was fixed.






Mykola A. Nickishov [EMAIL PROTECTED] on 07/28/2001 06:01:10 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: Apxs problem


Aaron Cooper [EMAIL PROTECTED] writes:

 I re-installed the apache web server , building it from source.  Now I am
trying to configure tomcat with apache using the mod_jk web adapter.  However,
when I run apxs, it produces the following message:

 gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE
-
 DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include
-I
 /opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
 apxs:Break: Command failed with rc=255
 Error with apxs

I found answer in posting by Scott Tatum from April, 25:
You should edit the $APACHE_HOME/bin/apxs file (it's a perl
script). You should see some lines like this after initial comments
are done:

--- before ---
my $CFG_LD_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl

--- after ---
my $CFG_LD_SHLIB  = q(gcc);  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-shared); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl

In my case this solve the problem :)

--
ICQ #83060237
MAN-UANIC NIK6-RIPE









Re: Apxs problem

2001-07-28 Thread Jerry QU

I have the same error on linux, so I use binary from www.apache.org

Jerry

- Original Message - 
From: Mykola A. Nickishov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 28, 2001 6:51 AM
Subject: Re: Apxs problem


 Aaron Cooper [EMAIL PROTECTED] writes:
 
  I re-installed the apache web server , building it from source.  Now I am trying 
to configure tomcat with apache using the mod_jk web adapter.  However, when I run 
apxs, it produces the following message:
  
  gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -
  DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I
  /opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
  apxs:Break: Command failed with rc=255
  Error with apxs
 
 I have the same :(
 
 -- 
 ICQ #83060237
 MAN-UANIC NIK6-RIPE
 



Re: Apxs problem

2001-07-28 Thread Mykola A. Nickishov

Aaron Cooper [EMAIL PROTECTED] writes:

 I re-installed the apache web server , building it from source.  Now I am trying to 
configure tomcat with apache using the mod_jk web adapter.  However, when I run apxs, 
it produces the following message:
 
 gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -
 DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I
 /opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
 apxs:Break: Command failed with rc=255
 Error with apxs

I found answer in posting by Scott Tatum from April, 25:
You should edit the $APACHE_HOME/bin/apxs file (it's a perl
script). You should see some lines like this after initial comments
are done: 

--- before ---
my $CFG_LD_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(); # substituted via Makefile.tmpl 
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl 

--- after ---
my $CFG_LD_SHLIB  = q(gcc);  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-shared); # substituted via Makefile.tmpl 
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl 

In my case this solve the problem :)

-- 
ICQ #83060237
MAN-UANIC NIK6-RIPE



Re: Apxs problem

2001-07-27 Thread Mykola A. Nickishov

Aaron Cooper [EMAIL PROTECTED] writes:

 I re-installed the apache web server , building it from source.  Now I am trying to 
configure tomcat with apache using the mod_jk web adapter.  However, when I run apxs, 
it produces the following message:
 
 gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -
 DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I
 /opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
 apxs:Break: Command failed with rc=255
 Error with apxs

I have the same :(

-- 
ICQ #83060237
MAN-UANIC NIK6-RIPE



Apxs problem

2001-07-26 Thread Aaron Cooper

HI folks

I re-installed the apache web server , building it from source.  Now I am trying to 
configure tomcat with apache using the mod_jk web adapter.  However, when I run apxs, 
it produces the following message:

gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -
DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I
/opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
apxs:Break: Command failed with rc=255
Error with apxs


I've read the mod_jk howto website, and it says to rebuild the apache web server from 
source... but that is what I just finished doing :)

Any ideas? 

Cheers

Aaron




apxs problem with solaris 7

2001-05-07 Thread Billigmeier, Chad
Title: apxs problem with solaris 7 





When I give the magic apxs incantation found in the mod_jk configuration instructions page...I get lots of smooth looking output followed by this little gem...

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_worker.c

 -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o 

apxs:Break: Command failed with rc=255


Hmm...I'm using Solaris7 with gcc in the path along with working Perl  5. Any ideas/encouragement would be great.


Chad Prey





RE: mod_jserv does not build on Unix - apxs problem

2001-04-24 Thread Lian, Xiaobu (Alice) (Xiaobu (Alice))

Hi Milt,

Thanks for your information.  I could not find the strict.pm any where in 
our perl5 lib directory.  I use perl 5.6.1.  Is it possible perl 5.6.1 has 
something changed that does not work for apxs we use to build mod_jk?

I downloaded the perl 5.6.1 and installed it in hp-ux.  I did not see any
problem
with it yet.  Where do you think I can get some information about this
problem?
Thanks a lot!

Alice

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 11:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: mod_jserv does not build on Unix


On Tue, 24 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

 Hi Uma,

 Have you received any response for this?  I have had the same
 problem when I was building mod_jk. Since I could not figure out
 the good solution, I just edited the file apxs and commented out the
 line use strict;.  It passed the procedure and I have mod_jk built
 successfully.  I do not know what I have missed, and could not find
 the strict.pm, either.  Just FYI.  I hope somebody can help with this.
 Thanks!

Don't think commenting that line out is a good idea.

Sounds like Perl might be mis-configured on your system.  The strict
module is part of the core Perl distribution, and has been for a while
(one system I'm on has 5.003, and it has it).  Can you find the file
strict.pm under any of the directories listed as part of @INC?  You
can go to the topmost directory in the perl lib structure, and run the
following command:

  find . -name strict.pm

If it's there, and it's not in one of the directories listed as part
of @INC, you've got a problem, and if it's not there, you've also got
a problem :-).  Might want to talk to your system administrator.


 -Original Message-
 From: S Uma [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 1:58 AM
 To: [EMAIL PROTECTED]
 Subject: mod_jserv does not build on Unix


 Hello,

 I am a new user of tomcat on Unix. I need to use Tomcat with Apache. I
 tried to build mod_jserv on Unix and it gave the following error.

 Can't locate strict.pm in @INC (@INC contains:
 /Applications/App_Dirs/perl5/lib/PA-RISC1.1/5.00404
 /Applications/App_Dirs/perl5/lib
 /Applications/App_Dirs/perl5/lib/site_perl/PA-RISC1.1
 /Applications/App_Dirs/perl5/lib/site_perl .) at
 /usr/apache_1.3.19/bin/apxs line 67.
 BEGIN failed--compilation aborted at /usr/apache_1.3.19/bin/apxs line 67

 I have Perl 5 installed on my machine. Is there anything that I am
 missing?

 Has anyone tried this before?

 Please respond. I have posted this message already and I did not get any
 reply.

 Thanks,
 Uma


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



apxs problem revisited for mod_jserv.so build

2000-11-22 Thread Mathew Thomas

I am installing Tomcat 3.1 on my freshly installed SuSE 7.0 system with
apache 1.3.14 and when I try to build mod_jserv.so I get the following
error:

/usr/local/apache/bin/apxs -c *.c -o mod_jserv.so
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c autochange.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_ajpv11.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_ajpv12.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_balance.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_image.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_mmap.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_protocols.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_status.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_utils.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_watchdog.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper_unix.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper_win.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c mod_jserv.c
  -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o
jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o
jserv_ajpv12.o jserv_ajpv11.o autochange.o -o mod_jserv.so
apxs:Break: Command failed with rc=255


I looked this up in the Tomcat archives and found that many others had
encountered this problem and were able to resolve it by changing the
order of args to apxs.  Instead of using:
/usr/local/apache/bin/apxs -c *.c -o mod_jserv.so
I instead tried:
/usr/local/apache/bin/apxs -o mod_jserv.so -c *.c
Unfortunately, I get the same error both ways.   Has anyone successfully
built this with the configuration I mentioned above??  Any help will be
appreciated!  By the way, I did build Apache 1.3.14 from scratch with
mod_so installed.

Thanks,
Mathew Thomas
[EMAIL PROTECTED]