Namazu-users-ja(旧)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PHP4.1.2 Module が作成できない



田辺です。

昨日からNamazuを弄り始めたばかりですが・・・
PHP 4.1.2で利用するNamazuモジュールがインストールできなくて困っています。

環境は・・・

Slackware 7.0
Apache 1.3.26
PHP 4.1.2(国際化版)
nkf 1.71
kakasi 2.3.4
Namazu 2.0.10
php4_mbregex-1.3.1.tar.gz

をインストールした状態で、NamazuのPHP4用モジュール(php4_namazu-2.1.0.tar.gz)の
コンパイルを行いましたが、モジュールが作成されません。
静的組込みおよび動的組込みの両方を試しましたが、どちらも途中でエラーが出ているようです。

AC_PROG_LIBTOOL という環境変数(?)が設定されていないのが原因ではないかと思われるのですが
具体的にどのような値を設定すればよいのかわかりません。
# 素人目の憶測ですので間違ってる可能性のほうが高いと思いますが。

どなたか、この現象を解決するヒントをお持ちの方は居られないでしょうか?
宜しくお願い致します。


以下に資料として実行時のログを示します。

 * 動的組込みを実行した場合
# tar xzf php4_namazu-2.1.0.tar.gz
# cd namazu
# phpize
configure.in:43: error: possibly undefined macro: AC_PROG_LIBTOOL
autoheader: `config.h.in' is created
You should update your `aclocal.m4' by running aclocal.
# ./configure --with-namazu
# make install
make[1]: Entering directory `/usr/local/src/namazu'
mode=compile gcc -I. -I/usr/local/src/namazu/ -I/usr/local/src/namazu/main -I/us
r/local/src/namazu -I/usr/local/include/php -I/usr/local/include/php/main -I/usr
/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAV
E_CONFIG_H  -prefer-pic  -c php_namazu.c && touch php_namazu.slo
gcc: unrecognized option `-prefer-pic'
mode=link gcc  -I. -I/usr/local/src/namazu/ -I/usr/local/src/namazu/main -I/usr/
local/src/namazu -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/l
ocal/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_
CONFIG_H -g -O2   -o namazu.la -avoid-version -module -rpath /usr/local/src/nama
zu/modules  php_namazu.lo  -R/usr/local/lib -L/usr/local/lib -lnmz
gcc: php_namazu.lo: No such file or directory
gcc: unrecognized option `-rpath'
gcc: unrecognized option `-R/usr/local/lib'
make[1]: [namazu.la] Error 1 (ignored)
mode=install cp namazu.la /usr/local/src/namazu/modules
cp: namazu.la: No such file or directory
make[1]: [namazu.la] Error 1 (ignored)
installing shared modules into /usr/local/lib/php/extensions/no-debug-non-zts-20
010901
cp: modules/*: No such file or directory
make[1]: Leaving directory `/usr/local/src/namazu'

 * 静的組込みを実行した場合

# cd php-4.1.2/ext
# tar xfz ../../php4_namazu-2.1.0.tar.gz
# tar xfz ../../php4_mbregex-1.3.1.tar.gz
# rm configure
# ./buildconf
rebuilding configure
rebuilding main/php_config.h.in
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: `main/php_config.h.in' is created

# ./configure --with-apxs=/usr/local/apache_1.3.26/bin/apxs \
> --enable-trans-sid --enable-mbregex --enable-zend-multibyte \
> --enable-mbstring --enable-mbstr-enc-trans --without-mysql \
> --with-namazu=/usr/local/var --enable-versioning
checking for a BSD-compatible install... /usr/local/bin/ginstall -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 whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... ./configure: test: 35

Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
Free Software Foundation, Inc: integer expression expected
bison (GNU Bison) 1.35

Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
Free Software Foundation, Inc (ok)
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 how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
./configure: line 3792: syntax error near unexpected token `fi'
./configure: line 3792: `fi'
# make
make: *** No targets specified and no makefile found.  Stop.

-------------------
田辺 勝一
E-mail tanabe@xxxxxxxxxxxx