LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mod_jk2 help building (https://www.linuxquestions.org/questions/linux-networking-3/mod_jk2-help-building-123359/)

techrolla 12-06-2003 05:48 PM

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

ugob 12-07-2003 01:10 AM

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.

ugob 12-07-2003 01:11 AM

Or maybe just post the errors from make

techrolla 12-07-2003 03:16 PM

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.

techrolla 12-07-2003 03:18 PM

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

ugob 12-07-2003 07:46 PM

I'm not very familiar with ant... What have you got with make?

techrolla 12-07-2003 07:56 PM

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?

ugob 12-07-2003 08:02 PM

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

ugob 12-07-2003 08:03 PM

http://cymulacrum.net/tomcat/jk2_compile.html

techrolla 12-07-2003 08:40 PM

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

ugob 12-07-2003 08:49 PM

the only suggestion left I got is use mod_webapp. I can provide you with help.

techrolla 12-07-2003 09:29 PM

Isn't mod_webapp deprecated though? I am definately willing to try it if I can get this to work. Thanks

ugob 12-07-2003 09:33 PM

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?

ugob 12-07-2003 10:39 PM

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.

techrolla 12-07-2003 10:49 PM

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


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