NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help with dbg-2.11.32


Joined: 05 Aug 2005
Posts: 2
Reply with quote
Hi, could you take a look and help me find what I am doing wrong? If I didn't include something you needed to see please tell me and I'll post a followup.

Much Thanks!

Fedora Core 4
php-5.0.4-10.3
php-pear-5.0.4-10.3
php-devel-5.0.4-10.3
php-mysql-5.0.4-10.3
php-mbstring-5.0.4-10.3

autoconf-2.59-5_11.rhfc4.at
automake-1.9.5-1_24.rhfc4.at
libtool-1.5.18-2.99_12.rhfc4.at

gcc-4.0.1-4.fc4

I unpacked dbg-2.11.32-src.tar.gz

I modified deferphpize to point to /usr/bin/ for my phpize script location...

[root@fedora dbg-2.11.32]# ./deferphpize 0
Configuring for:
PHP Api Version: 20031224
Zend Module Api No: 20041030
Zend Extension Api No: 220040412
/usr/share/aclocal/speex.m4:10: warning: underquoted definition of XIPH_PATH_SPEEX
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/g-wrap.m4:7: warning: underquoted definition of AC_GWRAP_CHECK_GUILE
/usr/share/aclocal/g-wrap.m4:23: warning: underquoted definition of AM_PATH_GWRAP
/usr/share/aclocal/speex.m4:10: warning: underquoted definition of XIPH_PATH_SPEEX
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/g-wrap.m4:7: warning: underquoted definition of AC_GWRAP_CHECK_GUILE
/usr/share/aclocal/g-wrap.m4:23: warning: underquoted definition of AM_PATH_GWRAP
not optimized
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
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 for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
checking for PHP extension directory... /usr/lib/php/modules
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable dbg (PHP script debugger) extension... yes, shared
DBG (extension-shared==yes).
yes
no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
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 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 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++ 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
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
/bin/sh /root/build/dbg-2.11.32/libtool --mode=compile gcc -I. -I/root/build/dbg-2.11.32 -DPHP_ATOM_INC -I/root/build/dbg-2.11.32/include -I/root/build/dbg-2.11.32/main -I/root/build/dbg-2.11.32 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -DHAVE_CONFIG_H -O0 -DHAVE_CONFIG_H -O0 -c /root/build/dbg-2.11.32/dbg_cmd.c -o dbg_cmd.lo
gcc -I. -I/root/build/dbg-2.11.32 -DPHP_ATOM_INC -I/root/build/dbg-2.11.32/include -I/root/build/dbg-2.11.32/main -I/root/build/dbg-2.11.32 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -DHAVE_CONFIG_H -O0 -DHAVE_CONFIG_H -O0 -c /root/build/dbg-2.11.32/dbg_cmd.c -fPIC -DPIC -o .libs/dbg_cmd.o
/root/build/dbg-2.11.32/dbg_cmd.c: In function 'dbg_get_context_sym_table':
/root/build/dbg-2.11.32/dbg_cmd.c:575: error: invalid lvalue in assignment
make: *** [dbg_cmd.lo] Error 1
[root@fedora dbg-2.11.32]#
View user's profileFind all posts by PonfyrSend private message


Joined: 05 Aug 2005
Posts: 2
Reply with quote
It seems Fedora Core 4 gcc 4.0.1 is a bit more strict than gcc 3.2.

[root@fedora4]#yum install compat-gcc-32
...
[root@fedora4]#yum install compat-gcc-32-c++
...

Now I edit the deferphpize script and change the configure line to tell it to use gcc32:

-./configure --enable-dbg=shared --with-dbg-profiler --with-php-config=`dirname $phpize`/php-config
+./configure CC=gcc32 --enable-dbg=shared --with-dbg-profiler --with-php-config=`dirname $phpize`/php-config

and the phpize line as well to tell it where to find the phpize script for Fedora Core 4 default location:

-phpize=${phpize:-"/usr/local/bin/phpize"}
+phpize=${phpize:-"/usr/bin/phpize"}

[root@fedora4]#./deferphpize 0
...

Now the compile finishes just fine, and I have dbg.so php module. I just follow the sticky post in this forum to install.

Default PHP extension directory was /usr/lib/php/modules/ from /etc/php.ini.

I created /etc/php.d/dbg.ini so I didn't have to modify my php.ini file directly.
Code:
; Enable dbg extension module
extension=dbg.so

[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=host1 host2 host3
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16


php_info() now reports after a server restart:
Quote:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
with DBG v2.11.32, (C) 2000,2005, by Dmitri Dmitrienko


I hope this helps somebody else with Fedora Core 4


Much thanks for a great PHP debugger!!!!
View user's profileFind all posts by PonfyrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Thank you for tracking down the problem.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Help with dbg-2.11.32
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic