LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2003, 05:48 PM   #1
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
mod_jk2 help building


I am having a terrible time building mod_jk2 from source. I have http and httpd-devel and tomcat 4.1.29. I have been searching all over the internet, but the instructions they have don't help me. One of the things Ive been realizing is that I don't have a coyote folder in my mod_jk source folder, which everyone of these instructions sites use. when ever I try to build, if I use the ant method, it goes for a little, but then fails when It can't find a jar in the coyote folder, cause there is no coyote folder. when I do the make way, the c building fails, and gives a lot of syntax errors about the source. I am totally lost here. Any help will be aprreciated greatly. Thank you
 
Old 12-07-2003, 01:10 AM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
have you thought of using mod_webapp?

I successfully built that http-tomcat connector on rh 7.3 and 9

I could probably help you better with that one.
 
Old 12-07-2003, 01:11 AM   #3
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Or maybe just post the errors from make
 
Old 12-07-2003, 03:16 PM   #4
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Here the errors from make:
Code:
[root@localhost native2]# make
list=' server/apache2'; \
for i in $list; do \
        echo "Making $target in $i"; \
        if test "$i" != "."; then \
        (cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
make[1]: Entering directory `/home/max/files/tar/untarred/mod_jk_2.0.2-src/jk/native2/server/apache2'
mkdir -p ../../../build/jk2/apache2
/etc/httpd/build/libtool  --mode=compile gcc  -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE   -I../../include -I/usr/include/httpd  -I /opt/j2sdk_nb/j2sdk1.4.2/include -I /opt/j2sdk_nb/j2sdk1.4.2/include/linux  -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR -DHAVE_JNI -DHAS_PCRE -c ../../common/jk_channel_apr_socket.c -o ../../../build/jk2/apache2/jk_channel_apr_socket.lo
 gcc -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I../../include -I/usr/include/httpd -I /opt/j2sdk_nb/j2sdk1.4.2/include -I /opt/j2sdk_nb/j2sdk1.4.2/include/linux -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR -DHAVE_JNI -DHAS_PCRE -c ../../common/jk_channel_apr_socket.c  -fPIC -DPIC -o ../../../build/jk2/apache2/.libs/jk_channel_apr_socket.oIn file included from ../../common/jk_channel_apr_socket.c:66:
../../include/jk_global.h:158:17: apr.h: No such file or directory
../../include/jk_global.h:159:23: apr_errno.h: No such file or directory
../../include/jk_global.h:160:22: apr_time.h: No such file or directory
../../include/jk_global.h:161:25: apr_strings.h: No such file or directory
In file included from ../../include/jk_workerEnv.h:68,
                 from ../../include/jk_service.h:75,
                 from ../../include/jk_worker.h:70,
                 from ../../include/jk_env.h:69,
                 from ../../include/jk_pool.h:67,
                 from ../../include/jk_map.h:67,
                 from ../../common/jk_channel_apr_socket.c:67:
../../include/jk_endpoint.h:207: error: syntax error before "apr_time_t"
../../include/jk_endpoint.h:207: warning: no semicolon at end of struct or union../../include/jk_endpoint.h:211: warning: data definition has no type or storage class
../../include/jk_endpoint.h:212: error: syntax error before "maxTime"
../../include/jk_endpoint.h:212: warning: data definition has no type or storage class
../../include/jk_endpoint.h:215: error: syntax error before "startTime"
../../include/jk_endpoint.h:215: warning: data definition has no type or storage class
../../include/jk_endpoint.h:216: error: syntax error before "jkStartTime"
../../include/jk_endpoint.h:216: warning: data definition has no type or storage class
../../include/jk_endpoint.h:217: error: syntax error before "endTime"
../../include/jk_endpoint.h:217: warning: data definition has no type or storage class
In file included from ../../include/jk_worker.h:70,
                 from ../../include/jk_env.h:69,
                 from ../../include/jk_pool.h:67,
                 from ../../include/jk_map.h:67,
                 from ../../common/jk_channel_apr_socket.c:67:
../../include/jk_service.h:279: error: syntax error before "apr_time_t"
../../include/jk_service.h:279: warning: no semicolon at end of struct or union
../../include/jk_service.h:315: error: `read' redeclared as different kind of symbol
/usr/include/unistd.h:312: error: previous declaration of `read'
../../include/jk_service.h:321: error: `write' redeclared as different kind of symbol
/usr/include/unistd.h:318: error: previous declaration of `write'
../../include/jk_service.h:358: error: syntax error before '}' token
../../common/jk_channel_apr_socket.c:77:28: apr_network_io.h: No such file or directory
../../common/jk_channel_apr_socket.c:78:23: apr_errno.h: No such file or directory
../../common/jk_channel_apr_socket.c:79:25: apr_general.h: No such file or directory
../../common/jk_channel_apr_socket.c:88: error: syntax error before "apr_sockaddr_t"
../../common/jk_channel_apr_socket.c:88: warning: no semicolon at end of struct or union
../../common/jk_channel_apr_socket.c:93: error: syntax error before '}' token
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_setProperty':../../common/jk_channel_apr_socket.c:123: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:125: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:127: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:129: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:131: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:135: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:135: error: (Each undeclared identifier is reported only once
../../common/jk_channel_apr_socket.c:135: error: for each function it appears in.)
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_init':
../../common/jk_channel_apr_socket.c:147: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:149: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:156: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:159: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:162: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:163: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:165: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:167: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:167: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:167: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:172: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:173: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:175: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:176: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:178: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:178: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:179: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:181: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:181: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_resolve':
../../common/jk_channel_apr_socket.c:197: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:197: error: `APR_UNSPEC' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:198: error: `apr_pool_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:198: error: syntax error before ')' token
../../common/jk_channel_apr_socket.c:199: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_open':
../../common/jk_channel_apr_socket.c:215: error: `apr_sockaddr_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:215: error: `remote_sa' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:215: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:216: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:217: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:219: error: `apr_socket_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:219: error: `sock' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:220: error: `apr_status_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:220: error: syntax error before "ret"
../../common/jk_channel_apr_socket.c:221: error: `apr_int32_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:226: error: `ret' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:227: error: `apr_pool_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:227: error: syntax error before ')' token
../../common/jk_channel_apr_socket.c:256: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:261: error: dereferencing pointer to incomplete type
../../common/jk_channel_apr_socket.c:264: error: continue statement not within a loop
../../common/jk_channel_apr_socket.c: At top level:
../../common/jk_channel_apr_socket.c:269: error: syntax error before "if"
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_close':
../../common/jk_channel_apr_socket.c:310: error: `apr_socket_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:310: error: `sd' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:311: error: `apr_status_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:311: error: syntax error before "rc"
../../common/jk_channel_apr_socket.c:315: error: `APR_OS_START_USEERR' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:323: error: `rc' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_send':
../../common/jk_channel_apr_socket.c:345: error: `apr_socket_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:345: error: `sock' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:346: error: `apr_status_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:346: error: syntax error before "stat"
../../common/jk_channel_apr_socket.c:347: error: `apr_size_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:355: error: `APR_OS_START_USEERR' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:361: error: `length' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:361: error: syntax error before "len"
../../common/jk_channel_apr_socket.c:363: error: syntax error before "written"
../../common/jk_channel_apr_socket.c:365: error: `written' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:365: error: invalid lvalue in assignment
../../common/jk_channel_apr_socket.c:366: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_readN':
../../common/jk_channel_apr_socket.c:393: error: `apr_socket_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:393: error: `sock' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:394: error: `apr_size_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:394: error: syntax error before "length"
../../common/jk_channel_apr_socket.c:395: error: `apr_status_t' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:401: error: `APR_OS_START_USEERR' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:404: error: `length' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:404: error: syntax error before "len"
../../common/jk_channel_apr_socket.c:407: error: invalid lvalue in assignment
../../common/jk_channel_apr_socket.c:409: error: `APR_EOF' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:413: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_recv':
../../common/jk_channel_apr_socket.c:444: error: `APR_OS_START_USEERR' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c:459: error: `APR_SUCCESS' undeclared (first use in this function)
../../common/jk_channel_apr_socket.c: In function `jk2_channel_apr_socket_factory':
../../common/jk_channel_apr_socket.c:474: error: invalid application of `sizeof' to an incomplete type
../../common/jk_channel_apr_socket.c:490: error: `APR_SUCCESS' undeclared (first use in this function)
make[1]: *** [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1
make[1]: Leaving directory `/home/max/files/tar/untarred/mod_jk_2.0.2-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1
[root@localhost native2]#
It seems like the compiler isn't compiling right or something.

Last edited by techrolla; 12-07-2003 at 03:20 PM.
 
Old 12-07-2003, 03:18 PM   #5
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Here are the errors from doing ant:
Code:
[root@localhost native2]# export JAVA_HOME="/opt/j2sdk_nb/j2sdk1.4.2/"
[root@localhost native2]# /home/max/programs/ant1.5.4/bin/ant
Buildfile: build.xml
 
init.taskdef:
  [taskdef] Could not load definitions from resource META-INF/ant.tasks. It could not be found.
 
guess.os:
     [echo] build.properties i386.Linux
     [echo] Linux:true Win32:${win32} Netware:${netware} Solaris:${solaris} HPUX:${hpux}
 
init.win32.properties:
 
init.win32.mc:
 
init.win32:
 
init.netware:
 
init.os:
 
guess.server:
     [echo] Apache2 /etc/httpd true
     [echo] Apache13  ${apache13.detect}
     [echo] IIS  ${iis.detect}
     [echo] Iplanet  true
 
 
init:
 
apache20:
 
BUILD FAILED
file:/home/max/files/tar/untarred/mod_jk_2.0.2-src/jk/native2/build.xml:276: Could not create task or type of type: so.
 
Ant could not find the task or a class this task relies upon.
 
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
 - You have misspelt 'so'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
   and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and optional.jar is absent
   Fix: look for optional.jar in ANT_HOME/lib, download if needed
 - The task was not built into optional.jar as dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with the needed
   libraries, or download a release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
   and needs to be declared using <taskdef>.
 
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
 
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
 
Total time: 6 seconds
[root@localhost native2]#
Thank you
 
Old 12-07-2003, 07:46 PM   #6
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
I'm not very familiar with ant... What have you got with make?
 
Old 12-07-2003, 07:56 PM   #7
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
what I got from make is the first of those two error posts. The second one is from ant. It seems like there is somesort of gcc compiling problem. Should it be using g++ instead?

Last edited by techrolla; 12-07-2003 at 07:57 PM.
 
Old 12-07-2003, 08:02 PM   #8
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Sorry, I didn't see the first post...

Maybe install one of these and retry (especially the C++ support)? Te errors you've got do not talk much !
gcc - Various compilers (C, C++, Objective-C, Java, ...)
gcc-c++ - C++ support for GCC
gcc-g77 - Fortran 77 support
gcc-gnat - Ada 95 support for GCC
gcc-java - Java support for GCC
gcc-objc - Objective-C support for GCC
gcc32 - GCC version 3.2.3
 
Old 12-07-2003, 08:03 PM   #9
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
http://cymulacrum.net/tomcat/jk2_compile.html
 
Old 12-07-2003, 08:40 PM   #10
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Thanks for the help, but I am still lost I did the instructions on that site, which are similar to others that ive seen, but it doesn't do anything It says that by running libtool --finish /etc/httpd it will make so files. I haven't found those yet or I don't think they exist . Do you have anymore suggestions? Thanks a lot
 
Old 12-07-2003, 08:49 PM   #11
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
the only suggestion left I got is use mod_webapp. I can provide you with help.
 
Old 12-07-2003, 09:29 PM   #12
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Isn't mod_webapp deprecated though? I am definately willing to try it if I can get this to work. Thanks
 
Old 12-07-2003, 09:33 PM   #13
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
well, I'm deprecated then

Ok, please tell me where I can get mod_jk2 and I'll try to compile it as soon as I can. What distro? Fedora?
 
Old 12-07-2003, 10:39 PM   #14
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
I downloaded the source, then confused on what to put as my variables into build.properties. Anyhow, I found a rpm, so I installed this one. However, I don't have time to configure or test it yet.

hope this helps.
 
Old 12-07-2003, 10:49 PM   #15
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Thank you, please get back to me on how that went, and where you found the rpm. Yea, this is on Fedora. Thanks alot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on compiling mod_jk2 bullshit Linux - Networking 3 09-28-2004 04:26 PM
where can I get the mod_jk2 rpm for mandrake10 chinaundead Mandriva 1 04-08-2004 11:11 PM
mod_jk2, I just can't do this. techrolla Linux - Networking 4 01-07-2004 07:29 AM
mod_jk2 Apache error ardochoke Linux - Networking 5 08-31-2003 04:52 PM
MOD_JK2 with TOMCAT4.1.24-Apache2 awedaylong Linux - Networking 2 07-29-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration