Emerging programs, e.g. mod_php, does not work since /usr/include/packer.h doesn't include stdint.h, which is necessary for uint32_t Reproducible: Always Steps to Reproduce: 1.USE="gd dba" emerge mod_php Actual Results: emerge exited with errors, look at "Additional Information" Expected Results: Compiled, finished and exit without errors errors from emerge mod_php: /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c: In function `zif_crack_closedict': /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c:176: error: `pwdict' undeclared (first use in this function) /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c:199: error: syntax error before ')' token /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c: In function `zif_crack_check': /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c:216: error: `pwdict' undeclared (first use in this function) /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c:239: error: syntax error before ')' token /var/tmp/portage/mod_php-4.3.10-r1/work/php-4.3.10/ext/crack/crack.c: At top level: /usr/include/packer.h:47: error: storage size of `header' isn't known make: *** [ext/crack/crack.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-4.3.10-r1 failed. !!! Function php-sapi_src_compile, Line 544, Exitcode 2 !!! compile problem $emerge info Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 Genuine Intel(R) CPU 3.06GHz Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 11 2005, 01:42:46)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.9.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.gentoo.no/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd emboss encode esd fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 jack jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Bug in new cracklib, base-system?
the new cracklib itself notes this requirement in the packer.h (open it up in a header and read the notice about SuSv2 requirements) i'll consult upstream
e-mailed a patch upstream, we'll see how it goes
*** Bug 85557 has been marked as a duplicate of this bug. ***
cracklib-2.8.3 should fix this
cracklib-2.8.3 didn't solve the problem for me. My special problem is http://bugs.gentoo.org/show_bug.cgi?id=85557 only with mod_php-3.3.11-r1
Sorry for the spamming! has to be mod_php-4.3.11-r1 --- cracklib-2.8.3 didn't solve the problem for me. My special problem is http://bugs.gentoo.org/show_bug.cgi?id=85557 only with mod_php-4.3.11-r1
ok
I can confirm, that cracklib-2.8.3 works fine with mod_php-5.0.3-r2, but fails with mod_php-4.3.11-r4. The error I get are about: /bin/sh /var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/ctype/ -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/ctype/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/include -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/main -I/var/tmp/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/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/mbstring/mbregex -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/mbstring/libmbfl -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell -I/usr/qt/3/include -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/TSRM -I/var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/Zend -O2 -march=athlon-xp -fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pthread -prefer-non-pic -c /var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/ctype/ctype.c -o ext/ctype/ctype.lo /var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c: In function `zif_crack_check': /var/tmp/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) /var/tmp/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 /var/tmp/portage/mod_php-4.3.11-r1/work/php-4.3.11/ext/crack/crack.c:214: error: for each function it appears in.) make: *** [ext/crack/crack.lo] Error 1 make: *** Waiting for unfinished jobs....
just for the record: I ran into this bug too while emerging mod_php-4.3.11-r2 and having cracklib-2.8.2 installed.
/var/tmp/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) this STRINGSIZE is declared in /usr/include/packer.h. looks like packer.h got b0rked. A temporary fix for those who wanna emerge mod_php/php. add "-DIN_CRACKLIB" to your C[XX]FLAGS. this works just fine (obviousely) as packer.h does include major parts of itself only when this define has been set. Though, you lie, and pretent to be cracklib, but that's maybe even an upstream bug ;) just my 2 cents ;-)
What about adding : has_version '>=sys-libs/cracklib-2.8.3' && append-flags "-DIN_CRACKLIB" in php-sapi.eclass php-sapi_src_compile() function ?
how about just making mod_php-4.3.11-r1 depend on cracklib<=2.8.1 ?
no offense but that's a dumb idea i'll chat with upstream again about getting the define's moved outside of IN_CRACKLIB
ok, got this tweaked upstream and added 2.8.3-r1 to portage which fixed things for me
*** Bug 88907 has been marked as a duplicate of this bug. ***