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

[debian-users:46263] Re: sarge 環境下でのphp5のリコンパイル



小山さん、早速の回答ありがとうございます。


> 上記の extension (vpopmail, tcpwrapper, expect) は、PHP5 ではいずれも
> 本体添付ではなく、PECL に扱いが移っています。
> 
> PECL とは PEAR Package の考え方を extension に適用したもので、
> pecl コマンドを使用する事で動的に extension を追加/削除することができます。
> 
> http://pecl.php.net/
> 
>> ・phpをコンパイルするconfigureファイルは、
>> どこにインストールされているのでしょうか?
> 
> ということで PECL を利用する前提ならば、configure によって構成を変更して
> 再ビルドする必要はありません。

とりあえずこの方法でインストールを試してみました。
結果として、途中までインストールは進められたものの、
それぞれエラーが出てインストールできていません。

よろしければ、原因をご指摘いただけると幸いです。

天本





■■expect
# pecl install expect-0.2
downloading expect-0.2.tgz ...
Starting to download expect-0.2.tgz (5,354 bytes)
.....done: 5,354 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
building in /var/tmp/pear-build-root/expect-0.2
running: /tmp/tmph8lZ57/expect-0.2/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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 PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main
-I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
checking for PHP extension directory... /usr/lib/php5/20051025
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.9.12 (ok)
checking for gawk... gawk
checking for expect support... yes, shared
configure: error: expect extension requires libexpect version >= 5.43.0
ERROR: `/tmp/tmph8lZ57/expect-0.2/configure' failed

※apt-getにて、expectはインストール済み
※apt-cacheにてlibexpect を検索するが、libexpect-perl のみ該当。
 これをインストールするが、結果は変わらず。


■■tcpwrap
# pecl install tcpwrap-1.0
downloading tcpwrap-1.0.tgz ...
Starting to download tcpwrap-1.0.tgz (3,203 bytes)
....done: 3,203 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
building in /var/tmp/pear-build-root/tcpwrap-1.0
running: /tmp/tmpoBrctO/tcpwrap-1.0/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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 PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main
-I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
checking for PHP extension directory... /usr/lib/php5/20051025
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.9.12 (ok)
checking for gawk... gawk
checking for tcpwrap support... yes, shared
checking for tcpwrappers files in default path... not found
configure: error: Please reinstall the tcpwrappers distribution
ERROR: `/tmp/tmpoBrctO/tcpwrap-1.0/configure' failed

※tcpdは最新にアップグレード済み


■■vpopmail
# pecl install vpopmail-0.2
downloading vpopmail-0.2.tgz ...
Starting to download vpopmail-0.2.tgz (8,970 bytes)
.....done: 8,970 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
Vpopmail install directory? [autodetect] :
building in /var/tmp/pear-build-root/vpopmail-0.2
running: /tmp/tmpCcf1Yl/vpopmail-0.2/configure --with-vpopmail
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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 PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main
-I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
checking for PHP extension directory... /usr/lib/php5/20051025
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.9.12 (ok)
checking for gawk... gawk
checking for vpopmail support... yes, shared
checking for vpopmail install directory... /home/vpopmail
checking for valias_select in -lvpopmail... no
/tmp/tmpCcf1Yl/vpopmail-0.2/configure: line 3582: test: too many arguments
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 whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
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 whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/vpopmail-0.2/libtool --mode=compile gcc
-I. -I/tmp/tmpCcf1Yl/vpopmail-0.2 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/vpopmail-0.2/include
-I/var/tmp/pear-build-root/vpopmail-0.2/main -I/tmp/tmpCcf1Yl/vpopmail-0.2
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext -I/home/vpopmail/include
-DHAVE_CONFIG_H  -g -O2   -c /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c -o
php_vpopmail.lo
mkdir .libs
 gcc -I. -I/tmp/tmpCcf1Yl/vpopmail-0.2 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/vpopmail-0.2/include
-I/var/tmp/pear-build-root/vpopmail-0.2/main -I/tmp/tmpCcf1Yl/vpopmail-0.2
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext -I/home/vpopmail/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c  -fPIC
-DPIC -o .libs/php_vpopmail.o
In file included from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:51:
/home/vpopmail/include/vpopmail_config.h:218:1: warning: "PACKAGE_NAME"
redefined
In file included from /usr/include/php5/TSRM/tsrm_config.h:1,
                 from /usr/include/php5/TSRM/tsrm_config_common.h:11,
                 from /usr/include/php5/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/include/php5/main/php.h:402,
                 from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:35:
/usr/include/php5/main/../main/php_config.h:1990:1: warning: this is the
location of the previous definition
In file included from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:51:
/home/vpopmail/include/vpopmail_config.h:221:1: warning: "PACKAGE_STRING"
redefined
In file included from /usr/include/php5/TSRM/tsrm_config.h:1,
                 from /usr/include/php5/TSRM/tsrm_config_common.h:11,
                 from /usr/include/php5/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/include/php5/main/php.h:402,
                 from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:35:
/usr/include/php5/main/../main/php_config.h:1993:1: warning: this is the
location of the previous definition
In file included from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:51:
/home/vpopmail/include/vpopmail_config.h:224:1: warning: "PACKAGE_TARNAME"
redefined
In file included from /usr/include/php5/TSRM/tsrm_config.h:1,
                 from /usr/include/php5/TSRM/tsrm_config_common.h:11,
                 from /usr/include/php5/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/include/php5/main/php.h:402,
                 from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:35:
/usr/include/php5/main/../main/php_config.h:1996:1: warning: this is the
location of the previous definition
In file included from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:51:
/home/vpopmail/include/vpopmail_config.h:227:1: warning: "PACKAGE_VERSION"
redefined
In file included from /usr/include/php5/TSRM/tsrm_config.h:1,
                 from /usr/include/php5/TSRM/tsrm_config_common.h:11,
                 from /usr/include/php5/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/include/php5/main/php.h:402,
                 from /tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:35:
/usr/include/php5/main/../main/php_config.h:1999:1: warning: this is the
location of the previous definition
/tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c: In function
'zif_vpopmail_add_alias_domain':
/tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:267: warning: pointer targets in
passing argument 4 of 'vget_assign' differ in signedness
/tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:267: warning: pointer targets in
passing argument 5 of 'vget_assign' differ in signedness
/tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:288: warning: passing argument 3
of 'add_domain_assign' makes pointer from integer without a cast
/tmp/tmpCcf1Yl/vpopmail-0.2/php_vpopmail.c:288: error: too few arguments to
function 'add_domain_assign'
make: *** [php_vpopmail.lo] Error 1