Summary: | dev-php/mod_php-4.3.11-r1 don't compile `STRINGSIZE' undeclared | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniele Antonini <arpeda> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | christian.brunsch, dan.dickey, f5d8fd51ed1e804c9e8d0357e8614e0493b06e96, gentoo, griffon26, howard_b_golden, Martin.vGagern, n.e.l.s.o.n.t.y, niv |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Daniele Antonini
2005-04-12 15:55:25 UTC
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. 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 *** |