NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
dbg_client fails to make on macosx-10.4.2 tiger PHP-5.0.4


Joined: 18 Oct 2005
Posts: 8
Reply with quote
I'm getting this error on make for the dbg_client-2.11.32 on macosx-10.4.2 tiger.
Any ideas ?
BTW is dbg-2.11.32 compatible with macosx-10.4.2 PHP-5.0.4 apache-2.0.54 ?
Thanks for your help.

root(su)[/usr/jj/_build/dbg_client-2.11.32]# ./configure --prefix=/usr/jj/dbg_client
loading cache ./config.cache
checking host system type... powerpc-apple-darwin8.2.0
checking target system type... powerpc-apple-darwin8.2.0
checking build system type... powerpc-apple-darwin8.2.0
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) c++ -E
checking how to run the C preprocessor... (cached) gcc -E
checking for readline/readline.h... (cached) yes
checking for iostream... (cached) yes
checking for ostream... (cached) yes
checking for ctype.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for netdb.h... (cached) yes
checking for unistd.h... (cached) yes
checking for iconv.h... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking for memmove... (cached) yes
checking for memcpy... (cached) yes
checking for bcopy... (cached) yes
checking for strerror... (cached) yes
checking for strstr... (cached) yes
checking for gethostbyname... (cached) yes
checking for iconv_open... (cached) no
no
checking for tgetent in -lncurses... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -p
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) file_magic Mach-O dynamically linked shared library
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -p output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -fno-common
checking if gcc PIC flag -fno-common works... (cached) yes
checking if gcc static flag works... (cached) no
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin8.2.0 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
creating ./config.status
creating Makefile
creating dbg/Makefile
creating dbgbase/Makefile
creating pcre/Makefile
creating getopt/Makefile
creating config.h
config.h is unchanged
----------------------------------------------------------------
Source code location: .
Compiler CC, CXX: gcc, c++
Compiler flags: -g -O2, -g -O2
Linker: /usr/bin/ld
Host System Type: powerpc-apple-darwin8.2.0
Install path: /usr/jj/dbg_client
----------------------------------------------------------------
root(su)[/usr/jj/_build/dbg_client-2.11.32]# make
make all-recursive
Making all in pcre
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -g -O2 -c chartables.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -g -O2 -c pcre.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -g -O2 -c pcreposix.c
rm -f libpcre_1.a
ar cru libpcre_1.a chartables.o pcre.o pcreposix.o
ranlib libpcre_1.a
Making all in getopt
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c getopt.c
getopt.c: In function '_getopt_internal':
getopt.c:664: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:688: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:719: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:736: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:741: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:852: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:875: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:895: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:909: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:913: warning: incompatible implicit declaration of built-in function 'strlen'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c getopt1.c
rm -f libgetopt_1.a
ar cru libgetopt_1.a getopt.o getopt1.o
ranlib libgetopt_1.a
Making all in dbgbase
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -DDBG_USE_STDALLOCA -g -O2 -c dbg_net.c
dbg_net.c: In function 'dbg_packet_nextframe':
dbg_net.c:179: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c: In function 'dbg_packet_findfirstframe':
dbg_net.c:197: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c: In function 'dbg_packet_send':
dbg_net.c:240: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c:245: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c:259: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c: In function 'dbg_packet_recv_body':
dbg_net.c:316: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c:322: warning: target of assignment not really an lvalue; this will be a hard error in the future
dbg_net.c:338: warning: target of assignment not really an lvalue; this will be a hard error in the future
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -DDBG_USE_STDALLOCA -g -O2 -c DbgSess.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -DDBG_USE_STDALLOCA -g -O2 -c DbgSpawn.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -DDBG_USE_STDALLOCA -g -O2 -c ListenerBase.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -DDBG_USE_STDALLOCA -g -O2 -c dbgbase_globals.cpp
dbgbase_globals.cpp: In function `int dbh_check_new_client_connect(int, sockaddr*, int)':
dbgbase_globals.cpp:699: error: invalid conversion from 'int*' to 'socklen_t*'
dbgbase_globals.cpp:699: error: initializing argument 3 of 'int accept(int, sockaddr*, socklen_t*)'
make[2]: *** [dbgbase_globals.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
root(su)[/usr/jj/_build/dbg_client-2.11.32]#
View user's profileFind all posts by jjSend private message
phpinfo showing DBG (c) in header but not DBG variables


Joined: 18 Oct 2005
Posts: 8
Reply with quote
macosx-10.4.2 tiger php-5.0.4 apache-2.0.54 dbg-2.11.32

I run into the following problem,
DBG copyright appears in the phpinfo header as follow :

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

but DBG variables are not displayed by phpinfo.
Any ideas?
Thanks for your help
View user's profileFind all posts by jjSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
but DBG variables are not displayed by phpinfo.


Do you have any other Zend Extension module loaded with zend_extension=/some/path/somefile.so ?
In this case you'd remove extension=dbg.so and add zend_extension=/path/to/dbg/dbg.so
and this line should be the first among other zend_extension lines in the configuration file.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
phpinfo showing DBG (c) in header but not DBG variables


Joined: 18 Oct 2005
Posts: 8
Reply with quote
Dmitri
Thanks for your time.

I made dbg with the following commands:

cd dbg-2.11.32
/usr/jj/php/bin/phpize
./deferphpize
./configure --enable-dbg=shared --with-php-config=/usr/jj/php/bin/php-config --with-dbg-profiler
make
make install

I made PHP with the followinf configuration:
./configure
--prefix=/usr/jj/php
--with-config-file-path=/usr/jj/php/etc
--with-zlib
--with-zlib-dir=/usr/jj/zlib
--with-freetype-dir=/usr/jj/freetype
--with-apxs2=/usr/jj/apache2/bin/apxs
--with-curl=/usr/jj/curl
--with-gd=/usr/jj/gd
--with-jpeg-dir=/usr/jj/libjpeg
--with-png-dir=/usr/jj/libpng
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--enable-sqlite-utf8
--enable-bcmath
--enable-shared
--enable-static
--enable-mbstring
--enable-exif
--enable-zend-multibyte
--enable-wddx
--with-xmlrpc
--with-pear=/usr/jj/pear
--with-xsl=/usr/jj/libxslt
--with-gettext=/usr/jj/gettext
--with-libxml-dir=/usr/jj/libxml
--with-expat-dir=/usr/jj/expat
--with-iconv-dir=/usr/jj/libiconv
--with-mhash=/usr/jj/mhash
--with-mcrypt=/usr/jj/libmcrypt
--with-bz2=/usr/jj/bzip2
--with-readline=/usr/jj/readline
--with-t1lib=/usr/jj/t1lib
--with-openssl=/usr/jj/openssl
--with-db4=/usr/jj/db


php.ini dbg section:

[Debugger]
zend_extension="/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so"
;extension=dbg.so
debugger.enabled=On
debugger.profiler_enabled=On
debugger.JIT_enabled=On
debugger.JIT_host=clienthost
debugger.JIT_port=7869
debugger.hosts_allow=ALL
debugger.fail_silently=Off

I tryed different build sequences:
- with and without ./deferphpize,
- with different configure options.

I tryed different php.ini sequences:
- with no zend stuff and as extension=dbg.so (phpinfo: DBG doesn't show in credits and no DBG section),
- with no zend stuff and as zend_extension=/blabla/dbg.so (phpinfo: DBG shows in credits but no DBG section),
- with zend stuff (phpinfo: Zend Manager, Zend Optimizer and DBG do show in credits but no DBG section),

[Zend Extension Manager]
zend_extension="/usr/local/Zend/lib/ZendExtensionManager.so"

[Zend optimizer]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer="/usr/local/Zend/lib/Optimizer-2.5.11"
zend_optimizer.version=2.5.10a

I am running macosx-10.4.2 tiger with apache-2.0.54 and php 5.0.4

I have no clue on what is wrong.

Is DBG expecting some libs ?
I have a peculiar layout and the libs might not be where expected.

Do I need to add some LDFLAGS and CPPFLAGS to ./configure ?

If DBG shows in phpinfo credits does that mean that it has been loaded ?

Your help is much appreciated.

Sincerely,
View user's profileFind all posts by jjSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
Is DBG expecting some libs ?

it's platform-depended. In most cases no libs are required other than libc itself.

Quote:
Do I need to add some LDFLAGS and CPPFLAGS to ./configure ?

Nope.

Quote:
If DBG shows in phpinfo credits does that mean that it has been loaded ?

it must be shown in phpinfo credits and in its own section (DBG).
Otherwise it means that it's not been properly loaded.

BTW, whenever you change anything in php.ini you must restart httpd, otherwise no changes will be in effect.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2005
Posts: 8
Reply with quote
Yes i do restart apache after each php.ini change.
Any clue on what can be the causes of this behaviour ?
View user's profileFind all posts by jjSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
ok. Create clean php.ini with no options in other than below

extension_dir=/some/dir/where/php/extensions/are
extension=dbg.so
debugger.enabled=On

and let me know if it works


Last edited by dmitri on Thu Oct 20, 2005 9:10 am; edited 1 time in total
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2005
Posts: 8
Reply with quote
Go for it
View user's profileFind all posts by jjSend private message


Joined: 18 Oct 2005
Posts: 8
Reply with quote
GOOD, now it shows up in credits *AND* DBG section.
View user's profileFind all posts by jjSend private message


Joined: 18 Oct 2005
Posts: 8
Reply with quote
Next question is what if I add Zend Optimiser ?
View user's profileFind all posts by jjSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
you can try it but first
1) change
extension=dbg.so
to
zend_extension=/some/dir/where/php/extensions/are/dbg.so

2) make sure that this line is above any other zend_extension lines
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2005
Posts: 8
Reply with quote
Here are the results of some php.ini tests that were run separately.
BTW I installed Zend Studio 5.0 Beta some times ago.
Can this be an explanation ?

;;test 1 - WORKS! DBG in credits and DBG section
;extension_dir=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030
;extension=dbg.so
;debugger.enabled=On

;;test2 - FAILS! Shows in credits NOT in DBG section
;zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so
;debugger.enabled=On

;;test3 - FAILS! Shows in credits NOT in DBG section
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so
;debugger.enabled=On

;;test4 - FAILS! Shows in credits NOT in DBG section
;zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;debugger.enabled=On


;;test 4 - FAILS! Apache doesn't restart
;extension_dir=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030
;extension=dbg.so
;debugger.enabled=On
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.11
;zend_optimizer.version=2.5.10a

;;test 5 - FAILS! Shows in credits NOT in DBG section
zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so
debugger.enabled=On
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.11
zend_optimizer.version=2.5.10a
View user's profileFind all posts by jjSend private message
dbg_client fails to make on macosx-10.4.2 tiger PHP-5.0.4
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