[PHP-dev 209] Re: mbregex commit

Yasuo Ohgaki php-dev@php.gr.jp
Sun, 13 Jan 2002 12:01:59 +0900


Rui Hirokawa wrote:
> 廣川です。
> 
> PHP CVS に mbregex関連のコードをコミットしました。
> コードの仕様は以前に書いたものと同じです。
> 
> また、mb_get_info()という関数を追加しました。
> 
> func_overloadを含むmbstringの設定値を連想配列で返します。
> 引数に "internal_encoding"などと指定すると、その設定値を文字列で
> 返します。
> 
> 

コンパイルしてみました。
このConfigureでエラーでビルドできませんでした。
(Kondara 2.0)
'./configure' \
'--with-apxs' \
'--without-mysql' \
'--with-bz2' \
'--with-crack=/usr/local' \
'--with-curl' \
'--with-ftp' \
'--with-iconv' \
'--with-mhash' \
'--with-mcrypt' \
'--with-msession' \
'--with-mm' \
'--with-openssl' \
'--with-pgsql' \
'--with-regex=system' \
'--with-zlib' \
'--with-dom' \
'--with-dom-xslt' \
'--with-snmp' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-freetype-dir=/usr' \
'--with-jpeg-dir=usr' \
'--with-png-dir=/usr' \
'--with-xpm-dir=/usr/X11R6' \
'--enable-ctype' \
'--enable-shmop' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-sockets' \
'--enable-mbstring' \
'--enable-mbstr-enc-trans' \
'--enable-mbregex' \
'--enable-memory-limit' \
'--enable-wddx' \
'--enable-mailparse' \
'--with-xml' \
'--with-xmlprc' \
'--enable-debug' \


cd /home/yohgaki/cvs/php/DEV/ext/mbstring/
make -k
make[1]: ディレクトリ `/home/yohgaki/cvs/php/DEV/ext/mbstring' に入ります
/bin/sh /home/yohgaki/cvs/php/DEV/libtool --mode=compile gcc  -I.
-I/home/yohgaki/cvs/php/DEV/ext/mbstring
-I/home/yohgaki/cvs/php/DEV/main -I/home/yohgaki/cvs/php/DEV
-I/usr/include/apache -I/home/yohgaki/cvs/php/DEV/Zend
-I/usr/local/include -I/usr/include/freetype2/freetype
-I/usr/include/ucd-snmp -I/home/yohgaki/cvs/php/DEV/ext/xml/expat
-DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT
-I/home/yohgaki/cvs/php/DEV/TSRM -g -Wall -prefer-pic  -c mbregex.c
gcc -I. -I/home/yohgaki/cvs/php/DEV/ext/mbstring
-I/home/yohgaki/cvs/php/DEV/main -I/home/yohgaki/cvs/php/DEV
-I/usr/include/apache -I/home/yohgaki/cvs/php/DEV/Zend
-I/usr/local/include -I/usr/include/freetype2/freetype
-I/usr/include/ucd-snmp -I/home/yohgaki/cvs/php/DEV/ext/xml/expat
-DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT
-I/home/yohgaki/cvs/php/DEV/TSRM -g -Wall -c mbregex.c  -fPIC -DPIC -o
mbregex.lo
mbregex.c:528: conflicting types for `re_set_syntax'
/usr/include/regex.h:444: previous declaration of `re_set_syntax'
mbregex.c: In function `mbre_compile_pattern':
mbregex.c:1570: warning: suggest parentheses around arithmetic in
operand of |
mbregex.c:1596: warning: suggest parentheses around && within ||
mbregex.c:1665: warning: suggest parentheses around arithmetic in
operand of |
mbregex.c:1787: warning: subscript has type `char'
mbregex.c:1789: warning: subscript has type `char'
mbregex.c:1789: warning: subscript has type `char'
mbregex.c:2310: warning: subscript has type `char'
mbregex.c:2312: warning: subscript has type `char'
mbregex.c:2312: warning: subscript has type `char'
mbregex.c:1354: warning: unused variable `stackt'
mbregex.c:1292: warning: `c1' might be used uninitialized in this function
mbregex.c: In function `mbre_compile_fastmap':
mbregex.c:3177: warning: enumeration value `fail' not handled in switch
mbregex.c: In function `mbre_search':
mbregex.c:3415: warning: suggest parentheses around arithmetic in
operand of |
mbregex.c: In function `mbre_match':
mbregex.c:3982: warning: suggest parentheses around arithmetic in
operand of |
mbregex.c:4117: warning: suggest parentheses around arithmetic in
operand of |
mbregex.c:4402: warning: enumeration value `fail' not handled in switch
mbregex.c: At top level:
mbregex.c:2672: warning: `insert_op' defined but not used
make[1]: *** [mbregex.lo] エラー 1
make[1]: ターゲット `all-p' はエラーにより再 make できませんでした。
make[1]: ディレクトリ `/home/yohgaki/cvs/php/DEV/ext/mbstring' から出ます
make: *** [all-recursive] エラー 1
make: ターゲット `all' はエラーにより再 make できませんでした。

Compilation exited abnormally with code 2 at Sun Jan 13 11:57:09

-- 
Yasuo Ohgaki
yohgaki@dd.iij4u.or.jp

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/