php make errors

#1
This is from php 4.4.7 and the configure went fine:


Might be moved to the php forum (sorry)




Here is the configure script I ran and reported no errors:

'./configure' '--with-litespeed' '--prefix=/usr' '--exec-prefix=/usr/local' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=../php' '--with-config-file-scan-dir=../php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos' '--with-mysql=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/magic.mime'





/usr/bin/ld: warning: libcom_err.so.2, needed by /lib/libssl.so.5, may conflict with libcom_err.so.3
/usr/bin/ld: warning: libcom_err.so.2, needed by /lib/libssl.so.5, may conflict with libcom_err.so.3
/usr/bin/ld: warning: libcom_err.so.2, needed by /lib/libssl.so.5, may conflict with libcom_err.so.3
ext/pcre/php_pcre.o(.text+0x8e): In function `zm_info_pcre':
/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:79: undefined reference to `php_pcre_version'
ext/pcre/php_pcre.o(.text+0x1fe): In function `pcre_get_compiled_regex':
/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:160: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x3a8):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:278: undefined reference to `php_pcre_maketables'
ext/pcre/php_pcre.o(.text+0x3c2):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:282: undefined reference to `php_pcre_compile'
ext/pcre/php_pcre.o(.text+0x50a):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:297: undefined reference to `php_pcre_study'
ext/pcre/php_pcre.o(.text+0x6b2): In function `php_pcre_match':
/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:431: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x717):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:453: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x73a):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:461: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x74d):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:462: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x819):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:493: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x8ee):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:510: undefined reference to `php_pcre_get_substring_list'
ext/pcre/php_pcre.o(.text+0xa08):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:581: undefined reference to `php_pcre_free'
ext/pcre/php_pcre.o(.text+0xe38):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:581: undefined reference to `php_pcre_free'
ext/pcre/php_pcre.o(.text+0x110d): In function `php_pcre_replace':
/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:858: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x1180):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:877: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x14f2):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:877: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x23a0): In function `zif_preg_split':
/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:1263: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x240a):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:1280: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x2c8f): In function `zif_preg_grep':
/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:1508: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x2d54):/usr/local/src/php-4.4.7/ext/pcre/php_pcre.c:1527: undefined reference to `php_pcre_exec'
ext/standard/browscap.o(.text+0x43c): In function `browser_reg_compare':
/usr/local/src/php-4.4.7/ext/standard/browscap.c:218: undefined reference to `php_regcomp'
ext/standard/browscap.o(.text+0x463):/usr/local/src/php-4.4.7/ext/standard/browscap.c:221: undefined reference to `php_regexec'
ext/standard/browscap.o(.text+0x483):/usr/local/src/php-4.4.7/ext/standard/browscap.c:273: undefined reference to `php_regfree'
ext/standard/browscap.o(.text+0x54f):/usr/local/src/php-4.4.7/ext/standard/browscap.c:230: undefined reference to `php_regfree'
ext/standard/reg.o(.text+0x51): In function `_php_regcomp':
/usr/local/src/php-4.4.7/ext/standard/reg.c:62: undefined reference to `php_regcomp'
ext/standard/reg.o(.text+0x17b): In function `php_reg_eprint':
/usr/local/src/php-4.4.7/ext/standard/reg.c:150: undefined reference to `php_regerror'
ext/standard/reg.o(.text+0x1a2):/usr/local/src/php-4.4.7/ext/standard/reg.c:155: undefined reference to `php_regerror'
ext/standard/reg.o(.text+0x1b2):/usr/local/src/php-4.4.7/ext/standard/reg.c:160: undefined reference to `php_regerror'
ext/standard/reg.o(.text+0x22d):/usr/local/src/php-4.4.7/ext/standard/reg.c:173: undefined reference to `php_regerror'
ext/standard/reg.o(.text+0x37a): In function `php_ereg':
/usr/local/src/php-4.4.7/ext/standard/reg.c:236: undefined reference to `php_regexec'
ext/standard/reg.o(.text+0x708): In function `php_reg_replace':
/usr/local/src/php-4.4.7/ext/standard/reg.c:337: undefined reference to `php_regexec'
ext/standard/reg.o(.text+0xefa): In function `php_split':
/usr/local/src/php-4.4.7/ext/standard/reg.c:587: undefined reference to `php_regexec'
ext/standard/reg.o(.text+0xf1): In function `_free_reg_cache':
/usr/local/src/php-4.4.7/ext/standard/reg.c:97: undefined reference to `php_regfree'
ext/standard/aggregation.o(.text+0x8e8): In function `aggregate':
/usr/local/src/php-4.4.7/ext/standard/aggregation.c:224: undefined reference to `php_pcre_exec'
ext/standard/aggregation.o(.text+0xa5a):/usr/local/src/php-4.4.7/ext/standard/aggregation.c:117: undefined reference to `php_pcre_exec'
ext/xml/xml.o(.text+0x282): In function `zm_info_xml':
/usr/local/src/php-4.4.7/ext/xml/xml.c:233: undefined reference to `php_XML_ExpatVersion'
ext/xml/xml.o(.text+0x553): In function `xml_parser_dtor':
/usr/local/src/php-4.4.7/ext/xml/xml.c:297: undefined reference to `php_XML_ParserFree'
ext/xml/xml.o(.text+0x16aa): In function `zif_xml_parser_create':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1043: undefined reference to `php_XML_ParserCreate'
ext/xml/xml.o(.text+0x16ce):/usr/local/src/php-4.4.7/ext/xml/xml.c:1049: undefined reference to `php_XML_SetUserData'
ext/xml/xml.o(.text+0x18d2): In function `zif_xml_parser_create_ns':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1101: undefined reference to `php_XML_ParserCreateNS'
ext/xml/xml.o(.text+0x18f2):/usr/local/src/php-4.4.7/ext/xml/xml.c:1105: undefined reference to `php_XML_SetUserData'
ext/xml/xml.o(.text+0x1b37): In function `zif_xml_set_element_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1165: undefined reference to `php_XML_SetElementHandler'
ext/xml/xml.o(.text+0x1bc2): In function `zif_xml_set_character_data_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1184: undefined reference to `php_XML_SetCharacterDataHandler'
ext/xml/xml.o(.text+0x1c4a): In function `zif_xml_set_processing_instruction_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1203: undefined reference to `php_XML_SetProcessingInstructionHandler'
ext/xml/xml.o(.text+0x1cd2): In function `zif_xml_set_default_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1221: undefined reference to `php_XML_SetDefaultHandler'
ext/xml/xml.o(.text+0x1d5a): In function `zif_xml_set_unparsed_entity_decl_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1240: undefined reference to `php_XML_SetUnparsedEntityDeclHandler'
ext/xml/xml.o(.text+0x1de2): In function `zif_xml_set_notation_decl_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1258: undefined reference to `php_XML_SetNotationDeclHandler'
ext/xml/xml.o(.text+0x1e6a): In function `zif_xml_set_external_entity_ref_handler':
/usr/local/src/php-4.4.7/ext/xml/xml.c:1276: undefined reference to `php_XML_SetExternalEntityRefHandler'
[root@85 php-4.4.7]#


Anyone have any ideas?



Thanks!
Clint
 
Last edited:
#3
alright more errors,

[root@85 lsws]# fcgi-bin/lsphp -v
LSqPHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0LSbPHP Warning: mime_magic: type search/400 \\input text/x-tex invalid in Unknown on line 0LScPHP Warning: mime_magic: type search/400 \\section text/x-tex invalid in Unknown on line 0LSePHP Warning: mime_magic: type search/400 \\setlength text/x-tex invalid in Unknown on line 0LSiPHP Warning: mime_magic: type search/400 \\documentstyle text/x-tex invalid in Unknown on line 0LScPHP Warning: mime_magic: type search/400 \\chapter text/x-tex invalid in Unknown on line 0LSiPHP Warning: mime_magic: type search/400 \\documentclass text/x-tex invalid in Unknown on line 0PHP 4.4.7 (litespeed) (built: Jul 12 2007 03:31:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@85 lsws]#
 
#4
'./configure' '--prefix=/php5' '--with-litespeed' '--with-config-file-path=../php' '--exec-prefix=/usr/local' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=../php' '--with-config-file-scan-dir=../php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos' '--with-mysql=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/magic.mime'


Is the configure script I used and got no errors other than:

/usr/bin/ld: warning: libcom_err.so.2, needed by /lib/libssl.so.5, may conflict with libcom_err.so.3

but finished.
 
#5
same issues with these flags:

'./configure' '--prefix=/php4' '--with-litespeed' '--with-config-file-path=../php' '--cache-file=../config.cache' '--with-config-file-path=../php' '--with-config-file-scan-dir=../php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=../pear' '--with-kerberos' '--with-mysql=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/magic.mime'
 
#7
mistwang,

I got rid of those errors, but I am still getting:

[root@85 lsws]# fcgi-bin/lsphp -v
LSqPHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0LSbPHP Warning: mime_magic: type search/400 \\input text/x-tex invalid in Unknown on line 0LScPHP Warning: mime_magic: type search/400 \\section text/x-tex invalid in Unknown on line 0LSePHP Warning: mime_magic: type search/400 \\setlength text/x-tex invalid in Unknown on line 0LSiPHP Warning: mime_magic: type search/400 \\documentstyle text/x-tex invalid in Unknown on line 0LScPHP Warning: mime_magic: type search/400 \\chapter text/x-tex invalid in Unknown on line 0LSiPHP Warning: mime_magic: type search/400 \\documentclass text/x-tex invalid in Unknown on line 0PHP 4.4.7 (litespeed) (built: Jul 12 2007 14:18:38)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Any other suggestions would be great!
 
#8
[root@85 php-4.4.7]# /opt/lsws/fcgi-bin/php -v
PHP 4.4.7 (litespeed) (built: Jul 12 2007 14:41:19)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@85 php-4.4.7]#

Works fine, no errors at all any more, restarted lsws, copied the ini file to /opt/lsws/conf/php.ini

http://208.100.63.85:8088/

Loads just fine, phpinfo page wont load, and there are no errors in the lsws log file, any thoughts?
 

mistwang

LiteSpeed Staff
#9
Please turn on debug logging, and check your error.log and stderr.log.
Unless you changed the external app configuration, the executable should be named as /opt/lsws/fcgi-bin/lsphp, instead of "php", php.ini should be at /opt/lsws/php/php.ini.
 
Top