phpbar.de logo

Mailinglisten-Archive

[php-gtk] debian (woody), php-gtk und ein problem

[php-gtk] debian (woody), php-gtk und ein problem

Christian Weichel mail at csweichel.de
Fre Mar 22 08:00:16 CET 2002


der gdb backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x400ea1ae in vfprintf () from /lib/libc.so.6
(gdb) bt full
#0  0x400ea1ae in vfprintf () from /lib/libc.so.6
No symbol table info available.
#1  0x40105a5a in vsnprintf () from /lib/libc.so.6
No symbol table info available.
#2  0x0805e372 in php_error_cb (type=2, error_filename=0x8169444 "hello.php",
    error_lineno=7,
    format=0x8101bc0 "%s: Unable to initialize module\nModule compiled with
debug=%d, thread-safety=%d module API=%d\nPHP compiled with debug=%d,
thread-safety=%d module API=%d\nThese options need to match\n",
args=0xbfffe1cc)
    at main.c:326
	type = 2
	buffer =
"\000\026\b\034q\035@\000\000\000\000\002\b\000\000?\n@\000Z\001@\000\000\000
\000N\035@?\224s\000 at LF\001@
 \026\b\000\000\000\000\b\000\000\000t\\\001@\006\000\000\000?\220F\035@\000\
000\000\000\225d?013\225d?013\e\036@?\030\000 at d\026\bh\026\b\001\000\000\000\
000\000\000\000<\223\026\bMa\031 at hp\e@ \026\bP?@
\026\bK\001@\234?\f??\031 at D?@&@\000\000\000\000\000\000\000\000P?@?\000@\003\
000\000\000F?020 at hp\e@ H\e@ H\e@\022\025\037@"...
	buffer_len = 135695868
#3  0x080c92e4 in zend_error (type=2,
    format=0x8101bc0 "%s: Unable to initialize module\nModule compiled with
debug=%d, thread-safety=%d module API=%d\nPHP compiled with debug=%d,
thread-safety=%d module API=%d\nThese options need to match\n") at zend.c:635
	type = 2
	args = 0xbfffe1cc
	params = (zval ***) 0x816a914
	retval = (zval *) 0x37
	z_error_type = (zval *) 0x4000a3d0
	z_error_message = (zval *) 0xbfffe21c
	z_error_filename = (zval *) 0x4002189c
	z_error_lineno = (zval *) 0x805290c
	z_context = (zval *) 0x160
	error_filename = 0x8169444 "hello.php"
	error_lineno = 7
	orig_user_error_handler = (zval *) 0xbfffe1bc
#4  0x08087fbf in php_dl (file=0x816ae64, type=2, return_value=0x816ae84)
    at dl.c:165
	handle = (void *) 0x816af20
	libpath = 0x816a914
"/usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_gtk.so"
	module_entry = (zend_module_entry *) 0x4026d920
	tmp = (zend_module_entry *) 0x8087d00
	get_module = (zend_module_entry *(*)()) 0x400ea000 <vfprintf+6264>
	error_type = 2
	extension_dir = 0x80f7a20
"/usr/local/lib/php/extensions/no-debug-non-zts-20001222"
#5  0x08087e12 in php_if_dl (ht=1, return_value=0x816ae84, this_ptr=0x0,
    return_value_used=0) at dl.c:79
	file = (pval **) 0x8161cbc
#6  0x080f1a2f in execute (op_array=0x816536c) at ./zend_execute.c:1504
	original_return_value = (zval **) 0x816bce8
	return_value_used = 0
	opline = (zend_op *) 0x816bcd0
	end = (zend_op *) 0x816ccc0
	function_state = {function_symbol_table = 0x80d084c,
  function = 0x8155810, reserved = {0x10001, 0x0, 0xbfffe8fc, 0x80c9629}}
	fbc = (zend_function *) 0x0
	object = {ptr = 0x0}
	Ts = (temp_variable (*)[0]) 0xbfffe264
	original_in_execution = 0 '\000'
#7  0x080c965b in zend_execute_scripts (type=8, file_count=3) at zend.c:752
	files = 0xbfffe914
	i = 1
	file_handle = (zend_file_handle *) 0xbffff9e8
	orig_op_array = (zend_op_array *) 0x0
#8  0x0805f764 in php_execute_script (primary_file=0xbffff9e8) at main.c:1206
	prepend_file_p = (zend_file_handle *) 0xbfffd82c
	append_file_p = (zend_file_handle *) 0x400ea000
	prepend_file = {type = 208 '?,
  filename = 0x1000 <Address 0x1000 out of bounds>,
  opened_path = 0x40016000 <Address 0x40016000 out of bounds>, handle = {
    fd = 1074812480, fp = 0x40105640}, free_filename = 216 '?}
	append_file = {type = 208 '?,
  filename = 0x2 <Address 0x2 out of bounds>,
  opened_path = 0x815f290 "hello.php", handle = {fd = 1074413136,
    fp = 0x400a3e50}, free_filename = 252 ''}
	old_cwd = 0xbfffe924 ""
#9  0x0805dd7c in main (argc=3, argv=0xbffffa64) at cgi_main.c:718
	exit_status = 0
	cgi = 0
	c = 1074700288
	i = -1073743408
	len = 2
	file_handle = {type = 2 '\002', filename = 0x81651dc "hello.php",
  opened_path = 0x0, handle = {fd = 135680496, fp = 0x81651f0},
  free_filename = 0 '\000'}
	s = 0x815f290 "hello.php"
	behavior = 1
	no_headers = 1
	orig_optind = 1
	orig_optarg = 0x0
	argv0 = 0x0
	script_file = 0x0
	global_vars = {head = 0x0, tail = 0x0, size = 4, dtor = 0,
  persistent = 0 '\000', traverse_ptr = 0x812e4c0}
	interactive = 0
#10 0x400b76cf in __libc_start_main () from /lib/libc.so.6
No symbol table info available



der compile-vorgang:

/usr/local/bin/php -q
/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/generator/generator.php -o
ext/gtk%2b/gdk.overrides -p Gdk ext/gtk%2b/gdk.defs > gen_gdk.c
Loading cache "ext/gtk+/gdk.defs.cache"
Could not write function draw_polygon (parameter type GdkPoint*)
Could not write function draw_text_wc (parameter type const-GdkWChar*)
Could not write function draw_image (parameter type GdkImage*)
Could not write function draw_points (parameter type GdkPoint*)
Could not write function draw_segments (parameter type GdkSegment*)
Could not write function draw_lines (parameter type GdkPoint*)
grep -h "^PHP_GTK_EXPORT_CE" gen_gtk.c gen_gdk.c | sed -e "s!^!extern !" >
gen_gtk.h
grep -h "PHP_GTK_EXPORT_FUNC" gen_gtk.c gen_gdk.c | sed -e 's!$!;!' >>
gen_gtk.h/bin/sh /home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/libtool
--mode=compile gcc  -I.
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext/gtk+
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/main
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -I/usr/local/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gtk-1.2
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/main  -DHAVE_CONFIG_H -g -O2
-c php_gtk+.c
gcc -I. -I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext/gtk+
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/main
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -I/usr/local/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gtk-1.2
-I/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/main -DHAVE_CONFIG_H -g -O2
-c php_gtk+.c  -fPIC -DPIC -o php_gtk+.lo
In file included from php_gtk+.c:23:
/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/main/php_gtk.h:80: parse error
before `TSRMLS_DC'
In file included from
/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/main/php_gtk.h:90,
                 from php_gtk+.c:23:
/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext/gtk+/php_gtk+.h:118: parse
error before `TSRMLS_DC'
/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext/gtk+/php_gtk+.h:119: parse
error before `TSRMLS_DC'
php_gtk+.c:33: parse error before `TSRMLS_DC'
php_gtk+.c:143: parse error before `TSRMLS_DC'
php_gtk+.c: In function `release_gtk_object_rsrc':
php_gtk+.c:145: `rsrc' undeclared (first use in this function)
php_gtk+.c:145: (Each undeclared identifier is reported only once
php_gtk+.c:145: for each function it appears in.)
php_gtk+.c: At top level:
php_gtk+.c:149: parse error before `TSRMLS_DC'
php_gtk+.c: In function `php_gtk_xinit_gtk_plus':
php_gtk+.c:151: `module_number' undeclared (first use in this function)
php_gtk+.c:154: parse error before `TSRMLS_CC'
php_gtk+.c:155: parse error before `TSRMLS_CC'
php_gtk+.c:156: parse error before `TSRMLS_CC'
make[3]: *** [php_gtk+.lo] Error 1
make[3]: Leaving directory
`/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext/gtk+'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext/gtk+'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
 `/home/csweichel/tmp/Tools/Devel/php-gtk-0.5.0/ext' make: ***
 [all-recursive] Error 1


die php-gtk version die ich verwende sind die sourcen von gtk.php.net version
0.5.0

greetz
Christian Weichel

-------------------------------------------------------


php::bar PHP Wiki   -   Listenarchive