Hi All,

I am unable to create mod_jk.so with jakarta-tomcat-connectors-4.1.27 and Apache 2.0.47.

In the last few lines it is throwing some errors. But I do not what I missed.

My Environment:
---------------
Red Hat Linux 7.2; JDK - 1.4.0

What I did:
----------

1. Installed Apache 2.0.47 and it runs fine.

2. Took the src of jakarta-tomcat-connectors-4.1.27 and followed the following steps.

i) $ ./buildconf.sh


libtoolize --force --automake --copy
aclocal
automake -a --foreign -i --copy
automake: configure.in: installing `scripts/build/unix/install-sh'
automake: configure.in: installing `scripts/build/unix/mkinstalldirs'
automake: configure.in: installing `scripts/build/unix/missing'
autoconf
configure.in:24: AC_PROG_CPP was called before AC_PROG_CC


-----------------------------------------------------------------------


ii) $ ./configure --with-apxs=/home/kernel/satya/instal led_apache/bin/apxs


creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... cc -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for test... /usr/bin/test
checking for rm... /bin//rm
checking for grep... /bin//grep
checking for echo... /bin//echo
checking for sed... /bin//sed
checking for cp... /bin//cp
checking for mkdir... /bin//mkdir
checking for libtool... /usr/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for "apache-2.0"
checking for target platform... unix
no apache given
updating cache ./config.cache
creating ./config.status
creating Makefile
creating apache-1.3/Makefile
creating apache-1.3/Makefile.apxs
creating apache-2.0/Makefile
creating apache-2.0/Makefile.apxs
creating common/Makefile
creating common/list.mk
creating jni/Makefile


-----------------------------------------------------------------------

iii)$ make

Making all in common
make[1]: Entering directory

`/home/kernel/satya/connector/jakarta-tomcat-connectors-4.1.27-src/jk/native/common'
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_ajp12_worker.c
mkdir .libs
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c

jk_ajp12_worker.c -fPIC -DPIC -o .libs/jk_ajp12_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c

jk_ajp12_worker.c -o jk_ajp12_worker.o >/dev/null 2>&1
mv -f .libs/jk_ajp12_worker.lo jk_ajp12_worker.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_connect.c
rm -f .libs/jk_connect.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_connect.c

-fPIC -DPIC -o .libs/jk_connect.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_connect.c

-o jk_connect.o >/dev/null 2>&1
mv -f .libs/jk_connect.lo jk_connect.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_msg_buff.c
rm -f .libs/jk_msg_buff.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_msg_buff.c

-fPIC -DPIC -o .libs/jk_msg_buff.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_msg_buff.c

-o jk_msg_buff.o >/dev/null 2>&1
mv -f .libs/jk_msg_buff.lo jk_msg_buff.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_util.c
rm -f .libs/jk_util.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_util.c

-fPIC -DPIC -o .libs/jk_util.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_util.c -o

jk_util.o >/dev/null 2>&1
mv -f .libs/jk_util.lo jk_util.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_ajp13.c
rm -f .libs/jk_ajp13.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_ajp13.c

-fPIC -DPIC -o .libs/jk_ajp13.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_ajp13.c -o

jk_ajp13.o >/dev/null 2>&1
mv -f .libs/jk_ajp13.lo jk_ajp13.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_pool.c
rm -f .libs/jk_pool.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_pool.c

-fPIC -DPIC -o .libs/jk_pool.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_pool.c -o

jk_pool.o >/dev/null 2>&1
mv -f .libs/jk_pool.lo jk_pool.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_worker.c
rm -f .libs/jk_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_worker.c

-fPIC -DPIC -o .libs/jk_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_worker.c -o

jk_worker.o >/dev/null 2>&1
mv -f .libs/jk_worker.lo jk_worker.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_ajp13_worker.c
rm -f .libs/jk_ajp13_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c

jk_ajp13_worker.c -fPIC -DPIC -o .libs/jk_ajp13_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c

jk_ajp13_worker.c -o jk_ajp13_worker.o >/dev/null 2>&1
mv -f .libs/jk_ajp13_worker.lo jk_ajp13_worker.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_lb_worker.c
rm -f .libs/jk_lb_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_lb_worker.c

-fPIC -DPIC -o .libs/jk_lb_worker.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_lb_worker.c

-o jk_lb_worker.o >/dev/null 2>&1
mv -f .libs/jk_lb_worker.lo jk_lb_worker.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_sockbuf.c
rm -f .libs/jk_sockbuf.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_sockbuf.c

-fPIC -DPIC -o .libs/jk_sockbuf.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_sockbuf.c

-o jk_sockbuf.o >/dev/null 2>&1
mv -f .libs/jk_sockbuf.lo jk_sockbuf.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_map.c
rm -f .libs/jk_map.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_map.c

-fPIC -DPIC -o .libs/jk_map.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c jk_map.c -o

jk_map.o >/dev/null 2>&1
mv -f .libs/jk_map.lo jk_map.lo
/usr/bin/libtool --mode=compile gcc -I/home/kernel/satya/installed_apache//include -g -O2


-g -O2 -pthread -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

-D_SVID_SOURCE -D_GNU_SOURCE -I /usr/java/j2sdk1.4.0/bin/:/include -I

/usr/java/j2sdk1.4.0/bin/:/include/ -c jk_uri_worker_map.c
rm -f .libs/jk_uri_worker_map.lo
gcc -I/home/kernel/satya/installed_apache//include -g -O2 -g -O2 -pthread -g -O2 -DLINUX=2


-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I

/usr/java/j2sdk1.4.0/bin/:/include -I /usr/java/j2sdk1.4.0/bin/:/include/ -c

jk_uri_worker_map.c -fPIC -DPIC -o .libs/jk_uri_worker_map.lo
jk_uri_worker_map.c: In function `map_uri_to_worker':
jk_uri_worker_map.c:493: parse error before `char'
jk_uri_worker_map.c:495: `url_rewrite' undeclared (first use in this function)
jk_uri_worker_map.c:495: (Each undeclared identifier is reported only once
jk_uri_worker_map.c:495: for each function it appears in.)
make[1]: *** [jk_uri_worker_map.lo] Error 1
make[1]: Leaving directory


`/home/kernel/satya/connector/jakarta-tomcat-connectors-4.1.27-src/jk/native/common'
make: *** [all-recursive] Error 1

---------------------------------------------------------------------

It shows error in the last few lines. Is the jk_uri_worker_map.c has some problem.

Please let me know, what is to be done. Your help is gratefully appreciated.

Thanks,
Satya.
___________________________________________________
Art meets Anesthesia; Shefali Weds Dr. Raman.
Rediff Matchmaker strikes another interesting match !!
Visit http://matchmaker.rediff.com?1


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to