Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28246 - phpdbg errors during build, but still packages and installs
Summary: phpdbg errors during build, but still packages and installs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 02:28 UTC by Bryan Hundven
Modified: 2004-01-04 20:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for phpdbg (php_dbg.diff,286 bytes, patch)
2003-09-10 09:32 UTC, Bryan Hundven
Details | Diff
fix for phpdbg (php_dbg.diff,286 bytes, patch)
2003-09-10 09:32 UTC, Bryan Hundven
Details | Diff
diff to fix phpdbg-2.10-r1.ebuild "emake || die" (phpdbg-2.10-r1.ebuild.diff,339 bytes, patch)
2003-09-10 09:46 UTC, Bryan Hundven
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Hundven 2003-09-09 02:28:30 UTC
phpdbg configures, gets to dbg_cmd.c spits out gcc errors (`SOCK_ERR'
undeclared), then continues on to package (FEATURE="buildpkg") and install.

Reproducible: Always
Steps to Reproduce:
1. emerge phpdbg
Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/phpdbg-2.10-r1 to /
>>> md5 src_uri ;-) dbg-2.10pl3.tar.gz
>>> Unpacking source...
>>> Unpacking dbg-2.10pl3.tar.gz to /var/tmp/portage/phpdbg-2.10-r1/work
>>> Source unpacked.
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -march=pentium2 -O3 -pipe ) works... yes
checking whether the C compiler (gcc -march=pentium2 -O3 -pipe ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
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/Zend -I/usr/include/php/TSRM
checking for PHP extension directory...
/usr/lib/php/extensions/no-debug-non-zts-20020429
checking how to run the C preprocessor... gcc -E
checking for mawk... no
checking for gawk... gawk
checking whether to enable dbg (PHP script debugger) extension... yes, shared
DBG (extension-shared==yes).
yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
updating cache ./config.cache
creating ./config.status
creating config.h
/bin/sh /var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/libtool --mode=compile
gcc  -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM 
-DHAVE_CONFIG_H  -march=pentium2 -O3 -pipe  -prefer-pic -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg.c -o dbg.lo
/bin/sh /var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/libtool --mode=compile
gcc  -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM 
-DHAVE_CONFIG_H  -march=pentium2 -O3 -pipe  -prefer-pic -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c -o dbg_cmd.lo
/bin/sh /var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/libtool --mode=compile
gcc  -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM 
-DHAVE_CONFIG_H  -march=pentium2 -O3 -pipe  -prefer-pic -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_ser.c -o dbg_ser.lo
gcc -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
-DHAVE_CONFIG_H -march=pentium2 -O3 -pipe -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_ser.c  -fPIC -DPIC -o
dbg_ser.lo
gcc -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
-DHAVE_CONFIG_H -march=pentium2 -O3 -pipe -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg.c  -fPIC -DPIC -o dbg.lo
gcc -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
-DHAVE_CONFIG_H -march=pentium2 -O3 -pipe -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c  -fPIC -DPIC -o
dbg_cmd.lo
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c: In function
`create_debugger_socket':
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c:119: error:
`SOCK_ERR' undeclared (first use in this function)
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c:119: error: (Each
undeclared identifier is reported only once
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c:119: error: for each
function it appears in.)
/bin/sh /var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/libtool --mode=compile
gcc  -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM 
-DHAVE_CONFIG_H  -march=pentium2 -O3 -pipe  -prefer-pic -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_prof.c -o dbg_prof.lo
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c: In function
`handler_add_source_reply':
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_cmd.c:241: warning:
assignment makes pointer from integer without a cast
make: *** [dbg_cmd.lo] Error 1
make: *** Waiting for unfinished jobs....
gcc -I. -I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -DPHP_ATOM_INC
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/include
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/main
-I/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
-DHAVE_CONFIG_H -march=pentium2 -O3 -pipe -c
/var/tmp/portage/phpdbg-2.10-r1/work/dbg-2.10pl3/dbg_prof.c  -fPIC -DPIC -o
dbg_prof.lo
nostrip
 
>>> Install phpdbg-2.10-r1 into /var/tmp/portage/phpdbg-2.10-r1/image/ category
dev-php
install: cannot stat `modules/dbg.so': No such file or directory
man:
>>> Completed installing into /var/tmp/portage/phpdbg-2.10-r1/image/
 
./
./etc/
./etc/php4/
./etc/php4/lib/
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/phpdbg-2.10-r1/
./usr/share/doc/phpdbg-2.10-r1/AUTHORS.gz
./usr/share/doc/phpdbg-2.10-r1/COPYING.gz
./usr/share/doc/phpdbg-2.10-r1/INSTALL.gz
>>> Done.
>>> extracting info
>>> extracting phpdbg-2.10-r1
>>> Merging dev-php/phpdbg-2.10-r1 to /
--- /etc/
--- /etc/php4/
--- /etc/php4/lib/
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/phpdbg-2.10-r1/
>>> /usr/share/doc/phpdbg-2.10-r1/AUTHORS.gz
>>> /usr/share/doc/phpdbg-2.10-r1/COPYING.gz
>>> /usr/share/doc/phpdbg-2.10-r1/INSTALL.gz
 
Performing post-installation routines for phpdbg-2.10.
 * Please reload Apache to activate the changes
>>> Regenerating /etc/ld.so.cache...
>>> dev-php/phpdbg-2.10-r1 merged.
>>> Recording dev-php/phpdbg in "world" favorites file...
 
>>> clean: No packages selected for removal.
 
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...
 
>>> No outdated packages were found on your system.
 
 
 * GNU info directory index is up-to-date.
Comment 1 Bryan Hundven 2003-09-09 02:54:02 UTC
add:

--------8<-------------
#include <php_network.h>
--------->8------------

to php_dbg.h and all is good :)
Comment 2 Bryan Hundven 2003-09-10 09:32:31 UTC
Created attachment 17444 [details, diff]
fix for phpdbg
Comment 3 Bryan Hundven 2003-09-10 09:32:49 UTC
Created attachment 17445 [details, diff]
fix for phpdbg
Comment 4 Bryan Hundven 2003-09-10 09:46:44 UTC
Created attachment 17447 [details, diff]
diff to fix phpdbg-2.10-r1.ebuild "emake || die"

in the build docs for dbg, aclocal should be ran after phpize. I put it in
there, but I commented it out. Someone should look into this.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 20:34:46 UTC
*bump*
phpdbg-2.11 is stable for a long time now, as these fixes here don't solve the problem entirely, it isn't worth fixing them and i've removed the old ebuilds instead.