免费注册 查看新帖 |

Chinaunix

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

[SCO UNIX] 关于Apache与Tomcat的连接模块编译问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-20 08:50 |只看该作者 |倒序浏览
操作系统:Tru64 V5.1B
Apache版本 2.0.59
Tomcat版本 5.0.28

连接模块源代码:
tomcat-connectors-1.2.21-src.tar.gz

不知道版本是否正确

参考说明:
Here you'll find the binaries for IIS, Apache 2.0 and 2.2 Web Server.

Built for Apache 2.0.59 and above, and 2.2.4 and above.

    * mod_jk-apache-2.0.59.so is for Apache 2.0, and works with Apache 2.0.59 and later. Rename to mod_jk.so before putting it in your Apache2/modules directory.
    * mod_jk-apache-2.2.4.so is for Apache 2.2, and works with Apache 2.2.4 and later. Rename to mod_jk.so before putting it in your Apache2/modules directory.
    * isapi_redirect.dll is for IIS 5 and later Web Server.
    * nsapi_redirect.dll is for Sun ONE Web Server 6.1 and later (formerly Netscape iPlanet).
    * jk_symbols.zip contans debug (.pdb) information for all modules.




文档帮助编译过程:
This is a source release of the mod_jk 1.2 web server connector for
Tomcat. Only the web server connector source is included.  The Tomcat
side of the connector is available with the normal Tomcat distribution.

Documentation for how to build mod_jk 1.2 from source and configure
it for your webserver is located in the native/BUILDING file in this
source distribution.

For the impatient Apache admins:
$> cd native
$> ./configure --with-apxs=/usr/sbin/apxs (or where ever the apxs/apxs2 is)
$> make
$> su -c 'make install'

For the impatient SunONE admins:
$> cd native
$> ./configure --enable-netscape
$> cd netscape
$> make -f Makefile.solaris




实际过程:
<<< Log from 10.136.202.193 started 三月 19, 2007, 17:44:25 >>>
hzgis:zy>                                                                                                                                                                  
hzgis:zy> ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-tomcat=/usr/hzgis_data/hzgis_II/apache-tomcat/jakarta-tomcat-5.0.28                                   
checking build system type... alphaev68-dec-osf5.1
checking host system type... alphaev68-dec-osf5.1
checking target system type... alphaev68-dec-osf5.1
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... no
checking for cc... cc
checking for C compiler default output file name... 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... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
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 dependent libraries... pass_all
checking how to run the C preprocessor... cc -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... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f77 accepts -g... no
checking the maximum length of command line arguments... 16384
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for cc option to produce PIC...
checking if cc static flag -non_shared works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... osf5.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
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... no
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
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 f77 option to produce PIC...
checking if f77 static flag -non_shared works... no
checking if f77 supports -c -o file.o... no
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... osf5.1 ld.so
checking how to hardcode library paths into programs... immediate                                                                                                         
checking for test... /usr/bin/test
checking for rm... /usr/bin/rm
checking for grep... /usr/bin/grep
checking for echo... /usr/bin/echo
checking for sed... /usr/bin/sed
checking for cp... /usr/bin/cp
checking for mkdir... /usr/bin/mkdir
checking for char... yes                                                                                                                                                   
checking size of char... 1
checking for int... yes
checking size of int... 4                                                                                                                                                  
checking for long... yes                                                                                                                                                   
checking size of long... 8                                                                                                                                                
checking for short... yes                                                                                                                                                  
checking size of short... 2
checking for long double... yes
checking size of long double... 16
checking for long long... yes
checking size of long long... 8
checking for longlong... no
checking size of longlong... 0
checking for snprintf... yes
checking for vsnprintf... yes
checking for flock... yes
checking for setsockopt in -lsocket... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking whether to use SO_RCVTIMEO with setsockopt()... yes
checking whether to use SO_SNDTIMEO with setsockopt()... yes
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
APRINCLUDEDIR is  -I/usr/hzgis_data/hzgis_II/apache/httpd-2.0.59/srclib/apr/include -I/usr/hzgis_data/hzgis_II/apache/httpd-2.0.59/srclib/apr-util/include
building connector for "apache-2.0"
checking for target platform... unix
no apache given
no netscape given
configure: creating ./config.status
config.status: creating Makefile
config.status: creating apache-1.3/Makefile
config.status: creating apache-1.3/Makefile.apxs
config.status: creating apache-2.0/Makefile
config.status: creating apache-2.0/Makefile.apxs
config.status: creating common/Makefile
config.status: creating common/list.mk
config.status: creating common/jk_types.h
config.status: creating jni/Makefile
config.status: creating common/portable.h
config.status: executing depfiles commands
hzgis:zy> make
No suffix list.
Making all in common
/bin/ksh /usr/local/apache2/build/libtool --silent --mode=compile cc -I/usr/local/apache2/include -g -g -DHAVE_APR  -I/usr/hzgis_data/hzgis_II/apache/httpd-2.0.59/srclib/a
pr/include -I/usr/hzgis_data/hzgis_II/apache/httpd-2.0.59/srclib/apr-util/include -g -DOSF1 -I /usr/opt/java142/include -I /usr/opt/java142/include/ -c ./jk_ajp12_worker.c
-o ./jk_ajp12_worker.lo
cc: Severe: /usr/local/apache2/include/apr.h, line 113: Cannot find file <sys/types.h> specified in #include directive. (noinclfilef)
#include <sys/types.h>
-^
*** Exit 1
Stop.
*** Exit 1
Stop.
hzgis:zy>
<<< Log from 10.136.202.193 ended 三月 19, 2007, 17:45:24 >>>


问题:/usr/local/apache2/include/apr.h,Cannot find file <sys/types.h> specified in #include directive?
何解?

论坛徽章:
0
2 [报告]
发表于 2007-03-22 11:23 |只看该作者
可以给些意见么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP