- 论坛徽章:
- 0
|
求助各位高手,安装JK2的问题。
现给贴出来,有点多,麻烦给看看。
# cd /usr/local/src
# ls -l
-rwxr-xr-x 1 root root 907088 18:44 jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz
# gzip -d jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz
# ls -l
-rwxr-xr-x 1 root root 4229120 18:44 jakarta-tomcat-connectors-jk2-2.0.4-src.tar
# tar xvf jakarta-tomcat-connectors-jk2-2.0.4-src.tar
ls -l
drwxr-xr-x 7 root root 512 2004 jakarta-tomcat-connectors-jk2-2.0.4-src
-rwxr-xr-x 1 root root 4229120 18:44 jakarta-tomcat-connectors-jk2-2.0.4-src.tar
# cd jakarta-tomcat-connectors-jk2-2.0.4-src
# cd jk/native2
# ls -l
-rw-r--r-- 1 root root 4390 2004 BUILD.txt
-rw-r--r-- 1 root root 4327 2004 CHANGES.html
-rw-r--r-- 1 root root 4832 2004 CHANGES.txt
-rw-r--r-- 1 root root 3031 2004 INSTALL.txt
-rw-r--r-- 1 root root 1539 2004 Makefile.in
-rw-r--r-- 1 root root 2818 2004 README.txt
-rw-r--r-- 1 root root 664 2004 STATUS.txt
-rw-r--r-- 1 root root 238700 2004 24 aclocal.m4
drwxr-xr-x 2 root root 512 2004 24 apr
drwxr-xr-x 2 root root 512 2004 24 autom4te.cache
-rw-r--r-- 1 root root 27425 2004 24 build.xml
-rwxr-xr-x 1 root root 255 2004 24 buildconf.sh
drwxr-xr-x 3 root root 1024 2004 24 common
-rwxr-xr-x 1 root root 707717 2004 24 configure
-rwxr-xr-x 1 root root 6348 2004 24 configure.in
drwxr-xr-x 2 root root 512 2004 24 include
drwxr-xr-x 2 root root 512 2004 29 jni
drwxr-xr-x 3 root root 512 2004 24 scripts
drwxr-xr-x 7 root root 512 2004 24 server
drwxr-xr-x 2 root root 512 2004 24 tomcat
# ./buildconf.sh
rm autom4te.cache
libtoolize --force --automake --copy
aclocal
configure.in:57: /usr/local/bin/m4: ERROR: Reading inserted file: No such file or directory
autom4te: /usr/local/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
automake --copy --add-missing
configure.in:57: /usr/local/bin/m4: ERROR: Reading inserted file: No such file or directory
autom4te: /usr/local/bin/m4 failed with exit status: 1
automake: autoconf failed with exit status: 1
autoconf
configure.in:57: /usr/local/bin/m4: ERROR: Reading inserted file: No such file or directory
autom4te: /usr/local/bin/m4 failed with exit status: 1
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... egrep
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... none
checking how to run the C++ preprocessor... gcc -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... false
checking for ranlib... :
checking for strip... :
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking for test... /usr/bin/test
checking for rm... /usr/bin/rm
checking for grep... /usr/bin/grep
checking for echo... /usr/local/bin/echo
checking for sed... /usr/bin/sed
checking for cp... /usr/bin/cp
checking for mkdir... /usr/bin/mkdir
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/local/bin/perl
building connector for "apache-2.0"
checking checking for apache13...... not provided
checking checking for apache20...... not provided
checking checking for iis...... not provided
checking checking for iPlanet...... not provided
checking for tomcat33 location... not provided
checking for tomcat40 location... not provided
checking for tomcat41 location... not provided
configure: creating ./config.status
config.status: creating Makefile
config.status: creating server/apache13/Makefile
config.status: creating server/apache13/Makefile.apxs
config.status: creating server/apache2/Makefile
config.status: creating server/apache2/Makefile.apxs
config.status: creating ../build.properties
config.status: creating scripts/build/unix/dummy
config.status: executing depfiles commands
# 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 `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
mkdir -p ../../../build/jk2/apache2/usr/local/apache2/modules
/usr/bin/ksh /usr/local/apache2/build/libtool --silent --mode=compile gcc -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../../include -I/usr/local/apache2/include -I/usr2/SOURCES/I10/httpd-2.0.52/srclib/apr-util/include -I/usr2/SOURCES/I10/httpd-2.0.52/srclib/apr/include -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -c ../../common/jk_channel.c -o ../../../build/jk2/apache2/jk_channel.lo
In file included from /usr/include/sys/wait.h:24,
from /usr/local/apache2/include/apr.h:124,
from ../../include/jk_global.h:27,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
from /usr/include/sys/wait.h:25,
from /usr/local/apache2/include/apr.h:124,
from ../../include/jk_global.h:27,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from /usr/local/apache2/include/apr.h:124,
from ../../include/jk_global.h:27,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from /usr/local/apache2/include/apr_general.h:32,
from ../../include/jk_global.h:29,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make[1]: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1
make[1]: Leaving directory `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1 |
|