ID: 28162
Comment by: plumber at gnu-darwin dot org
Reported By: info at rhalff dot com
Status: Open
Bug Type: Compile Failure
Operating System: linux
PHP Version: 5CVS-2004-04-26 (dev)
New Comment:
platform : php 5.0.1 darwin-ppc-6.8 httpd 1.3 (apple-
natif)
--built-in modules works well
--built-shared modules works well with-myext=shared,/
usr for php-cli
--but it doesn't work for apache
load_module<=>php_anybundle.bundle
httpd output :
dyld: /usr/sbin/httpd Undefined symbols:
_OnUpdateLong
_OnUpdateString
_OnUpdateStringUnempty
__array_init
__convert_to_string
__ecalloc
__efree
__emalloc
__erealloc
__estrdup
__estrndup
__object_and_properties_init
__object_init
__object_init_ex
__php_stream_alloc
__php_stream_cast
__php_stream_free
__php_stream_open_wrapper_ex
__php_stream_read
__safe_emalloc
__zend_hash_add_or_update
__zend_hash_index_update_or_next_insert
__zend_hash_init
__zend_list_addref
__zend_list_delete
__zend_list_find
__zval_copy_ctor
__zval_dtor
__zval_ptr_dtor
_add_assoc_long_ex
_add_assoc_null_ex
_add_assoc_string_ex
_add_assoc_stringl_ex
_add_assoc_zval_ex
_add_index_long
_add_index_null
_add_index_string
_add_index_zval
_add_next_index_bool
_add_next_index_string
_add_next_index_stringl
_add_next_index_zval
_add_property_long_ex
_add_property_string_ex
_ap_php_snprintf
_call_user_function_ex
_convert_to_boolean
_convert_to_long
_core_globals
_display_ini_entries
_display_link_numbers
_empty_string
crash :
Command: httpd
PID: 18385
Exception: EXC_BREAKPOINT (0x0006)
Code[0]: 0x00000001Code[1]: 0x8fe01220
Thread 0 Crashed:
#0 0x8fe01220 in halt
#1 0x8fe0459c in unload_bundle_image
#2 0x8fe12308 in _dyld_unlink_module
#3 0x900b1c44 in NSUnLinkModule
#4 0x000234a4 in ap_os_dso_unload
#5 0x00002b10 in unload_module
#6 0x000122cc in run_cleanups
#7 0x00010d8c in ap_clear_pool
#8 0x000070c4 in standalone_main
#9 0x00007a7c in main
#10 0x00002820 in _start
#11 0x000026a0 in start
PPC Thread State:
srr0: 0x8fe01220 srr1: 0x0002f030
vrsave: 0x00000000
xer: 0x00000000 lr: 0x8fe09bd8 ctr: 0x8fe293ac
mq: 0x00000000
r0: 0x00000004 r1: 0xbffff810 r2: 0x8fe4b400
r3: 0x000003f6
r4: 0x00000000 r5: 0x000003f6 r6: 0xbffff82c
r7: 0x00000002
r8: 0x6f6e005f r9: 0x00000000 r10: 0x00000000
r11: 0x000b2e20
r12: 0x8fe71e0e r13: 0x00000000 r14: 0x00000000
r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000
r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0x00057048
r23: 0x00000000
r24: 0x00000000 r25: 0x00057048 r26: 0x00000000
r27: 0x00000000
r28: 0x8fe4841c r29: 0x8fe484ec r30: 0x8fe484ec
r31: 0x8fe0995c
php runs well with apache if i remove (in the php.ini)
the dynamic load module.
Regards
Previous Comments:
------------------------------------------------------------------------
[2004-05-29 04:36:12] ralph at maxsoft dot com
I also saw this bug when compiling the php4 FreeBSD port for version
4.3.6. Following the suggestion in the bug report, I removed
--with-freetype-dir=whatever
from the top level Makefile, and then everything compiled without
error, with make test reporting only 6 (presumably unrelated) errors,
as follows:
=====================================================================
TIME END 2004-05-28 22:25:18
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 75
Exts tested : 13
---------------------------------------------------------------------
Number of tests : 592
Tests skipped : 256 (43.2%)
Tests warned : 0 ( 0.0%)
Tests failed : 6 ( 1.0%)
Tests passed : 330 (55.7%)
---------------------------------------------------------------------
Time taken : 274 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #24773 (unset() of integers treated as arrays causes a crash)
[tests/lang/bug24773.phpt]
Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
[tests/lang/bug24783.phpt]
Bug #25547 (error_handler and array index with function call)
[tests/lang/bug25547.phpt]
Bug #27731 (error_reporing() call inside @ block does not work
correctly) [tests/lang/bug27731.phpt]
Bug #26862 (ob_flush() before output_reset_rewrite_vars() results in
data loss) [ext/session/tests/bug26862.phpt]
Bug #27780 (strtotime(+1 xxx) returns a wrong date/time)
[ext/standard/tests/time/bug27780.phpt]
=====================================================================
Until today, I have been running the FreeBSD port for version 4.3.5,
which compiled without any problems.
------------------------------------------------------------------------
[2004-04-30 23:45:57] info at rhalff dot com
I compiled it again without the --with-freetype-dir=/usr configure
option. And the compile is succesfull.
Since freetype is bundeled with php5 maybe the configure option should
be removed/ignored, so it will not look for an external freetype
library
------------------------------------------------------------------------
[2004-04-26 18:06:01] info at rhalff dot com
Description:
------------
php5 fails to compile, occures both in current snap as in RC2. I had no
problem compiling previous versions of php5.
Reproduce code:
---------------
Compile options:
--prefix=/usr \
--enable-discard-path \
--with-config-file-path=/etc/apache2/php5 \
--enable-safe-mode \
--enable-bcmath \
--with-bz2 \
--with-pic \
--enable-calendar \
--enable-ctype \
--with-gdbm \
--with-imap=/usr/local/imap-2002e\
--enable-dbase=shared \
--enable-dba=shared \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-gmp=shared \
--with-mysql=shared,/usr \
--with-xml=/usr/local \
--enable-trans-sid \
--enable-shmop \
--enable-sockets \
--with-regex=php \
--enable-sysvsem \
--enable-sysvshm \
--enable-yp \
--enable-memory-limit \
--with-tsrm-pthreads \
--enable-shared \
--enable-debug \
--with-zlib=/usr \
--with-pspell=shared,/usr \
--with-gettext=shared,/usr \
--enable-inline-optimization \
--disable-static \
--with-mime-magic \
--with-mhash=/usr/local \
--enable-xslt \
--with-xslt-sablot \
--with-dom \
--with-xml-rpc \
--enable-wddx \
--enable-cli \
--with-readline \
--without-pear
Expected result:
----------------
succesfull build
Actual result:
--------------
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c -fPIC -DPIC -o
ext/gd/libgd/gdft.lo
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c: In function
`fontFetch':
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c:439:
`FT_ENCODING_MS_SYMBOL' undeclared (first use in this function)
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c:439: (Each
undeclared identifier is reported only once
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c:439: for each
function it appears in.)
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c:440:
`FT_ENCODING_ADOBE_CUSTOM' undeclared (first use in this function)
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c:440:
`FT_ENCODING_ADOBE_STANDARD' undeclared (first use in this function)
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c: In function
`gdImageStringFTEx':
/php5_source/php5-200404261430/ext/gd/libgd/gdft.c:904:
`FT_ENCODING_MS_SYMBOL' undeclared (first use in this function)
make[1]: *** [ext/gd/libgd/gdft.lo] Error 1
make[1]: Leaving directory `/php5_source/php5-200404261430'
make: *** [build] Error 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28162&edit=1