/bin/sh /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/crack/ -I/home/portage/mod_php-4.3. 11-r1/work/php-4.3.11/ext/crack/ -DPHP_ATOM_INC -I/home/portage/mod_php-4.3.11-r1/work/php-4.3.11/include -I/home/portage/mod_php-4.3.11-r1/work/php-4.3.1 1/main -I/home/portage/mod_php-4.3.11-r1/work/php-4.3.11 -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap -I/home/ portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/mbstring/mbregex -I/home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/mbstring/libmbfl -I/home/portage/mod_ php-4.3.11-r1/work/php-4.3.11/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/xml/expat -I/home/port age/mod_php-4.3.11-r1/work/php-4.3.11/TSRM -I/home/portage/mod_php-4.3.11-r1/work/php-4.3.11/Zend -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforc e-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURC E -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pthread -prefer-non-pic -c /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/ crack.c -o ext/crack/crack.lo distcc[2321] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work distcc[2321] (dcc_build_somewhere) Warning: failed to distribute, running locally instead distcc[2321] ERROR: compile /root/.ccache/crack.tmp.evron.2316.i on localhost failed distcc[2316] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work distcc[2316] (dcc_build_somewhere) Warning: failed to distribute, running locally instead /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c: In function `zif_crack_check': /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c:214: error: `STRINGSIZE' undeclared (first use in this function) /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c:214: error: (Each undeclared identifier is reported only once /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c:214: error: for each function it appears in.) distcc[2316] ERROR: compile /home/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c on localhost failed make: *** [ext/crack/crack.lo] Error 1 Reproducible: Always Steps to Reproduce: 1.emerge -uvD world Actual Results: mod_php don't compile Expected Results: mod_php should compile correctly Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 24 2005, 17:48:40)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/tomcat /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/sh are/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config / /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64" DISTDIR="/home/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pu b/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.143.71" LINGUAS="it" MAKEOPTS="-j1" PKGDIR="/home/portage-pkg" PORTAGE_TMPDIR="/home" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync1.it.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 avi bash-completion bitmap-fonts bluetooth caps crypt cscope cups dga directfb divx4linux dvd dvdr emboss encode faac fam fbc on flac fluidsynth fortran gd gif gimpprint gpm gtk gtk2 imagemagick imap imlib jack jack-tmpfs java jpeg junit ldap libg++ mad maildir mikmod mmx motif m p3 mpeg mpi ncurses nls nowin nptl nptlonly ogg oggvorbis opengl pam pcmcia pdflib perl php plotutils png pnp ppds pthreads python quicktime readline samb a scanner sdl sendfile snmp spell sse ssl svga svgalib tetex tiff truetype truetype-fonts trusted type1-fonts usb v4l2 vorbis xanim xml xml2 xv xvid zlib video_cards_radeon linguas_it" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
if add: #define STRINGSIZE 1024 in php-4.3.11/ext/crack/crack.c it compile correctly but i don't know if this value is correct.
nice... i am not the first one who noticed... :) i have the same problem... and almost the same system... very nice...
This still has to do with cracklib >=2.8.2 (or rather, it happened while I had 2.8.3 for this error, a different one occurred in 2.8.2 - which was already reported) - masking >=cracklib-2.8.2 allows for a clean compile of -r1 as well as -r2 (same issue as this with -r2)
tricks of steev works correctly, thanks
STRINGSIZE is defined in packer.h and included in crack.c in /ext/crack #if HAVE_CRACK #include <packer.h> guess it's not using it. I have same problem.
*** Bug 89050 has been marked as a duplicate of this bug. ***
STRINGSIZE is not defined in /usr/include/packer.h because IN_CRACKLIB is undefined. Adding this line to src_compile in the ebuild helped: CFLAGS="${CFLAGS} -DIN_CRACKLIB" But I guess this should be considered a workaround, not a solution.
Also see bug 85698.
just to keep track of it, bug 85698 also has been reopened due to the same issue...
I always wondered why this extension was enabled by default. It is considered experimental. Quote from the manual: "This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk." With the release of PHP5 cracklib is no longer bundled. cracklib moved to PECL. It was developed with cracklib 2.7. To quote again from the manual: "The crack extension requires cracklib (libcrack) 2.7, some kind of word dictionary, and the proper header files (crack.h and packer.h) to build." There are so many bug reports about the php/cracklib-2.8 issue. Just disable cracklib and this solved forever ;)
*** Bug 89236 has been marked as a duplicate of this bug. ***
So close the bug already. The fix for bug 85698 has fixed the problem. Or - why not mark this a duplicate of 85698?
*** This bug has been marked as a duplicate of 85698 ***