投稿日:2004年04月04日 作成鷹の巣

No.15490 apache2.0.40-21(RedHat9内臓)とtomcat4を使って、すんなりコンパイル出来る組み合わせは?



apache2.0.40-21(RedHat9内臓)とtomcat4を使って、すんなりコンパイル出来る組み合わせは?

No.15490 投稿時間:2004年04月04日(Sun) 00:23 投稿者名:YAMANOUCHI URL:

現在apache2とtomcat4連結を試みているのですが、
どうもうまくいきません。
OSはRedHat9です。

組み合わせは
j2sdk-1_4_2-nb-3_5_1-bin-linux.bin
apache-ant-1.6.1-bin.tar.gz
jakarta-tomcat-4.1.29-LE-jdk14.tar.gz、
apache2.0.40-21(RedHat9内臓)、
jakarta-tomcat-connectors-jk2-2.0.4-src
です。

RedHat9内臓のapacheが悪いのでしょうか?
apache2.0.40-21(RedHat9内臓)を使って、
すんなり、configure,makeといける組み合わせを教えてください。

その前のconfigureで以下のように表示されました。
途中でapxs:Errorと表示されています。

APR_INCLUDEDIR'.
APU_INCLUDEDIR'.
とは何でしょうか?

宜しくお願いします。

[root@root native2]# ./configure --with-apxs2=/usr/sbin/apxs --with-tomcat41=/usr/local/jakarta-tomcat-4.1.29-LE-jdk14 --with-jakarta-home=/usr/local/j2sdk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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 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 for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -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 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 whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
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
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
apxs:Error: Invalid query string `APR_INCLUDEDIR'.
apxs:Error: Invalid query string `APU_INCLUDEDIR'.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/apxs line 261.
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... /usr/local/jakarta-tomcat-4.1.29-LE-jdk14
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を実行すると以下のようになります。
Error 1 (ignored)無視?なんでしょうか?



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/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules
mode=link gcc -avoid-version -module -rpath /usr/lib/httpd/modules -o ../../../build/jk2/apache2/mod_jk2.la ../../../build/jk2/apache2/jk_channel.lo ../../../build/jk2/apache2/jk_channel_apr_socket.lo ../../../build/jk2/apache2/jk_channel_jni.lo ../../../build/jk2/apache2/jk_channel_un.lo ../../../build/jk2/apache2/jk_config.lo ../../../build/jk2/apache2/jk_config_file.lo ../../../build/jk2/apache2/jk_endpoint.lo ../../../build/jk2/apache2/jk_env.lo ../../../build/jk2/apache2/jk_handler_logon.lo ../../../build/jk2/apache2/jk_handler_response.lo ../../../build/jk2/apache2/jk_logger_file.lo ../../../build/jk2/apache2/jk_logger_win32.lo ../../../build/jk2/apache2/jk_map.lo ../../../build/jk2/apache2/jk_md5.lo ../../../build/jk2/apache2/jk_msg_ajp.lo ../../../build/jk2/apache2/jk_mutex.lo ../../../build/jk2/apache2/jk_mutex_proc.lo ../../../build/jk2/apache2/jk_mutex_thread.lo ../../../build/jk2/apache2/jk_nwmain.lo ../../../build/jk2/apache2/jk_objCache.lo ../../../build/jk2/apache2/jk_pool_apr.lo ../../../build/jk2/apache2/jk_registry.lo ../../../build/jk2/apache2/jk_requtil.lo ../../../build/jk2/apache2/jk_shm.lo ../../../build/jk2/apache2/jk_signal.lo ../../../build/jk2/apache2/jk_uriEnv.lo ../../../build/jk2/apache2/jk_uriMap.lo ../../../build/jk2/apache2/jk_user.lo ../../../build/jk2/apache2/jk_vm_default.lo ../../../build/jk2/apache2/jk_workerEnv.lo ../../../build/jk2/apache2/jk_worker_ajp13.lo ../../../build/jk2/apache2/jk_worker_jni.lo
../../../build/jk2/apache2/jk_worker_lb.lo ../../../build/jk2/apache2/jk_worker_run.lo ../../../build/jk2/apache2/jk_worker_status.lo ../../../build/jk2/apache2/jk_jni_aprImpl.lo ../../../build/jk2/apache2/jk_logger_apache2.lo ../../../build/jk2/apache2/jk_map_aprtable.lo ../../../build/jk2/apache2/jk_service_apache2.lo ../../../build/jk2/apache2/mod_jk2.lo
gcc: unrecognized option `-rpath'
/usr/lib/httpd/modules: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[1]: [../../../build/jk2/apache2/mod_jk2.la] Error 1 (ignored)
mode=install /bin/cp ../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2//usr/lib/httpd/modules
/bin/cp: cannot stat `../../../build/jk2/apache2/mod_jk2.la': No such file or directory
make[1]: [../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so] Error 1 (ignored)
/bin/cp ../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so ../../../build/jk2/apache2/mod_jk2.so
/bin/cp: cannot stat `../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so': No such file or directory
make[1]: *** [../../../build/jk2/apache2/mod_jk2.so] Error 1
make[1]: Leaving directory `/usr/local/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1


RPMは使わず、すべてソースでやってみてください。

No.15501 投稿時間:2004年04月04日(Sun) 09:45 投稿者名:誰かさん URL:

おそらく、
http://sakaguch.com/PastBBS/0030/B0015427.html
http://sakaguch.com/PastBBS/0030/B0015421.html
http://sakaguch.com/PastBBS/0030/B0015403.html

この三つのスレを立てた人と同一人物かと思われるのですが、
何回も投稿するのは別にいいと思いますが、いちいちハンドルネームを変えるのはよくないと思います。

RPMは使わず、すべてソースでやってみてください。


|目次|掲示板|過去ログ目次|▲頁先頭|