Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85698 - /usr/include/packer.h doesn't include stdint.h
Summary: /usr/include/packer.h doesn't include stdint.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 85557 88907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-17 16:14 UTC by Thomas Presthus
Modified: 2005-05-05 21:52 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Presthus 2005-03-17 16:14:34 UTC
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
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-03-18 00:09:33 UTC
Bug in new cracklib, base-system?
Comment 2 SpanKY gentoo-dev 2005-03-18 06:10:09 UTC
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
Comment 3 SpanKY gentoo-dev 2005-03-18 15:15:26 UTC
e-mailed a patch upstream, we'll see how it goes
Comment 4 SpanKY gentoo-dev 2005-04-11 17:59:07 UTC
*** Bug 85557 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2005-04-11 20:06:59 UTC
cracklib-2.8.3 should fix this
Comment 6 amette 2005-04-12 09:29:39 UTC
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
Comment 7 amette 2005-04-12 09:31:34 UTC
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
Comment 8 SpanKY gentoo-dev 2005-04-12 10:54:10 UTC
ok
Comment 9 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2005-04-12 11:31:37 UTC
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....
Comment 10 Christian Parpart (RETIRED) gentoo-dev 2005-04-12 21:22:35 UTC
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.
Comment 11 Christian Parpart (RETIRED) gentoo-dev 2005-04-12 21:41:11 UTC
/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 ;-)
Comment 12 Olivier Castan 2005-04-15 07:20:38 UTC
What about adding :
has_version '>=sys-libs/cracklib-2.8.3'  && append-flags "-DIN_CRACKLIB"
in php-sapi.eclass php-sapi_src_compile() function ?
Comment 13 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2005-04-15 10:08:50 UTC
how about just making mod_php-4.3.11-r1 depend on cracklib<=2.8.1 ?
Comment 14 SpanKY gentoo-dev 2005-04-15 15:24:21 UTC
no offense but that's a dumb idea

i'll chat with upstream again about getting the define's moved outside of IN_CRACKLIB
Comment 15 SpanKY gentoo-dev 2005-04-15 22:41:37 UTC
ok, got this tweaked upstream and added 2.8.3-r1 to portage which fixed things for me
Comment 16 Sebastian Bergmann (RETIRED) gentoo-dev 2005-05-05 21:52:06 UTC
*** Bug 88907 has been marked as a duplicate of this bug. ***