免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1606 | 回复: 7
打印 上一主题 下一主题

求助各位高手,安装JK2的问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-18 12:16 |只看该作者 |倒序浏览
在 make 中出现以下错误是什么意思?

parse error before " siginfo_t "

我的系统是 Solaris10 for pc

论坛徽章:
0
2 [报告]
发表于 2004-12-18 13:02 |只看该作者

求助各位高手,安装JK2的问题。

把你的安装过程帖出看看。

论坛徽章:
0
3 [报告]
发表于 2004-12-18 19:11 |只看该作者

求助各位高手,安装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

论坛徽章:
0
4 [报告]
发表于 2004-12-19 11:24 |只看该作者

求助各位高手,安装JK2的问题。

周末高手些都不在吗?

论坛徽章:
0
5 [报告]
发表于 2004-12-19 19:32 |只看该作者

求助各位高手,安装JK2的问题。

编译安装Mod_JK2

Mod_JK2 编译需求:
autoconf (下载安装 autoconf-2.59-sol9-intel-local.gz)
automake (下载安装 automake-1.7.2-sol9-intel-local.gz)
gcc (下载安装 gcc-3.3.2-sol9-intel-local.gz)
libtool (下载安装 libtool-1.5-sol9-intel-local.gz)
m4 (下载安装 m4-1.4-sol9-intel-local.gz)
GNU make (下载安装 make-3.80-sol9-intel-local.gz)

编译步骤:
# cd ${mod_jk2.source}/jk/native2
# ./buildconf.sh
# ./configure --with-apxs2=/usr/apache2/bin/apxs
# /usr/local/bin/make

根据屏幕的信息确认编译是否成功。
复制Mod_JK2到Apache2模块加载目录:
# cd ${mod_jk2.source}/jk/build/jk2/apache2
# cp mod_jk2.so /usr/local/apache2/modules/

论坛徽章:
0
6 [报告]
发表于 2004-12-20 08:27 |只看该作者

求助各位高手,安装JK2的问题。

以上软件全装了的,但是是 for Solaris10,因为我的系统是10的,不知道是不是版本的问题。

论坛徽章:
0
7 [报告]
发表于 2004-12-20 11:16 |只看该作者

求助各位高手,安装JK2的问题。

Liu_xp2003    你给提供的都是sol9他的系统是10,楼珠海是看看是不是版本的问题

论坛徽章:
0
8 [报告]
发表于 2004-12-21 13:20 |只看该作者

求助各位高手,安装JK2的问题。

就是,我问的是10,你答9。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP