配置求助:redhat linux enterprise as4下为PHP扩展NCF
czgnet
|
1#
czgnet 发表于 2006-10-23 11:59
配置求助:redhat linux enterprise as4下为PHP扩展NCF
有谁在用NCF吗?(NCF Extenstion - Chinese encoding conversion for PHP)
我编译PHP的时候有带--with-ncf,(先有make indstall ncf ...ok), 但是,程序应用时,说没有定义ncf_gb2big5() 。---我想到了重新编译NCF进去。 包文件全部按[www.vhconsultants.com/ncf.htm]描述标准展开了。下面开始 # ./buildconf # ./configure --with-ncf # make # make test //------------------------------------------------ [root@localhost php-5.1.6]# ./buildconf --force Forcing buildconf using default Zend directory [root@localhost php-5.1.6]# [root@localhost php-5.1.6]# ./configure --with-ncf .......... ...... ... Configuring libtool 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 how to recognise dependent libraries... pass_all 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 static flag works... yes 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 supports -c -o file.o... yes checking whether the gcc 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 checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes creating libtool appending configuration tag "CXX" to libtool Generating files configure: creating ./config.status creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | *** WARNING *** | | | | You will be compiling the CGI version of PHP without any | | redirection checking. By putting this cgi binary somewhere in | | your web space, users may be able to circumvent existing .htaccess | | security by loading files directly through the parser. See | | [url="http://www.php.net/manual/security.php"]http://www.php.net/manual/security.php[/url] for more details. | +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP. config.status: creating php5.spec config.status: creating main/build-defs.h config.status: creating scripts/phpize config.status: creating scripts/man1/phpize.1 config.status: creating scripts/php-config config.status: creating scripts/man1/php-config.1 config.status: creating sapi/cli/php.1 config.status: creating main/php_config.h config.status: executing default commands [root@localhost php-5.1.6]# [root@localhost php-5.1.6]# make /bin/sh /usr/local/src/kt_soft/php-5.1.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/ncf/ -I/usr/local/src/kt_soft/php-5.1.6/ext/ncf/ -DPHP_ATOM_INC -I/usr/local/src/kt_soft/php-5.1.6/include -I/usr/local/src/kt_soft/php-5.1.6/main -I/usr/local/src/kt_soft/php-5.1.6 -I/usr/include/libxml2 -I/usr/local/src/kt_soft/php-5.1.6/ext/date/lib -I/usr/local/include -I/usr/local/src/kt_soft/php-5.1.6/TSRM -I/usr/local/src/kt_soft/php-5.1.6/Zend -I/usr/include -g -O2 -c /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c -o ext/ncf/ncf.lo /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:49: warning: initialization makes integer from pointer without a cast /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:49: error: initializer element is not computable at load time /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:49: error: (near initialization for `ncf_module_entry.size') /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:50: warning: initialization makes integer from pointer without a cast /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:51: warning: initialization makes integer from pointer without a cast /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:51: error: initializer element is not computable at load time /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:51: error: (near initialization for `ncf_module_entry.zend_debug') /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:52: warning: initialization makes integer from pointer without a cast /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:52: error: initializer element is not computable at load time /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:52: error: (near initialization for `ncf_module_entry.zts') /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:53: warning: initialization from incompatible pointer type /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:54: warning: initialization from incompatible pointer type /usr/local/src/kt_soft/php-5.1.6/ext/ncf/ncf.c:55: warning: initialization from incompatible pointer type make: *** [ext/ncf/ncf.lo] Error 1 [root@localhost php-5.1.6]# //------------------------------------------------- 我在php-5.1.6下面找,ext/ncf/ncf.lo 没有这个文件。 请你帮我看一下,是什么问题? 是系统编译器问题?或有哪个包没有装,还是...? 请大家帮我看看! |