[PHP-users 33026] PHPのバージョンアップ

okusawa okusawaaki @ sea.sannet.ne.jp
2007年 12月 13日 (木) 13:57:23 JST


おくと申します。

FreeBSD 4.11-14p
Apache 2.2.6
PHP 4.4.2

で稼動していたサーバを年末のサポート切れ前にバージョンアップを試したので
すが、参照URLのバグに当たっているのかlibphp5.soが作成されません。

「PHP5インストールでのlibphp5.soバグ対応」
http://www.oklab.org/language_c/php5_0_2_install_bug.htm

パッケージをあきらめPHP本家からダウンロードしたPHP5.2.5をインストールし
ているのですが、./configure実行時に、以下のエラーが出てしまいます。

configure: warning: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.

パッケージでre2c 12.1をインストールしても同じメッセージが出るので、re2c
からダウンロードしたファイルでインストールをしたところ以下のエラーが出る
のですが、調べても対処方法が分かりません。
(ver 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.13.1でも同じ結果でした)

対処方法やアドバイスなどありましたらご回答いただけると幸いです。
よろしくお願いします。

bison -y -d ./parser.y || exit
cat y.tab.c | sed 's/"y\.tab\.c"/"parser.cc"/g' > ./parser.cc
rm -f y.tab.c
if cmp -s ./parser.cc ./bootstrap/parser.cc; then :; else cp -f ./parser.cc ./bootstrap/parser.cc; fi
if cmp -s y.tab.h ./y.tab.h; then :; else mv -f y.tab.h ./y.tab.h; fi
if cmp -s ./y.tab.h ./bootstrap/y.tab.h; then :; else cp -f ./y.tab.h ./bootstrap/y.tab.h; fi
cp -f ./bootstrap/scanner.cc scanner.cc
make  all-am
source='code.cc' object='code.o' libtool=no  DEPDIR=.deps depmode=gcc /bin/sh ./depcomp  g++ -DHAVE_CONFIG_H -I.      -g -O2 -c -o code.o code.cc
In file included from globals.h:9,
                 from code.cc:8:
stream_lc.h:18: syntax error before `<'
stream_lc.h:29: syntax error before `;'
stream_lc.h:31: syntax error before `<'
stream_lc.h:42: destructors must be member functions
stream_lc.h:42: virtual outside class declaration
stream_lc.h: In function `void basic_null_stream()':
stream_lc.h:42: confused by earlier errors, bailing out
*** Error code 1

Stop in /usr/local/src/re2c-0.12.3.
*** Error code 1

Stop in /usr/local/src/re2c-0.12.3.


PHP-users メーリングリストの案内