Error building jk2: Do not use --with-apxs2 but --with-apxs
I am trying to build the jk2 by myself, and I keep getting the error Do not use --with-apxs2 but --with-apxs. Does it means that it couldn't recognized that I am using Apache2? I am using Apache2 and tomcat5.0.28. The command I ran: ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib --with-tomcat-41=/usr/local/tomcat--with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni --with-pcre --with-apr --with-apr-util --- checking for mkdir... /bin/mkdir no apxs given need to check for Perl first, apxs depends on it... checking for perl... /usr/bin/perl configure: error: Do not use --with-apxs2 but --with-apxs - - Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!
Re: Error building jk2: Do not use --with-apxs2 but --with-apxs
nyhgan wrote: I am trying to build the jk2 by myself, and I keep getting the error Do not use --with-apxs2 but --with-apxs. Does it means that it couldn't recognized that I am using Apache2? From memory, the version of apxs isn't related to the one of apache. It should be fine configuring with --with-apxs and using apache2 I am using Apache2 and tomcat5.0.28. The command I ran: ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib--with-tomcat-41=/usr/local/tomcat--with-java-home=/usr/java/j2sdk1.4.2_04--with-jni --with-pcre --with-apr --with-apr-util - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error building jk2: Do not use --with-apxs2 but --with-apxs (solved)
I fixed the problem now. The problem was because the path to the apxs I used was from apache13. ie, it works after I changed --with-apxs2=/usr/sbin/apxs to --with-apxs2=/usr/local/apache2/bin/apxs Olivier Jolly [EMAIL PROTECTED] wrote:nyhgan wrote: I am trying to build the jk2 by myself, and I keep getting the error Do not use --with-apxs2 but --with-apxs. Does it means that it couldn't recognized that I am using Apache2? From memory, the version of apxs isn't related to the one of apache. It should be fine configuring with --with-apxs and using apache2 I am using Apache2 and tomcat5.0.28. The command I ran: ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib --with-tomcat-41=/usr/local/tomcat --with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni --with-pcre --with-apr --with-apr-util - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish.
Redhat9 / apxs / mod_jk2 build problem.
I have been trying to compile the mod_jk2.so connector, but having problems. I have the following: O/S - RedHat9.0 Apache2.0.48 installed from source and working standalone on port 80 443 at /usr/local/apache2 jakarta-tomcat-4.1.29 installed and working standalone on port 8080 at /usr/local/jakarta-tomcat-4.1.29 java at /usr/local/j2sdk1.4.2 (also tested and working ok) Apache was configured as follows: # ./configure --enable-rewrite --enable-speling --enable-shared=max --enable-module=so \ --enable-ssl --enable-cgi --enable-info --enable-usertrack --enable-deflate \ --enable-mime-magic --with-ssl=/usr/local/ssl I obtained jakarta-tomcat-connectors-jk2-src-current.tar.gz and did the following: # gunzip jakarta-tomcat-connectors-jk2-src-current.tar.gz # tar -xvf jakarta-tomcat-connectors-jk2-src-current.tar # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # sh ./buildconf.sh # ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-tomcat41=/usr/local/jakarta-tomcat-4.1.29 \ --with-jni --with-jave-home=/usr/local/j2sdk1.4.2 # make Now, according to most of the how-tos I have looked at, I should have a copy of mod_jk2.so and jkjni.so waiting for me in /usr/local/src/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apac he2/ Unfortunatly all that is here are the following files: # ls -l ../build/jk2/apache2/ | grep mod_jk2 -rw-r--r--1 root root 3064400 Jan 12 11:48 mod_jk2.a -rw-r--r--1 root root 666 Jan 12 11:48 mod_jk2.la -rw-r--r--1 root root 10 Jan 12 11:48 mod_jk2.lo -rw-r--r--1 root root 103024 Jan 12 11:48 mod_jk2.o # ls -l ../build/jk2/apache2/ | grep jkjni -rw-r--r--1 root root 2680734 Jan 12 11:48 jkjni.a -rw-r--r--1 root root 728 Jan 12 11:48 jkjni.la I have had a look through the mailing list archives, and have seen this problem before, but unfortunately I don't see a solution for it. Any help finding a way forward is appreciated, James Snelling James Snelling [EMAIL PROTECTED] --- The views expressed here are not those of the Students' Association nor can they be assumed to be those of the writer. No liability is accepted for the accuracy or the veracity of the contents. You are held to accept this and any use to which you put any contents of this communication are entirely your responsibility. DISCLAIMER: This e-mail is intended solely for the above-mentioned recipient and it may contain confidential or privileged information. If you have received it in error, please notify us immediately and delete the e-mail. You must not copy, distribute, disclose or take any action in reliance on it. This e-mail message and any attached files have been scanned for the presence of computer viruses, however, you are advised that you open any attachments at your own risk. Nothing in this email shall be construed as constituting an order for goods or services www.upsa.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redhat9 / apxs / mod_jk2 build problem.
On Mon, 2004-01-12 at 13:11, James Snelling wrote: Any help finding a way forward is appreciated, a cannot help you for your specific problem, but i built mod_jk2 two days ago on fedora, and succeeded. perhaps this solves your problem too... you can find the description in the archives, http://www.mail-archive.com/[EMAIL PROTECTED]/msg114982.html cheers, martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redhat9 / apxs / mod_jk2 build problem.
James, I don't know about jakarta-tomcat-connectors-jk2-src-current.tar.gz, but the latest CVS snapshot has some problems during make. It appears to be an issue with the configure scripts (actually multiple issues) that need to be addressed. The best bet is to use the 2.0.2 source and compile from there. As discussed on the mailing list you'll be able to get sockets (both IP and UNIX) working, but in-process is currently not possible with the available multi-processor modules in apache. Also, add --with-pcre and --with-os-type=include/linux to your ./configure command for mod_jk2. Finally, you'll need to tweak the Makefile in server/apache2 of mod_jk2. The JK_LDFLAGS line should read: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix -laprutil-0 HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't find apxs
When trying to run buildconf.sh I get this error message could not find /usr/local/apache/bin/apxs configure: error: You must specify a valid --with-apxs path But that is the correct path Any Suggestions? Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk with apxs
Hi guys, I am using apache 2.0.40 that came with my redhat distribution and I am trying to make my mod_jk from source. Apparently I have to do './configure --with-apxs=path_to_apxs' However, my problem is that I do not appear to have apxs. Is that a problem, what should I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_jk with apxs
Install 2.0.46 from source... :) -e On Tue, 8 Jul 2003, Dumisani Nlebgwa wrote: Hi guys, I am using apache 2.0.40 that came with my redhat distribution and I am trying to make my mod_jk from source. Apparently I have to do './configure --with-apxs=path_to_apxs' However, my problem is that I do not appear to have apxs. Is that a problem, what should I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_jk with apxs
You have it, its part of the Apache distribution. You just need to find it and use the appropriate path. It might be an additional RPM, such as httpd-devel or whatever, in addition to httpd. John On Tue, 8 Jul 2003 16:34:20 -0400 (EDT), Dumisani Nlebgwa [EMAIL PROTECTED] wrote: Hi guys, I am using apache 2.0.40 that came with my redhat distribution and I am trying to make my mod_jk from source. Apparently I have to do './configure --with-apxs=path_to_apxs' However, my problem is that I do not appear to have apxs. Is that a problem, what should I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webapp.so building problem -- apxs unworkable
I found that I had to upgrade my automake (1.7) and autoconf (2.54) to the latest versions in order to build the new connectors. Check http://www.gnu.org/ for the latest versions. On Thu, 2002-09-26 at 18:40, haixi liu wrote: Hello, I am having this problem when trying to build webapp.so for my tomcat4.1.12 to work with apache 1.3.26. I downloaded connector package at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jakarta-tomcat-connectors-4.1.12-src.tar.gz After untar the file, I went into the webapp directory. ./support/buildconf.sh executed fine. When I tried: ./configure --with-apxs=/usr/local/apache/bin/apxs I got the following: == Configuring WebApp Module + checking build system type... i686-pc-linux-gnu + checking host system type... i686-pc-linux-gnu + checking for sources directory path... /home/gims/files/webapp + checking for build directory path... /home/gims/files/webapp Checking Apache APXS + checking for apxs name... /usr/local/apache/bin/apxs + checking for apxs directory path... /usr/local/apache/bin + checking for apxs... /usr/local/apache/bin/apxs + checking for apxs availability... /usr/local/apache/bin/apxs + checking for apxs version... /usr/local/apache/bin/apxs (1.3) + checking for apxs sanity... error configure: error: apxs is unworkable I could not figure out what's going on. Could any of you help me on this? My system is RH 7.3. Thanks a lot Haixi _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Thad Humphries ...no religious test shall ever be required Web Development Manager as a qualification to any office or public Phone: 540/675-3015, x225trust under the United States. -Article VI -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
webapp.so building problem -- apxs unworkable
Hello, I am having this problem when trying to build webapp.so for my tomcat4.1.12 to work with apache 1.3.26. I downloaded connector package at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jakarta-tomcat-connectors-4.1.12-src.tar.gz After untar the file, I went into the webapp directory. ./support/buildconf.sh executed fine. When I tried: ./configure --with-apxs=/usr/local/apache/bin/apxs I got the following: == Configuring WebApp Module + checking build system type... i686-pc-linux-gnu + checking host system type... i686-pc-linux-gnu + checking for sources directory path... /home/gims/files/webapp + checking for build directory path... /home/gims/files/webapp Checking Apache APXS + checking for apxs name... /usr/local/apache/bin/apxs + checking for apxs directory path... /usr/local/apache/bin + checking for apxs... /usr/local/apache/bin/apxs + checking for apxs availability... /usr/local/apache/bin/apxs + checking for apxs version... /usr/local/apache/bin/apxs (1.3) + checking for apxs sanity... error configure: error: apxs is unworkable I could not figure out what's going on. Could any of you help me on this? My system is RH 7.3. Thanks a lot Haixi _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: sourcepath problem in building tomcat (apxs pb building mod_j k.so)
Larry, thanks. cheers, -bill --- Larry Isaacs [EMAIL PROTECTED] wrote: The Tomcat 3.3 release is built on a Sun box running SunOS. It has no problem using the build.xml file as is. I don't know why your system is having trouble with the ';' in build.xml, though perhaps its a JDK 1.2.1 issue, assuming thats what you are still using. You are correct that the ant build doesn't build mod_jk.so. Building of the native connectors is done separately. Given that I'm pretty much a Windows person, and don't know much about Solaris, someone else will have to provide advice about how to get mod_jk.so to build on Solaris. You might search the tomcat-user archive to see if similar errors have been encountered in the past. Cheers, Larry -Original Message- From: Bill Cai [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 1:32 AM To: [EMAIL PROTECTED] Cc: Bill Cai Subject: Re: sourcepath problem in building tomcat (apxs pb building mod_jk.so) I think the problem is it didn't like the ;s in the value of sourcepath. It no longer complains after I changed them to :s. I guess the source was for Windows platform. On Solaris ; means end of the command... However, it still complains about srcdir in the following block: target name=tomcat_util depends=init javac destdir=${tomcat.build}/classes debug=${debug} optimize=${optimize} deprecation=off srcdir=src/share Actually, what I want is mod_jk.so. Not sure ant it will build the whole thing including mod_jk.so? I went to build/tomcat/apache1.3 to build mod_jk.so individually by using build-solaris.sh or build-unix.sh. But both of them failed apxs from my apache installation. I didn't install a binary version of apache. I built it by using: configure --prefix=/usr/local/apache \ --enable-module=most --enable-shared=max But that failed on linking from apxs. i.e., didn't product an mod_jk.so Thanks, Bill From: Larry Isaacs Subject: RE: sourcepath problem in building tomcat Date: Wed, 24 Oct 2001 08:20:32 -0400 I don't use JDK1.2.1, so I don't know much of the details about it. However, the help message: [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-deprecation][-d dir][-Jruntime flag] file.java... is very 1.1.8-like and doesn't support the -sourcepath argument. I would guess that Ant is thinking the JDK is Java2 and assumes the javac supports the -sourcepath argument. Maybe this isn't a correct assumption for JDK 1.2.1. I would highly recommend upgrading your JDK. I think there are other problems in store if you continue using it. If you upgrade, I think your compile problem would disappear. Cheers, Larry It is jdk 1.2.1: java version 1.2.1 Solaris VM (build Solaris_JDK_1.2.1_04, native threads, sunwjit) Thanks, Bill --- Bill Cai [EMAIL PROTECTED] wrote: I thought that I was using at least jdk1.2. But I willl check tonight because I have multiple jdks installed. Thanks, Bill From: Larry Isaacs Subject: RE: sourcepath problem in building tomcat Date: Tue, 23 Oct 2001 12:51:51 -0400 It appears that the javac being executed is coming from JDK 1.1.8. Is JDK1.1.8 what you want to be using, or is an old javac being picked up by mistake? If JDK 1.1.8 is correct, I would like to see the log for the detect: through init: targets. Larry --- Bill Cai [EMAIL PROTECTED] wrote: I always got the following error when building tomcat by using ant. I tried ant 1.1 1.2 1.4. Any idea? tomcat_util: [javac] Compiling 91 source files to /usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build/tomcat/classes [javac] javac: invalid flag: -sourcepath [javac] use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-deprecation][-d dir][-Jruntime flag] file.java... BUILD FAILED /usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build.xml:206: Compile failed, messages should have been provided. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http
Re: sourcepath problem in building tomcat (apxs pb building mod_jk.so)
I think the problem is it didn't like the ;s in the value of sourcepath. It no longer complains after I changed them to :s. I guess the source was for Windows platform. On Solaris ; means end of the command... However, it still complains about srcdir in the following block: target name=tomcat_util depends=init javac destdir=${tomcat.build}/classes debug=${debug} optimize=${optimize} deprecation=off srcdir=src/share Actually, what I want is mod_jk.so. Not sure ant it will build the whole thing including mod_jk.so? I went to build/tomcat/apache1.3 to build mod_jk.so individually by using build-solaris.sh or build-unix.sh. But both of them failed apxs from my apache installation. I didn't install a binary version of apache. I built it by using: configure --prefix=/usr/local/apache \ --enable-module=most --enable-shared=max But that failed on linking from apxs. i.e., didn't product an mod_jk.so Thanks, Bill From: Larry Isaacs Subject: RE: sourcepath problem in building tomcat Date: Wed, 24 Oct 2001 08:20:32 -0400 I don't use JDK1.2.1, so I don't know much of the details about it. However, the help message: [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-deprecation][-d dir][-Jruntime flag] file.java... is very 1.1.8-like and doesn't support the -sourcepath argument. I would guess that Ant is thinking the JDK is Java2 and assumes the javac supports the -sourcepath argument. Maybe this isn't a correct assumption for JDK 1.2.1. I would highly recommend upgrading your JDK. I think there are other problems in store if you continue using it. If you upgrade, I think your compile problem would disappear. Cheers, Larry It is jdk 1.2.1: java version 1.2.1 Solaris VM (build Solaris_JDK_1.2.1_04, native threads, sunwjit) Thanks, Bill --- Bill Cai [EMAIL PROTECTED] wrote: I thought that I was using at least jdk1.2. But I willl check tonight because I have multiple jdks installed. Thanks, Bill From: Larry Isaacs Subject: RE: sourcepath problem in building tomcat Date: Tue, 23 Oct 2001 12:51:51 -0400 It appears that the javac being executed is coming from JDK 1.1.8. Is JDK1.1.8 what you want to be using, or is an old javac being picked up by mistake? If JDK 1.1.8 is correct, I would like to see the log for the detect: through init: targets. Larry --- Bill Cai [EMAIL PROTECTED] wrote: I always got the following error when building tomcat by using ant. I tried ant 1.1 1.2 1.4. Any idea? tomcat_util: [javac] Compiling 91 source files to /usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build/tomcat/classes [javac] javac: invalid flag: -sourcepath [javac] use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-deprecation][-d dir][-Jruntime flag] file.java... BUILD FAILED /usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build.xml:206: Compile failed, messages should have been provided. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
RE: sourcepath problem in building tomcat (apxs pb building mod_jk.so)
The Tomcat 3.3 release is built on a Sun box running SunOS. It has no problem using the build.xml file as is. I don't know why your system is having trouble with the ';' in build.xml, though perhaps its a JDK 1.2.1 issue, assuming thats what you are still using. You are correct that the ant build doesn't build mod_jk.so. Building of the native connectors is done separately. Given that I'm pretty much a Windows person, and don't know much about Solaris, someone else will have to provide advice about how to get mod_jk.so to build on Solaris. You might search the tomcat-user archive to see if similar errors have been encountered in the past. Cheers, Larry -Original Message- From: Bill Cai [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 1:32 AM To: [EMAIL PROTECTED] Cc: Bill Cai Subject: Re: sourcepath problem in building tomcat (apxs pb building mod_jk.so) I think the problem is it didn't like the ;s in the value of sourcepath. It no longer complains after I changed them to :s. I guess the source was for Windows platform. On Solaris ; means end of the command... However, it still complains about srcdir in the following block: target name=tomcat_util depends=init javac destdir=${tomcat.build}/classes debug=${debug} optimize=${optimize} deprecation=off srcdir=src/share Actually, what I want is mod_jk.so. Not sure ant it will build the whole thing including mod_jk.so? I went to build/tomcat/apache1.3 to build mod_jk.so individually by using build-solaris.sh or build-unix.sh. But both of them failed apxs from my apache installation. I didn't install a binary version of apache. I built it by using: configure --prefix=/usr/local/apache \ --enable-module=most --enable-shared=max But that failed on linking from apxs. i.e., didn't product an mod_jk.so Thanks, Bill From: Larry Isaacs Subject: RE: sourcepath problem in building tomcat Date: Wed, 24 Oct 2001 08:20:32 -0400 I don't use JDK1.2.1, so I don't know much of the details about it. However, the help message: [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-deprecation][-d dir][-Jruntime flag] file.java... is very 1.1.8-like and doesn't support the -sourcepath argument. I would guess that Ant is thinking the JDK is Java2 and assumes the javac supports the -sourcepath argument. Maybe this isn't a correct assumption for JDK 1.2.1. I would highly recommend upgrading your JDK. I think there are other problems in store if you continue using it. If you upgrade, I think your compile problem would disappear. Cheers, Larry It is jdk 1.2.1: java version 1.2.1 Solaris VM (build Solaris_JDK_1.2.1_04, native threads, sunwjit) Thanks, Bill --- Bill Cai [EMAIL PROTECTED] wrote: I thought that I was using at least jdk1.2. But I willl check tonight because I have multiple jdks installed. Thanks, Bill From: Larry Isaacs Subject: RE: sourcepath problem in building tomcat Date: Tue, 23 Oct 2001 12:51:51 -0400 It appears that the javac being executed is coming from JDK 1.1.8. Is JDK1.1.8 what you want to be using, or is an old javac being picked up by mistake? If JDK 1.1.8 is correct, I would like to see the log for the detect: through init: targets. Larry --- Bill Cai [EMAIL PROTECTED] wrote: I always got the following error when building tomcat by using ant. I tried ant 1.1 1.2 1.4. Any idea? tomcat_util: [javac] Compiling 91 source files to /usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build/tomcat/classes [javac] javac: invalid flag: -sourcepath [javac] use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-deprecation][-d dir][-Jruntime flag] file.java... BUILD FAILED /usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build.xml:206: Compile failed, messages should have been provided. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http
Getting a decent apxs under AIX5.1L
Hi all, I'm trying to get a decent apxs under AIX5.1L so's I can build mod_jk. When I run the basic Apache configure to build the first Makefile, I get the following error :- cd ..; gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I. /lib/expat-lite `./apaci` -lm -o helpers/dummy helpers/dummy.c -lld collect2: /lib/libm.a: not a COFF file make: *** [dummy] Error 1 Error Output for sanity check = End of Error Report = Anyone know what the heck not a COFF file is actually telling me? Thanks, Bob This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com
Newbie wants to compile mod_jk for existing Apache sans apxs
Hello, I have Apache 1.3.19 plopped down on my system as a result of installing Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it seems to work to the extent that I can look at the examples at localhost:8080/examples. I have the source code for mod_jk but I can't follow the instructions in mod_jk-howto.html because I have no apxs (at least that's what find says) since I didn't build Apache myself... TIA BT Higonnet
Re: Newbie wants to compile mod_jk for existing Apache sans apxs
apxs is in you apache/bin directory (ie /usr/local/apache/bin) set APACHE_HOME if you want to be clean. Bernard T. Higonnet wrote: Hello, I have Apache 1.3.19 plopped down on my system as a result of installing Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it seems to work to the extent that I can look at the examples at localhost:8080/examples. I have the source code for mod_jk but I can't follow the instructions in mod_jk-howto.html because I have no apxs (at least that's what find says) since I didn't build Apache myself... TIA BT Higonnet
Re: Newbie wants to compile mod_jk for existing Apache sans apxs
e-value - Maxime Mathon wrote: apxs is in you apache/bin directory (ie /usr/local/apache/bin) set APACHE_HOME if you want to be clean. Well, no. That's my problem. On my machine (a standard Mandrake installation (I did not tell it to put apache in some funny place) as far as I am aware) there is no /usr/local/apache/bin. The result of find / -name apxs is nothing. which apxs says he can't find it. The only other thing I can add is that, curiously, I do have the man page for apxs??? BT Higonnet Bernard T. Higonnet wrote: Hello, I have Apache 1.3.19 plopped down on my system as a result of installing Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it seems to work to the extent that I can look at the examples at localhost:8080/examples. I have the source code for mod_jk but I can't follow the instructions in mod_jk-howto.html because I have no apxs (at least that's what find says) since I didn't build Apache myself...
Re: Newbie wants to compile mod_jk for existing Apache sans apxs
The best things to do is to install apache1.3.19 with --enable-module=so in option. Bernard T. Higonnet wrote: e-value - Maxime Mathon wrote: apxs is in you apache/bin directory (ie /usr/local/apache/bin) set APACHE_HOME if you want to be clean. Well, no. That's my problem. On my machine (a standard Mandrake installation (I did not tell it to put apache in some funny place) as far as I am aware) there is no /usr/local/apache/bin. The result of find / -name apxs is nothing. which apxs says he can't find it. The only other thing I can add is that, curiously, I do have the man page for apxs??? BT Higonnet Bernard T. Higonnet wrote: Hello, I have Apache 1.3.19 plopped down on my system as a result of installing Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it seems to work to the extent that I can look at the examples at localhost:8080/examples. I have the source code for mod_jk but I can't follow the instructions in mod_jk-howto.html because I have no apxs (at least that's what find says) since I didn't build Apache myself...
Re: Newbie wants to compile mod_jk for existing Apache sans apxs
Did you try to use the binarie of mod-jk.so for the tomcat 3.2.3 ? Bernard T. Higonnet wrote: Hello, I have Apache 1.3.19 plopped down on my system as a result of installing Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it seems to work to the extent that I can look at the examples at localhost:8080/examples. I have the source code for mod_jk but I can't follow the instructions in mod_jk-howto.html because I have no apxs (at least that's what find says) since I didn't build Apache myself... TIA BT Higonnet
Re: Apxs problem
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
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
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
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
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
hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
RE: Apxs
I found that the apxs command has a hard coded path. If the apache directory is different you may have to update it. edit the apxs and make sure it is correct. -Original Message- From: Aaron Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Apxs hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
RE: Apxs
hi Michael, I did change that the the proper directory, but it's still not finding the packages :( Nance, Michael [EMAIL PROTECTED] 07/25/01 03:38pm I found that the apxs command has a hard coded path. If the apache directory is different you may have to update it. edit the apxs and make sure it is correct. -Original Message- From: Aaron Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Apxs hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
Re: Apxs
Nance, Michael at [EMAIL PROTECTED] wrote: I found that the apxs command has a hard coded path. If the apache directory is different you may have to update it. edit the apxs and make sure it is correct. Actually APXS is generated in the build process with Apache, so the paths should be correct. I never tried to relocate an Apache installation after it has been compiled. Pier
Re: Apxs
Aaron Cooper at [EMAIL PROTECTED] wrote: hi Michael, I did change that the the proper directory, but it's still not finding the packages :( What does perl -v says? Pier
RE: Apxs
This is the command I used to build ...you will have to replace the Solaris with unix and change the path of apache but give it a shot...note I heard order IS important opt/pokemon/lib/server/apache/1.3.12+ssl_0.95-solaris2.70/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 -c *.c ../jk/*.c -Original Message- From: Aaron Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 11:40 AM To: [EMAIL PROTECTED] Subject: RE: Apxs hi Michael, I did change that the the proper directory, but it's still not finding the packages :( Nance, Michael [EMAIL PROTECTED] 07/25/01 03:38pm I found that the apxs command has a hard coded path. If the apache directory is different you may have to update it. edit the apxs and make sure it is correct. -Original Message- From: Aaron Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Apxs hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
RE: apxs failed with rc=255
Is your JDK stuff really in /usr/lib/java/include? Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 08:43 To: [EMAIL PROTECTED] Subject: apxs failed with rc=255 Hi everyone, i have donwloaded tomcat 3.2.2 and apache 1.3.20. i have compiled and installed apache. when i want to compile mod_jk.c in the way described in mod_jk-howto: apxs -o mod_jk.so -I../jk -I/usr/lib/java/include/ -I/usr/lib/java/include/linux -c *.c ../jk/*.c i get the error rc=255 . what does this mean???
RE:RE: apxs failed with rc=255
..sure, it compiles without error, but when apxs tries to link the object files it is getting this error -- [Original - Nachricht] - Von: Internet[[EMAIL PROTECTED]] Betreff: RE: apxs failed with rc=255 Datum: 12. 07. 2001 09:57 Delivered: Thu Jul 12 09:56:40 2001 Send Reply An: C=AT;A=GV;P=CNAGATE;DDA=SMTP;tomcat-user(a)jak arta.apache.org;DDA=MSXENCAP;SMTP - [X.400 Text Follows] - Is your JDK stuff really in /usr/lib/java/include? Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 12 July 2001 08:43 To: [EMAIL PROTECTED] Subject: apxs failed with rc=255 Hi everyone, i have donwloaded tomcat 3.2.2 and apache 1.3.20. i have compiled and installed apache. when i want to compile mod_jk.c in the way described in mod_jk-howto: apxs -o mod_jk.so -I../jk -I/usr/lib/java/include/ -I/usr/lib/java/include/linux -c *.c ../jk/*.c i get the error rc=255 . what does this mean???
Re: apxs failed with rc=255
export JAVA_HOME=/usr/java/jdk1.3// if you install jdk at here export ANT_HOME=/usr/java/ant // make sure you to get the latest one [EMAIL PROTECTED] wrote: Hi everyone, i have donwloaded tomcat 3.2.2 and apache 1.3.20. i have compiled and installed apache. when i want to compile mod_jk.c in the way described in mod_jk-howto: apxs -o mod_jk.so -I../jk -I/usr/lib/java/include/ -I/usr/lib/java/include/linux -c *.c ../jk/*.c i get the error rc=255 . what does this mean???
apxs-mod_rewrite-compilation error.
i compiled mod_rewrite using gcc, coz' i was having trouble compiling it using apxs. gcc -fpic -o mod_rewrite.so -DSHARED_MODULE -I /usr/include/gdbm/ -I /usr/local/apache/include/ -c mod_rewrite.c i get mod_rewrite.so i copy it to apache libexec and add the load module directive to httpd.conf and i get the following error. Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_rewrite.so into server: ELF file's phentsize not the expected size any one can give a clue on what can be wrong ? when i do /usr/local/apache/bin/apxs -i -a -c mod_rewrite.c i get the following error. apxs:Break: Command failed with rc=16777215 any clues on this ? regards, saurabh
apxs failed with rc=255
Hi everyone, i have donwloaded tomcat 3.2.2 and apache 1.3.20. i have compiled and installed apache. when i want to compile mod_jk.c in the way described in mod_jk-howto: apxs -o mod_jk.so -I../jk -I/usr/lib/java/include/ -I/usr/lib/java/include/linux -c *.c ../jk/*.c i get the error rc=255 . what does this mean???
apxs and mod_jk for apache 1.3.20
Does anyone know why apxs gives me the error apxs:Break: Command failed with rc=16777215 when trying to build the mod_jk module. The command I am using is, /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include -I/usr/j2se/include/solaris -c *.c ../jk/*.c This is on a spark ultra 5 with solaris 7 from the directory /usr/share/src/jakarta-tomcat-3.2.2-src/native/apache1.3. Thanks Dave
Error with apxs when try to compile mod_jk.so
Hi, I have problem to integrate Apache, Tomcat and mod_jk on Sun Solaris 8. I installed Apache with no problem and I could get the apache page on the browser. I downloaded and tar the jakarta-tomcat-3.2.1-src also ok. In the jakarta-tomcat-3.2.1-src/src/native/spach1.3 directory, I did the apxs and I got the error message: apxs:Break: Command failed with rc=2 I had search the acheive list, and I could not find the some error message. Can some one tell me what did I do wrong? Do I need gcc install in my system in order to run it? Thanks in advance. Connie - Below was the error message: stlouis% /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 -c *.c ../jk/*.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c mod_jk.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_ajp12_worker.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_ajp13.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_ajp13_worker.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_connect.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_jni_worker.c ../jk/jk_jni_worker.c, line 731: warning: assignment type mismatch: pointer to function(pointer to pointer to pointer to const struct JNIInvokeInterface_ {pointer to void reserved0, pointer to... = pointer to void ../jk/jk_jni_worker.c, line 732: warning: assignment type mismatch: pointer to function(pointer to void) returning int = pointer to void cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_lb_worker.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_map.c ../jk/jk_map.c, line 468: warning: newline not last character in file cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_msg_buff.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_nwmain.c ../jk/jk_nwmain.c, line 32: warning: empty translation unit cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_pool.c cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_sockbuf.c ../jk/jk_sockbuf.c, line 214: warning: newline not last character in file cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_uri_worker_map.c ../jk/jk_uri_worker_map.c, line 438: warning: newline not last character in file cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/usr/local/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS -c ../jk/jk_util.c ../jk/jk_util.c, line 211: missing operand ../jk/jk_util.c, line 223: missing operand cc: acomp failed for ../jk/jk_util.c apxs:Break: Command failed with rc=2 _ Get your FREE download of MSN Explorer at http://explorer.msn.com
apxs problem with solaris 7
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
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 - No Shared Object Support for Apache
We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
RE: apxs - No Shared Object Support for Apache
It would help to know the version of TC you have and the platform you are running it on - version, etc. The apache version would help also. You may want to look at the TC3.3m2 release. There is an updated mod_jk-howto in it. If you are running Linux, you can get the pre-built version of mod_jk in the same location as the TC3.3m1 or m2 binaries. The version of mod_jk is not dependant on the version of TC3. Also, sounds like your apache wasn't built with DSO support. The latest how-to offers suggestions with that. If you're still having problems, post some more detail on your config. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Max Hugen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 5:34 PM To: Tomcat Users List Subject: apxs - No Shared Object Support for Apache We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Re: apxs - No Shared Object Support for Apache
Gosh, missed that, didn't I? Sorry me heap clumsy beginner!, the platform is: Linux Kernel2.2.14 Apache1.3.16but I'm not 100% sure as I don't know how to get the version8~( Tomcat3.2 again, don't know minor version if any. My head is swimming after looking up dso, compile, configure, apache, tomcat, ssl, jk, jserv, but I'll check out the updated mod_jk-howto you suggested. It does seem to look as though my apache executable was compiled without mod_so. This is running on a Cobalt RaQ3i server, which had apache preloaded. Thanks, Max hugen - Original Message - From: Mike Braden To: [EMAIL PROTECTED] ; Max Hugen Sent: Wednesday, March 21, 2001 1:09 PM Subject: RE: apxs - No Shared Object Support for Apache It would help to know the version of TC you have and the platform you are running it on - version, etc. The apache version would help also. You may want to look at the TC3.3m2 release. There is an updated mod_jk-howto in it. If you are running Linux, you can get the pre-built version of mod_jk in the same location as the TC3.3m1 or m2 binaries. The version of mod_jk is not dependant on the version of TC3. Also, sounds like your apache wasn't built with DSO support. The latest how-to offers suggestions with that. If you're still having problems, post some more detail on your config. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Max Hugen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 5:34 PM To: Tomcat Users List Subject: apxs - No Shared Object Support for Apache We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Re: apxs - No Shared Object Support for Apache
Gosh, missed that, didn't I? Sorry me heap clumsy beginner!, the platform is: Linux Kernel2.2.14 Apache1.3.16but I'm not 100% sure as I don't know how to get the version8~( Tomcat3.2 again, don't know minor version if any. My head is swimming after looking up dso, compile, configure, apache, tomcat, ssl, jk, jserv, but I'll check out the updated mod_jk-howto you suggested. It does seem to look as though my apache executable was compiled without mod_so. This is running on a Cobalt RaQ3i server, which had apache preloaded. Thanks, Max hugen - Original Message - From: Mike Braden To: [EMAIL PROTECTED] ; Max Hugen Sent: Wednesday, March 21, 2001 1:09 PM Subject: RE: apxs - No Shared Object Support for Apache It would help to know the version of TC you have and the platform you are running it on - version, etc. The apache version would help also. You may want to look at the TC3.3m2 release. There is an updated mod_jk-howto in it. If you are running Linux, you can get the pre-built version of mod_jk in the same location as the TC3.3m1 or m2 binaries. The version of mod_jk is not dependant on the version of TC3. Also, sounds like your apache wasn't built with DSO support. The latest how-to offers suggestions with that. If you're still having problems, post some more detail on your config. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Max Hugen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 5:34 PM To: Tomcat Users List Subject: apxs - No Shared Object Support for Apache We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Error 127 /usr/sbin/apxs when building mod-jk
Please help, Does anyone know how to fix this? I am just out of ideas. ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c make: /usr/sbin/apxs: Command not found make: *** [mod_jk.so] Error 127 Thanks, Bryan Original Message Follows From: Mike Braden [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: reload servlets? Date: Mon, 19 Mar 2001 14:19:57 -0500 Make sure that your context (webapp) is set to be reloadable. reloadable="true" Depending on your version of Tomcat, this would be in either the conf/server.xml file or in the conf/apps-???.xml file. Mike. -Original Message- From: Jose Ramon Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: reload servlets? Hi all! I'm a newbie with Tomcat and I'm developing some servlets. So, I'm changing frequently the code of my servlets: change the servlet's code, compile it with javac, and so on... My web.xml file is ok. Tomcat loads it when it's started. There is the structure of my web application. But when I update the code of a servlet, my browser shows the previous one. I have to shutdown Tomcat and startup it again and again every time I change my servlet's codeit's a boring task!!! Although I push the update button in my browser, it doesn't work... :-( Anyone could help me? Thanks in advance. --- Jose Ramon ___ Do You Yahoo!? EnvÃa mensajes instantáneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Error 127 /usr/sbin/apxs when building mod-jk
The apxs is under /usr/local/apache/bin or at least $APACE_HOME ? C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED] - Original Message - From: Bryan Murtha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 19, 2001 7:36 PM Subject: Error 127 /usr/sbin/apxs when building mod-jk Please help, Does anyone know how to fix this? I am just out of ideas. ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c make: /usr/sbin/apxs: Command not found make: *** [mod_jk.so] Error 127 Thanks, Bryan Original Message Follows From: Mike Braden [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: reload servlets? Date: Mon, 19 Mar 2001 14:19:57 -0500 Make sure that your context (webapp) is set to be reloadable. reloadable="true" Depending on your version of Tomcat, this would be in either the conf/server.xml file or in the conf/apps-???.xml file. Mike. -Original Message- From: Jose Ramon Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: reload servlets? Hi all! I'm a newbie with Tomcat and I'm developing some servlets. So, I'm changing frequently the code of my servlets: change the servlet's code, compile it with javac, and so on... My web.xml file is ok. Tomcat loads it when it's started. There is the structure of my web application. But when I update the code of a servlet, my browser shows the previous one. I have to shutdown Tomcat and startup it again and again every time I change my servlet's codeit's a boring task!!! Although I push the update button in my browser, it doesn't work... :-( Anyone could help me? Thanks in advance. --- Jose Ramon ___ Do You Yahoo!? Enva mensajes instantneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Error 127 /usr/sbin/apxs when building mod-jk
It seems to be a PATH problem, try to add the directory where apxs is placed in your PATH environment variable. HTH, Martin The apxs is under /usr/local/apache/bin or at least $APACE_HOME ? C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED] - Original Message - From: Bryan Murtha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 19, 2001 7:36 PM Subject: Error 127 /usr/sbin/apxs when building mod-jk Please help, Does anyone know how to fix this? I am just out of ideas. ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c make: /usr/sbin/apxs: Command not found make: *** [mod_jk.so] Error 127 Thanks, Bryan Original Message Follows From: Mike Braden [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: reload servlets? Date: Mon, 19 Mar 2001 14:19:57 -0500 Make sure that your context (webapp) is set to be reloadable. reloadable="true" Depending on your version of Tomcat, this would be in either the conf/server.xml file or in the conf/apps-???.xml file. Mike. -Original Message- From: Jose Ramon Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: reload servlets? Hi all! I'm a newbie with Tomcat and I'm developing some servlets. So, I'm changing frequently the code of my servlets: change the servlet's code, compile it with javac, and so on... My web.xml file is ok. Tomcat loads it when it's started. There is the structure of my web application. But when I update the code of a servlet, my browser shows the previous one. I have to shutdown Tomcat and startup it again and again every time I change my servlet's codeit's a boring task!!! Although I push the update button in my browser, it doesn't work... :-( Anyone could help me? Thanks in advance. --- Jose Ramon ___ Do You Yahoo!? Enva mensajes instantneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es _ Get your FREE download of MSN Explorer at http://explorer.msn.com
apxs break
While trying to compile mod_jserv.so for apache, I get the following errors. [root@webservices jserv]# /usr/bin/apache/bin/apxs -i -a -c mod_jserv.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/bin/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o apxs:Break: Command failed with rc=16777215 [root@webservices jserv]# Tomcat is running fine under port 8080. I downloaded a mod_jserv.so because of this break, but can't get apache to send the request to tomcat for some reason. I stop apache, start tomcat and then start apache. There are no error methods. So I thought I would make my on mod_jserv.so but it failed. It also fails when I try to make mod_jk.so. Any ideas? Ken
Re: apxs break
Are you by any chance using Apache 1.3.14? If so, then upgrade to 1.3.19 - I had an apxs problem that went away when I did this. Steve Prior "Reeves, Kenneth" wrote: While trying to compile mod_jserv.so for apache, I get the following errors. [root@webservices jserv]# /usr/bin/apache/bin/apxs -i -a -c mod_jserv.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/bin/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o apxs:Break: Command failed with rc=16777215 [root@webservices jserv]# Tomcat is running fine under port 8080. I downloaded a mod_jserv.so because of this break, but can't get apache to send the request to tomcat for some reason. I stop apache, start tomcat and then start apache. There are no error methods. So I thought I would make my on mod_jserv.so but it failed. It also fails when I try to make mod_jk.so. Any ideas? Ken
RE: apxs break
Still getting the apxs break after an upgrade. Ken -Original Message- From: Steve Prior [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:52 AM To: [EMAIL PROTECTED] Subject: Re: apxs break Are you by any chance using Apache 1.3.14? If so, then upgrade to 1.3.19 - I had an apxs problem that went away when I did this. Steve Prior "Reeves, Kenneth" wrote: While trying to compile mod_jserv.so for apache, I get the following errors. [root@webservices jserv]# /usr/bin/apache/bin/apxs -i -a -c mod_jserv.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/bin/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o apxs:Break: Command failed with rc=16777215 [root@webservices jserv]# Tomcat is running fine under port 8080. I downloaded a mod_jserv.so because of this break, but can't get apache to send the request to tomcat for some reason. I stop apache, start tomcat and then start apache. There are no error methods. So I thought I would make my on mod_jserv.so but it failed. It also fails when I try to make mod_jk.so. Any ideas? Ken
RE: apxs break
Did you install Apache from an rpm or did you build it from source? apxs is a perl script that is configured when apache is compiled. If you did not compile apache on your system, it (apxs) may not be configured properly. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Reeves, Kenneth [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: apxs break Still getting the apxs break after an upgrade. Ken -Original Message- From: Steve Prior [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:52 AM To: [EMAIL PROTECTED] Subject: Re: apxs break Are you by any chance using Apache 1.3.14? If so, then upgrade to 1.3.19 - I had an apxs problem that went away when I did this. Steve Prior "Reeves, Kenneth" wrote: While trying to compile mod_jserv.so for apache, I get the following errors. [root@webservices jserv]# /usr/bin/apache/bin/apxs -i -a -c mod_jserv.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/bin/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o apxs:Break: Command failed with rc=16777215 [root@webservices jserv]# Tomcat is running fine under port 8080. I downloaded a mod_jserv.so because of this break, but can't get apache to send the request to tomcat for some reason. I stop apache, start tomcat and then start apache. There are no error methods. So I thought I would make my on mod_jserv.so but it failed. It also fails when I try to make mod_jk.so. Any ideas? Ken
Re: mod_jk.so (apxs, fdatasync, snprintf)
Great! That means that I still have more trials ahead of me when I finish installing an updated gcc. mikhail malamud wrote: Everything compiles and looks good. but httpd simply wont start with mod_jk enabled and configtest runs fine. ^^ I am up to the point that configtest doesn't work. Anyone have any idea how many stumbling blocks there are at this point ? So far: 1) apxs didn't work and it took me hours to find the fix in the PHP FAQ. http://www.php.net/FAQ.php#6.11 This included upgrading apache to 1.3.17 in the hope that apxs was fixed (it wasn't). I also messed around a fair bit with Tomcat and Java. 2) Couldn't join the jakarta-tomcat FAQ-O-MATIC to add my solution to (1) 3) Mailing list archives give you '20 out of a possible 20' matches so you have to do a jillion queries to try and narrow out information but you don't know whether your queries are actually narrowing the results. I got the failure to load the fdatasync problem which was solved by adding -lposix4 to the apxs command line. Right now I am replacing my gcc in the hopes that it will give me a libc.so library containing the snprintf object. Sheesh! are all these type-retentive Java people actually still coding in C using stdio.h ??? No wonder they think that C++ is so bad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk.so (apxs, fdatasync, snprintf)
1) apxs didn't work and it took me hours to find the fix in the PHP FAQ. http://www.php.net/FAQ.php#6.11 What was wrong with apxs, maybe there is something wrong with mine? This included upgrading apache to 1.3.17 in the hope that apxs was fixed (it wasn't). I also messed around a fair bit with Tomcat and Java. 2) Couldn't join the jakarta-tomcat FAQ-O-MATIC to add my solution to (1) I found a different place to query tomcat-user http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg06117.html 3) Mailing list archives give you '20 out of a possible 20' matches so you have to do a jillion queries to try and narrow out information but you don't know whether your queries are actually narrowing the results. Keep me updated. I am working basically on the same things as you are. I got the failure to load the fdatasync problem which was solved by adding -lposix4 to the apxs command line. Right now I am replacing my gcc in the hopes that it will give me a libc.so library containing the snprintf object. Sheesh! are all these type-retentive Java people actually still coding in C using stdio.h ??? No wonder they think that C++ is so bad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
apxs problems
I have been unable to build either "mod_jserv" or "mod_jk" on Solaris 2.5 (yes it's old) to work with apache1.3.17 (I upgraded from 1.3.12 today). and Tomcat 3.2.1. It appears that the Perl source code apxs is not correctly generated. I have examined the list archives many times with no success. I find the limit of 20 hits to be counter-productive as I have to do a LOT more searches to try and weed out results. Has anyone been able to get around the problems with apxs ? I have only found one posting in which the victim states that he solved the problem (but didn't bother to record it). In my case apxs does all of the compiles but then emits: the following lines: /usr/local/bin/gcc -DSOLARIS2=251 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/servers/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wra pper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mma p.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o apxs:Break: Command failed with rc=16777215 It looks to me as if there is a loader (ld) command messed up. Here is the relevant part of my apxs file: my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl my $CFG_CC= q(/usr/local/bin/gcc);# substituted via Makefile.tmpl my $CFG_CFLAGS= q( -DSOLARIS2=251 -DUSE_EXPAT -I../lib/expat-lite -DNO_D L_NEEDED `../apaci`);# substituted via Makefile.tmpl my $CFG_CFLAGS_SHLIB = q(); # substituted via Makefile.tmpl 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 my $CFG_PREFIX= q(/usr/local/servers/apache);# substituted v ia APACI install my $CFG_SBINDIR = q(/usr/local/servers/apache/bin); # substitute d via APACI install d via APACI install my $CFG_INCLUDEDIR= q(/usr/local/servers/apache/include);# substitut @ I am running Perl 5.6.something - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Solved (re-solved) probs compiling modules with apxs
Shortly after I posted a message to the list about being unable to compile mod_jk or mod_jserv, I found a reference to the PHP FAQ that contained the information I needed to fix my copy of apxs so tha I could compile the modules I need. I have been unable to post the information to FAQ-O-MATIC. Could I ask one of you 'insiders' to add the information in the PHP FAQ to the Tomcat and possibly Apache FAQ's ?? http://www.php.net/FAQ.php#6.11 Basically it appears that this problem occurs a lot and wastes considerable time. In summary, Solaris users are unable to compile the mod_jk and mod_jserv using apxs as instructed in the Tomcat Documentation. The answer is squirreled away in the PHP FAQ. When I followed these instructions I was able to BUILD Ok on my ancient Solaris 2.5.1 (the dot in my dot-com has holes in the bottom for my feet to touch the road!) Yabba-dabba-doo Barn! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with apxs and mod_jk
If the file begins with something like: #!/bin/csh Check that csh is actually at that location... thanks, - Dale On Tue, Jan 30, 2001 at 04:35:01PM -0800, Marilee Niemi wrote: I am trying to integrate Tomcat and Apache using the mod_jk. My problem seems pretty basic but since I am new I cannot figure out why its happening. I am trying to run the "apxs" command to generate the mod_jk.so file. The message I am getting is /usr/local/apache/bin/apxs: not found I checked and this is the correct location. I can "vi" the file. I even did a 777 on the file to make sure that it was not a permissions thing but I still get the same error. I did not have perl or gcc installed when I installed Apache and Tomcat however, I have since installed it and it still does not work. My java version is: java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) Any help would be appreciated. Marilee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with apxs and mod_jk
The apxs is a perl script... The first line should be like: #!/usr/bin/perl or #!/usr/local/bin/perl or whatever... Do: which perl and put the stuff which it returns as the first line of apxs... remember to put the #! before it... Jan On Tue, 30 Jan 2001, Marilee Niemi wrote: I am trying to integrate Tomcat and Apache using the mod_jk. My problem seems pretty basic but since I am new I cannot figure out why its happening. I am trying to run the "apxs" command to generate the mod_jk.so file. The message I am getting is /usr/local/apache/bin/apxs: not found I checked and this is the correct location. I can "vi" the file. I even did a 777 on the file to make sure that it was not a permissions thing but I still get the same error. I did not have perl or gcc installed when I installed Apache and Tomcat however, I have since installed it and it still does not work. My java version is: java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) Any help would be appreciated. Marilee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with apxs and mod_jk
I've soon similar things like this before, are you running RH 6.0 or 6.1? Steve From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problem with apxs and mod_jk Date: Mon, 29 Jan 2001 11:29:10 -0800 I am trying to integrate Tomcat and Apache using the mod_jk. My problem seems pretty basic but since I am new I cannot figure out why its happening. I am trying to run the "apxs" command to generate the mod_jk.so file. The message I am getting is /usr/local/apache/bin/apxs: not found I checked and this is the correct location. I can "vi" the file. I even did a 777 on the file to make sure that it was not a permissions thing but I still get the same error. I did not have perl installed when I installed Apache however, I later installed it. Is this the issue? My java version is: java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) Any help would be appreciated. Marilee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Building mod_jk fails with odd apxs error: apxs:Break: Commandfailed with rc=255
Hi All, OK, I have just about given up on trying to build mod_jk for Solaris. The history is below if anybody is interested in taking a stab at this. However, all of the suggestions I have received thus far are basically the "standards". That is, I have tried finishing the build with both apxs and gcc, I have tried reordering the arguments in the apxs command, I have even tried fiddling with my $PATH and $CLASSPATH structures. Still no luck. I have found only two other messages pertaining to this specific error (in this group and across the web via Google), and neither user appears to have found a solution. So, unless somebody sees something new and different about this problem, does anybody just have a built version of mod_jk for use with Apache 1.3.14 on Solaris 7? Can I have a copy please? Or, can somebody confirm for me that a copy compiled for Apache 3.1.12 and Solaris 8 will work just the same on my system? I do have a copy of this but am concerned that it may break something because it was compiled on a newer platform with an older version of Apache. Opinions? Thanks in advance for any help! :>) History: Hello, I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source. Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm running Solaris 2.7 (generic) for Sparc. When I use apxs to build mod_jk (according to the current documentation), I get: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/ include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/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 Similarly, adjusting the apxs command syntax to adhear to the structure outlined by "apxs -h" produces the result: # apxs -c -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1 .2/include/solaris *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I
Re: Building mod_jk fails with odd apxs error: apxs:Break: Command failed with rc=255
http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/files/mod_jk.so let me know if this one works for you, otherwise I have compiled one for Apache 1.3.14. SunOS 5.8 myself Filip - Original Message - From: Chris Stavros To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 10:31 AM Subject: Building mod_jk fails with odd apxs error: "apxs:Break: Command failed with rc=255" Hi All, OK, I have just about given up on trying to build mod_jk for Solaris. The history is below if anybody is interested in taking a stab at this. However, all of the suggestions I have received thus far are basically the "standards". That is, I have tried finishing the build with both apxs and gcc, I have tried reordering the arguments in the apxs command, I have even tried fiddling with my $PATH and $CLASSPATH structures. Still no luck. I have found only two other messages pertaining to this specific error (in this group and across the web via Google), and neither user appears to have found a solution. So, unless somebody sees something new and different about this problem, does anybody just have a built version of mod_jk for use with Apache 1.3.14 on Solaris 7? Can I have a copy please? Or, can somebody confirm for me that a copy compiled for Apache 3.1.12 and Solaris 8 will work just the same on my system? I do have a copy of this but am concerned that it may break something because it was compiled on a newer platform with an older version of Apache. Opinions? Thanks in advance for any help! :) History: Hello, I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source. Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm running Solaris 2.7 (generic) for Sparc. When I use apxs to build mod_jk (according to the current documentation), I get: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/ include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -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
Re: Building mod_jk fails with odd apxs error: apxs:Break: Command failed with rc=255
I've tried this one before. It does not work for Apache/Solaris. --- Filip Hanik [EMAIL PROTECTED] wrote: http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/files/mod_jk.so let me know if this one works for you, otherwise I have compiled one for Apache 1.3.14. SunOS 5.8 myself Filip - Original Message - From: Chris Stavros To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 10:31 AM Subject: Building mod_jk fails with odd apxs error: "apxs:Break: Command failed with rc=255" Hi All, OK, I have just about given up on trying to build mod_jk for Solaris. The history is below if anybody is interested in taking a stab at this. However, all of the suggestions I have received thus far are basically the "standards". That is, I have tried finishing the build with both apxs and gcc, I have tried reordering the arguments in the apxs command, I have even tried fiddling with my $PATH and $CLASSPATH structures. Still no luck. I have found only two other messages pertaining to this specific error (in this group and across the web via Google), and neither user appears to have found a solution. So, unless somebody sees something new and different about this problem, does anybody just have a built version of mod_jk for use with Apache 1.3.14 on Solaris 7? Can I have a copy please? Or, can somebody confirm for me that a copy compiled for Apache 3.1.12 and Solaris 8 will work just the same on my system? I do have a copy of this but am concerned that it may break something because it was compiled on a newer platform with an older version of Apache. Opinions? Thanks in advance for any help! :) History: Hello, I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source. Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm running Solaris 2.7 (generic) for Sparc. When I use apxs to build mod_jk (according to the current documentation), I get: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/ include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_wo
Re: Building mod_jk fails with odd apxs error: apxs:Break: Command failed with rc=255
I've tried this one before. It does not work for Apache/Solaris. --- Filip Hanik [EMAIL PROTECTED] wrote: http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/files/mod_jk.so let me know if this one works for you, otherwise I have compiled one for Apache 1.3.14. SunOS 5.8 myself Filip - Original Message - From: Chris Stavros To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 10:31 AM Subject: Building mod_jk fails with odd apxs error: "apxs:Break: Command failed with rc=255" Hi All, OK, I have just about given up on trying to build mod_jk for Solaris. The history is below if anybody is interested in taking a stab at this. However, all of the suggestions I have received thus far are basically the "standards". That is, I have tried finishing the build with both apxs and gcc, I have tried reordering the arguments in the apxs command, I have even tried fiddling with my $PATH and $CLASSPATH structures. Still no luck. I have found only two other messages pertaining to this specific error (in this group and across the web via Google), and neither user appears to have found a solution. So, unless somebody sees something new and different about this problem, does anybody just have a built version of mod_jk for use with Apache 1.3.14 on Solaris 7? Can I have a copy please? Or, can somebody confirm for me that a copy compiled for Apache 3.1.12 and Solaris 8 will work just the same on my system? I do have a copy of this but am concerned that it may break something because it was compiled on a newer platform with an older version of Apache. Opinions? Thanks in advance for any help! :) History: Hello, I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source. Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm running Solaris 2.7 (generic) for Sparc. When I use apxs to build mod_jk (according to the current documentation), I get: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/ include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/loc al/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/sola ris -DSOLARIS -c ../jk/jk_wo
Apache-Tomcat-Jserv-apxs 255 errors
Greetings, I have sucessfully installed apache 1.3.14 and tomcat on red hat linux 6.2- apache and tomcat work great separately, but when i attempt to compile jakarta-tomcat/src/native/apache/jserv with the command: apxs -c -o mod_jserv.so *.c I get the following errors: gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/u sr/local/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wra pper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mma p.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o apxs:Break: Command failed with rc=255 At which point I'm dead in the water. Would anyone have any ideas? Thanks for your assistance. Curt Cearley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem to compile mod_jk.so with apxs.
Its that you are looking for? Inside jk_pool.h, at line 92, you need to add this, #elif defined(NETWARE) typedef long longjk_pool_atom_t; #else //ADD THIS LINE typedef long longjk_pool_atom_t; // ADD THIS LINE #endif Simon Orchanian wrote: Please just someone post the resolution to this. I know many people are having a problem with it on Solaris 7 with Apache 1.3.14. Thanks, Simon --- Donnie Cherng [EMAIL PROTECTED] wrote: I have read more than thousands of mails from the mail list and read howto docs from Tomcat. Still have no clue why it is not working ... The running system is Solaris 7 with j2sdk1_3_0 jakarta-tomcat-3.2.1 apache_1.3.14. /home/users/dcherng/apache/bin/apxs -I ../jk -I /home/users/dcherng/j2sdk1_3_0/include -I /home/users/dcherng/j2sdk1_3_0/include/solaris -c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/users/dcherng/apache/include -I../jk -I/home/users/dcherng/j2sdk1_3_0/include -I/home/users/dcherng/j2sdk1_3_0/include/solaris -c mod_jk.c In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 make: *** [mod_jk.so] Error 1 thanks, Donnie __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
Problem to compile mod_jk.so with apxs.
I have read more than thousands of mails from the mail list and read howto docs from Tomcat. Still have no clue why it is not working ... The running system is Solaris 7 with j2sdk1_3_0 jakarta-tomcat-3.2.1 apache_1.3.14. /home/users/dcherng/apache/bin/apxs -I ../jk -I /home/users/dcherng/j2sdk1_3_0/include -I /home/users/dcherng/j2sdk1_3_0/include/solaris -c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/users/dcherng/apache/include -I../jk -I/home/users/dcherng/j2sdk1_3_0/include -I/home/users/dcherng/j2sdk1_3_0/include/solaris -c mod_jk.c In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 make: *** [mod_jk.so] Error 1 thanks, Donnie
Re: Problem to compile mod_jk.so with apxs.
Please just someone post the resolution to this. I know many people are having a problem with it on Solaris 7 with Apache 1.3.14. Thanks, Simon --- Donnie Cherng [EMAIL PROTECTED] wrote: I have read more than thousands of mails from the mail list and read howto docs from Tomcat. Still have no clue why it is not working ... The running system is Solaris 7 with j2sdk1_3_0 jakarta-tomcat-3.2.1 apache_1.3.14. /home/users/dcherng/apache/bin/apxs -I ../jk -I /home/users/dcherng/j2sdk1_3_0/include -I /home/users/dcherng/j2sdk1_3_0/include/solaris -c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/users/dcherng/apache/include -I../jk -I/home/users/dcherng/j2sdk1_3_0/include -I/home/users/dcherng/j2sdk1_3_0/include/solaris -c mod_jk.c In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 make: *** [mod_jk.so] Error 1 thanks, Donnie __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
apxs not finishing for mod_jk.so??
I dowloaded tomcat source and trying to build mod_jk.so using apxs gives this error during the linking of the o files: apxs: Break: Command failed with rc=16777215. Does anyone know what this means? How can I get past this part so that I can resume? Thank you, Simon __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
RE: apxs not finishing for mod_jk.so??
Use this command in native/apache1.3 .. $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS \ -I${JAVA_HOME}/include/solaris \ -I../jk -I${JAVA_HOME}/include \ -l posix4 -c *.c ../jk/*.c Sudheesh -Original Message- From: Simon Orchanian [mailto:[EMAIL PROTECTED]] Sent: Friday, December 15, 2000 3:15 PM To: [EMAIL PROTECTED] Subject: apxs not finishing for mod_jk.so?? I dowloaded tomcat source and trying to build mod_jk.so using apxs gives this error during the linking of the o files: apxs: Break: Command failed with rc=16777215. Does anyone know what this means? How can I get past this part so that I can resume? Thank you, Simon __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
RE: apxs not finishing for mod_jk.so??
I'm using this exact command: Here is what I type in all on one line: /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS \ -I/usr/java1.2/include/solaris \ -I../jk -I/usr/java1.2/include \ -l posix4 -c *.c ../jk/*.c Please help. Thanks, Simon --- Sudheesh Nair [EMAIL PROTECTED] wrote: Use this command in native/apache1.3 .. $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS \ -I${JAVA_HOME}/include/solaris \ -I../jk -I${JAVA_HOME}/include \ -l posix4 -c *.c ../jk/*.c Sudheesh -Original Message- From: Simon Orchanian [mailto:[EMAIL PROTECTED]] Sent: Friday, December 15, 2000 3:15 PM To: [EMAIL PROTECTED] Subject: apxs not finishing for mod_jk.so?? I dowloaded tomcat source and trying to build mod_jk.so using apxs gives this error during the linking of the o files: apxs: Break: Command failed with rc=16777215. Does anyone know what this means? How can I get past this part so that I can resume? Thank you, Simon __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
RE: Can't find apxs command
Yes, you need to install apache-devel to get apxs. It will live in /usr/sbin. http://rpmfind.net/linux/RPM/redhat/7.0/i386/apache-devel-1.3.12-25.i386.htm l Pat -Original Message- From: James Devenish [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 3:51 AM To: [EMAIL PROTECTED] Subject: Re: Can't find apxs command On Wed, Dec 06, 2000 at 10:40:21AM -0800, Matt Becker wrote: Hi, I'm trying to compile mod_jk on a Red Hat 7.0 system with the latest Apache rpm, Tomcat 3.2, etc. but can't find the "apxs" command anywhere. I'm beginning to wonder if the problems I've had trying to get Tomcat and Apache working together come from that the Apache I'm using is preinstalled by Red Hat and maybe I should instead install the Linux without a web server and manually install Apache? Well, if you obtain an Apache distro from apache.org, it will contain the apxs script (the source distribution does, at least, so I assume the binary one does too). I notice that apxs is not included in the Debian apache package, however it does exist in the Debian apache-dev package. Perhaps there's a similar situation with RH7? Look for alternative apache packages. HTH
Can't find apxs command
Hi, I'm trying to compile mod_jk on a Red Hat 7.0 system with the latest Apache rpm, Tomcat 3.2, etc. but can't find the "apxs" command anywhere. I'm beginning to wonder if the problems I've had trying to get Tomcat and Apache working together come from that the Apache I'm using is preinstalled by Red Hat and maybe I should instead install the Linux without a web server and manually install Apache? Has anyone gotten Apache and Tomcat working on Red Hat 7.0? Thanks! Matt Matt BeckerMythic Wave Productions, Inc.21053 Devonshire, #201Chatsworth, Ca. 91311[EMAIL PROTECTED]
Re: Can't find apxs command
I think you need perl to run the apxs command. There is a howto on apache website that tells you what you need. I don't remember the url but if you go to www.apache.org and then to tomcat's online documentation you'll be able to find it Yong Yong BooneSoftware Engineer Ix14942(801) 861-4942Novell, Inc., the leading provider of Net Services Softwarewww.novell.com
RE: Can't find apxs command
My apxs was in apache/bin and it is indeed in perl. If the perl interpreter is not found, than a likely error message will be that apxs is not found. -Original Message-From: Yong Boone [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 06, 2000 01:54 PMTo: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: Re: Can't find apxs command I think you need perl to run the apxs command. There is a howto on apache website that tells you what you need. I don't remember the url but if you go to www.apache.org and then to tomcat's online documentation you'll be able to find it Yong Yong BooneSoftware Engineer Ix14942(801) 861-4942Novell, Inc., the leading provider of Net Services Softwarewww.novell.com
RE: Can't find apxs command
I had the same problem for RedHat 6.2 but once I installed the apache-devel (apache development) RPM all was good. Name : apache-devel Relocations: (not relocateable) Version : 1.3.12 Vendor: Red Hat, Inc. Release : 2 Build Date: Wed 01 Mar 2000 12:37:55 PM CST Install date: Tue 28 Nov 2000 04:07:32 PM CST Build Host: porky.devel.redha t.com Group : Development/Libraries Source RPM: apache-1.3.12-2.src.rpm Size : 397352 License: Freely distributable and usable Packager : Red Hat, Inc. http://bugzilla.redhat.com/bugzilla Summary : Development tools for the Apache Web server. Description : The apache-devel package contains the APXS binary and other files that you'll need to build Dynamic Shared Objects (DSOs) for Apache. If you are installing the Apache Web server, and you want to be able to compile or develop additional modules for Apache, you'll need to install this package. chris -Original Message- From: Matt Becker [mailto:[EMAIL PROTECTED]] Sent: December 6, 2000 12:04 PM To: tomcat mailing list Subject: Can't find apxs command Hi, I'm trying to compile mod_jk on a Red Hat 7.0 system with the latest Apache rpm, Tomcat 3.2, etc. but can't find the "apxs" command anywhere. I'm beginning to wonder if the problems I've had trying to get Tomcat and Apache working together come from that the Apache I'm using is preinstalled by Red Hat and maybe I should instead install the Linux without a web server and manually install Apache? Has anyone gotten Apache and Tomcat working on Red Hat 7.0? Thanks! Matt Matt Becker Mythic Wave Productions, Inc. 21053 Devonshire, #201 Chatsworth, Ca. 91311 [EMAIL PROTECTED]
APXS mod_jk.so
To Whom Can Help... I am currently trying to setup tomcat to work with apache. I followed instructions but recieved an error that talks about jk_module and how mod_jk.so is garbled and may not be a DSO type file upon start up of TOMCAT. Can anyone help? I believe to correct this I must use the "APXS" program to modify the mod_jk.so file (or is there a better version I can download, where?). I actually tried this to use APXS... however I was unable to perform this task. I followed the command lines in the mod_jk.so documentation however my RedHat Linux op system was unable to find or execute the file even though I can see it in the directory. Can anyone help me? THANKS IN ADVANCE. BDH
RE: APXS mod_jk.so
Check for Perl installed or not, apxs requires Perl to run Kenneth Kwan -Original Message- From: bdh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 9:00 AM To: [EMAIL PROTECTED] Subject:APXS mod_jk.so To Whom Can Help... I am currently trying to setup tomcat to work with apache. I followed instructions but recieved an error that talks about jk_module and how mod_jk.so is garbled and may not be a DSO type file upon start up of TOMCAT. Can anyone help? I believe to correct this I must use the "APXS" program to modify the mod_jk.so file (or is there a better version I can download, where?). I actually tried this to use APXS... however I was unable to perform this task. I followed the command lines in the mod_jk.so documentation however my RedHat Linux op system was unable to find or execute the file even though I can see it in the directory. Can anyone help me? THANKS IN ADVANCE. BDH
How to build mod_jserv.so on AIX using apxs
I have been trying to do this for some time now, and have been frustrated by how little info is out there to solve this particular problem. It's especially difficult on this platform because there are certain changes that need to be made that are not intuitive at all (at least to me). So I thought I'd send this info for those who have been in the same boat as me (or are just as stupid). Environment: -- IBM AIX 4.3.3 IBM C and C++ compilers version 3.something Apache 1.3.14 Tomcat 3.1 According to the tomcat user guide, all you need to do is apxs -c -o mod_jserv.so *.c. Not so. This produces compiling errors (C++ comments not recognized) and linking errors (can't find exports file). The apxs file tha's created with the apache installation has insufficient options for the IBM compiler. To solve this, do the following: 1. Open the apxs file 2. Add the option -qcpluscmt to the compiler options line so it looks like this: my $CFG_CFLAGS = ' -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DUSE_HSREGEX `../apaci`'; 3. Change the linker options line so it looks like this: my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bE:mod_jserv.exp -bI:/path/to/apache/libexec/httpd.exp -lc); Note: Replace -bE:`echo.` with -bE:mod_jserv.exp 4. Create a file 'mod_jserv.exp' in /path/to/tomcat/src/native/apache/jserv containing the lines: #! /path/to/apache/libexec/mod_jserv.so jserv_module This is the exports file the linker needs. 5. cd to /path/to/tomcat/src/native/apache/jserv and run /path/to/apache/apxs -c -o mod_jserv.so *.c. You should end up with a compiled mod_jserv.so in the current directory. Note that I'm not a C programmer by any stretch of imagination, so if you find a way to do this with one command, let me know how. And thanks to Cristoph Leser for help. Rit -- Ritwick Dhar Research Development MI Eastpoint Technology Bedford, NH 603.647.2030 --
apxs problem revisited for mod_jserv.so build
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]
RE: APXS mod_jserv.so
Hi, Just for reference on the solving of the problem for archives etc. Use the documented command: apxs -c *.c -o mod_jserv.so This will compile all of the files into .o files. Get rid of the file autochange.so if it occurs. Then manually do the ld using: ld -G autochange.o 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 Then add the module using: apxs -i -a mod_jserv.so Do you configtest on Apache, add the Include line (for tomcat.conf) and you're sorted. Or at least I am at the minute - statics/jsps and servlets working, the examples anyway. Nice product. Thanks to Udayini Pendyal and Joseph Carew for pretty much solving this for me. Dave -Original Message- From: David Molloy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 4:07 PM To: [EMAIL PROTECTED] Subject: RE: APXS mod_jserv.so Hi Udayini, Thanks - you highlighted what the problem was alright. The command as displayed in the user guide is unclear. It refers to apxs -c *.c -o mod_jserv.so whereas it should really be: apxs -c mod_jserv.c -o mod_jserv.so It's fairly obvious when I look back on it but it'll probably catch a few more apxs virgins out :) Thanks again - I have the mod_jserv.so file now. Dave -Original Message- From: Udayini Pendyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 3:56 PM To: [EMAIL PROTECTED] Subject: Re: APXS mod_jserv.so Hello David, I am not very familiar with make related things but it seems like your first -o flag has asked the output file to be called autochange.so. I see that this file is indeed being created. So, maybe you can rename the autochange.so to mod_jserv.so and use it. Alternative could be that the argument to the first -o can be changed from autochange.so to mod_jserv.so. Regards Udayini David Molloy wrote: Hi, I am attempting to install Tomcat together with Apache1.3.14 and I can get them working independently. My problem lies in obtaining the Jserv Module mod_jserv.so I've followed the instructions in the User Guide doing the: apxs -c *.c -o mod_jserv.so It goes off and does it's thing and the log is below which looks pretty good (apart from the warning at the end which seems minor). However it doesn't result in a mod_jserv.so file that I can put into my libexec directory in Apache. It makes all of the object files no problem and the resulting directory is listed below the log. Does anyone know what I'm doing wrong - I'm not very familiar with apxs or .so files so I'm guessing quite a bit but I'm fairly sure that from the user guide I should be getting the file as it doesn't really mention anything else. Any ideas would be greatly appreciated - thanks. Running Solaris 7, Apache 1.3.14, Tomcat3.1 Release David Molloy PS: Also tried searching for a version by download but couldn't find one. oak# apxs -c *.c -o mod_jserv.so gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c autochange.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_ajpv11.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_ajpv12.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_balance.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_image.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_mmap.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_protocols.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_status.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_utils.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_watchdog.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_wrapper.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_wrapper_unix.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c jserv_wrapper_win.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache_1.3.14/include -c mod_jserv.c ld -G -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
RE: APXS mod_jserv.so
Hi, At 05:15 PM 11/1/2000 -, you wrote: Hi, Just for reference on the solving of the problem for archives etc. Use the documented command: apxs -c *.c -o mod_jserv.so We see messages frequently regarding "Where do I get mod_jserv.so?" and the documentation says to use the apxs command. However, there are Makefiles in the jakarta-tomcat/src/native/* directories. I used the jakarta-tomcat/src/native/jk/Makefile.linux (modified as appropriate) to make mod_jk.so. Why do we never hear about the method? (It seems simpler.) Is there something wrong with using the Makefiles? Is the documentation simply out of date? Stephen