Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269638 - app-text/a2ps fails to build with recent linux-headers due to outdated obstack import from gnulib
Summary: app-text/a2ps fails to build with recent linux-headers due to outdated obstac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 2 votes (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 297405 322825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-13 04:00 UTC by Benjamin
Modified: 2010-06-05 15:12 UTC (History)
23 users (show)

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


Attachments
Temporary patch (a2ps-4.14-ptrdiff_t.patch,367 bytes, patch)
2009-06-10 10:02 UTC, Nick Novikov
Details | Diff
ebuild modified to use the patch provided by Nick S. Novikov (a2ps-4.14.ebuild,3.03 KB, text/plain)
2009-06-14 07:11 UTC, Bob Raitz
Details
Preprocessed encoding.c (encoding.pp.c,283.21 KB, text/plain)
2009-10-07 20:12 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin 2009-05-13 04:00:33 UTC
Making all in etc
make[2]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/etc'
sed "s!@date@!`date`!g;s!@version@!4.14!g"	\
	./README.in > README
sed "s!@libpath@!/usr/share/a2ps/sheets:/usr/share/a2ps/ps:/usr/share/a2ps/encoding:/usr/share/a2ps/afm:/usr/share/ogonkify/afm:/usr/share/a2ps/ppd:/usr/share/a2ps/fonts:/usr/share/ogonkify/fonts:/usr/share/a2ps!" a2ps_cfg > a2ps.cfg
make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/etc'
Making all in ps
make[2]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ps'
Making all in ogonkify
make[2]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify'
Making all in doc
make[3]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify/doc'
Making all in m4
make[3]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify/m4'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify/m4'
make[3]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify'
sed -e "s#@LIBDIR@#/usr/share/ogonkify#g" ogonkify.in > ogonkify-t
chmod +x ogonkify-t
mv ogonkify-t ogonkify
make[3]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify'
make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/ogonkify'
Making all in lib
make[2]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
make  all-am
make[3]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I.    -O2 -march=i686 -pipe  -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c -o encoding.lo encoding.c
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -O2 -march=i686 -pipe -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o
In file included from xobstack.h:23,
                 from encoding.c:35:
./obstack.h:176: error: expected specifier-qualifier-list before ‘ptrdiff_t’
encoding.c: In function ‘load_encoding_description_file’:
encoding.c:620: error: ‘struct obstack’ has no member named ‘maybe_empty_object’
encoding.c:620: error: ‘struct obstack’ has no member named ‘alignment_mask’
encoding.c:620: error: ‘struct obstack’ has no member named ‘alignment_mask’
make[3]: *** [encoding.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14'
make: *** [all] Error 2
 [31;01m*[0m 
 [31;01m*[0m ERROR: app-text/a2ps-4.14 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   49:  Called src_compile
 [31;01m*[0m             environment, line 2761:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       make || die "make failed"
 [31;01m*[0m  The die message:
 [31;01m*[0m   make failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/log/portage/app-text:a2ps-4.14:20090513-025438.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-text/a2ps-4.14/temp/environment'.
 [31;01m*[0m 



Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-tuxonice-r1 i686)
=================================================================
System uname: Linux-2.6.29-tuxonice-r1-i686-Pentium_III_-Coppermine-with-gentoo-2.0.0
Timestamp of tree: Mon, 11 May 2009 20:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="2G"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="3"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ http://gentoo-euetib.upc.es/mirror/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
HG="/usr/bin/hg"
HOME="/home/benkong2"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/info:/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info"
INPUT_DEVICES="evdev keyboard mouse"
JAVAC="/bin/javac"
JDK_HOME=""
KERNEL="linux"
LANG="en_US.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LESS="-i -N -w  -z-4 -g -e -M -X -F -R -P%t?f%f :stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-..."
LESSCHARSET="latin1"
LESSOPEN="|/usr/bin/lesspipe.sh %s 2>&-"
LINGUAS="en"
LOGNAME="benkong2"
LS_COLORS="rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/benkong2"
MAKEOPTS="-j2"
MANPATH="/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/man:/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OLDPWD="/media/ath/Downloads"
OPENGL_PROFILE="xorg-x11"
PAGER="most"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.3.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.3:/usr/qt/3/bin:/usr/games/bin:/sbin:/usr/sbin:/usr/local/sbin:/home/benkong2/bin:/home/benkong2/scripts"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa amd64-fbsd sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log info"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="6"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/benkong2"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.3.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.3:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
TERM="linux"
USE="X acl acpi alsa bash-completion berkdb bzip2 cairo cli consolekit cracklib crypt cups curl dbus dri fortran gdbm gif glitz gnome gpm gtk hal iconv ipv6 isdnlog jpeg jpeg2k libnotify midi mudflap nano-syntax ncurses nls nolvm1 nolvmstatic nptl nptlonly opengl openmp pam pcre perl png pppd python readline reflection ruby sdl session slang spell spl sqlite3 ssl startup-notification svg svga sysfs tcpd threads tiff truetype unicode vim-syntax vte x86 xcb xcomposite xft xml xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa savage vga"
USER="benkong2"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="vesa savage vga"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
_="/usr/bin/emerge"
Comment 1 Maxime G. 2009-05-18 19:02:17 UTC
Same here 

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo i686)
=================================================================
System uname: Linux-2.6.29-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.20GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 18 May 2009 09:30:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_OUTPUT_PORTS="17:0"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="Terminal"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=i686 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-1HbvHzV5hy,guid=7c5e8f51976e5fe7f0faad794a118d6d"
DESKTOP_SESSION="xfce"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="xfce"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
GLADE_CATALOG_PATH=":"
GLADE_MODULE_PATH=":"
GLADE_PIXMAP_PATH=":"
GNOME_KEYRING_PID="5473"
GNOME_KEYRING_SOCKET="/tmp/.private/maxime/keyring-a5VVrb/socket"
GTK_IM_MODULE="scim"
GTK_PATH=":/usr/lib/gtk-2.0"
HISTFILE="/home/maxime/.history"
HISTSIZE="1000"
HOME="/home/maxime"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info"
INPUT_DEVICES="evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="fr_FR"
LANGUAGE="fr"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="fr_FR.utf8"
LDFLAGS="-Wl,--hash-style=both"
LESS="-R -M --shift 5"
LESSCHARSET="utf-8"
LESSOPEN="|lesspipe.sh %s"
LIBGLADE_MODULE_PATH=":/usr/lib/libglade/2.0"
LINGUAS="fr ja"
LOGNAME="root"
MAIL="/home/maxime/.maildir"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man:/etc/java-config/system-vm/man/"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa amd64-fbsd sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="19"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/xwing /usr/local/portage/local"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/"
QT_IM_MODULE="scim"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.3"
RPMDIR="/usr/portage/rpm"
SANE_CONFIG_DIR="/etc/sane.d"
SAVEHIST="1000"
SESSION_MANAGER="local/kraft:@/tmp/.ICE-unix/5516,unix/kraft:/tmp/.ICE-unix/5516"
SHELL="/bin/zsh"
SHLVL="4"
SSH_AGENT_PID="5511"
SSH_AUTH_SOCK="/tmp/ssh-OkqcOm5509/agent.5509"
SUDO_COMMAND="/bin/zsh"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="maxime"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
TEXINPUTS="~/.latex/packages//:"
TMP="/tmp/.private/maxime"
USB_DEVFS_PATH="/dev/bus/usb"
USE="x86" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr ja" USERLAND="GNU" VIDEO_CARDS="nvidia"
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf"
VIDEO_CARDS="nvidia"
WINDOWID="50331652"
WINDOWPATH="7"
XAUTHORITY="/tmp/.gdmPUR3TU"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XDG_SESSION_COOKIE="72328d2165402e22c32b522248d2acfd-1242664300.228405-156345538"
XMODIFIERS="@im=SCIM"
_="/usr/bin/emerge"
Comment 2 Bob Raitz 2009-05-25 00:53:25 UTC
It also happens to x86_64 as well. Want to be on this list.

core-too ~ # emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.10.1-r0, 2.6.29-zen2 x86_64)
=================================================================
System uname: Linux-2.6.29-zen2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 24 May 2009 06:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.8
dev-lang/python:     2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/mnt/seeds/storage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt css ctype cups dbus dlloader dri drm dvd dvdr dvdread emboss encode fam ffmpeg fftw filter flac foomaticdb fortran gdbm gif glib gpm gsl gtk hal iconv ipv6 isdnlog jpeg kde kdgraphics ladspa lame ldap libsamplerate libwww live lm_sensors mad midi mikmod mmx mp3 mpeg mudflap multilib mysql nas ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdcre pdf pdflib perl php png ppds pppd python qt3 qt3support quicktime readline reflection samba sdl session slang slp sndfile spell spl sse sse2 ssl ssse3 svg swat sysfs tcpd theora tiff truetype udev unicode v4l v4l2 vhosts vorbis wxwindows x264 xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 glenn burns 2009-05-31 04:34:16 UTC
add my name to the list...

relevant emerge output:
make[3]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I.    -march=k8 -O3 -pipe  -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c -o encoding.lo encoding.c
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -march=k8 -O3 -pipe -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o
In file included from xobstack.h:22,
                 from encoding.c:34:
./obstack.h:176: error: expected specifier-qualifier-list before 'ptrdiff_t'
encoding.c: In function 'load_encoding_description_file':
encoding.c:620: error: 'struct obstack' has no member named 'maybe_empty_object'
encoding.c:620: error: 'struct obstack' has no member named 'alignment_mask'
encoding.c:620: error: 'struct obstack' has no member named 'alignment_mask'
make[3]: *** [encoding.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14'
make: *** [all] Error 2
 * 
 * ERROR: app-text/a2ps-4.14 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2797:  Called die
 * The specific snippet of code:
 *       make || die "make failed"
 *  The die message:
 *   make failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-text:a2ps-4.14:20090531-042423.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/a2ps-4.14/temp/environment'.
 * 


emerge --info output

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-56-with-gentoo-2.0.1
Timestamp of tree: Sun, 31 May 2009 02:15:02 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="HAL X a52 aac acl acpi alsa autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdr cli consolekit cracklib crypt ctrlmenu cups dbus dri dvd dvdr dvdread eds emboss emerald encode esd evo fam fbcondecor firefox fontconfig fortran gdbm gif glib gnome gnutls gpm gstreamer gtk hal iconv isdnlog jack java jpeg laptop lcms libnotify lm_sensors mad mdnsresponder-compat midi mikmod mng mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl png ppds pppd ptp2 python qt3support qt4 quicktime readline reflection sdl session speex spell spl srt ssl startup-notification svg sysfs tcpd tiff truetype unicode usb utils vim-syntax vorbis win32codecs x86 xcb xlockrc xml xorg xulrunner xv xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Nick Novikov 2009-06-10 10:02:40 UTC
Created attachment 194099 [details, diff]
Temporary patch

Forced including of <stddef.h> in 'lib/obstack.h'.
Works for me (gcc-4.3.3-r2, glibc-2.10.1)
Comment 5 Bob Raitz 2009-06-14 07:07:46 UTC
(In reply to comment #4)
> Created an attachment (id=194099) [edit]
> Temporary patch
> 
> Forced including of <stddef.h> in 'lib/obstack.h'.
> Works for me (gcc-4.3.3-r2, glibc-2.10.1)
> 

This also works for me with both x86 and x86_64. I have taken the liberty of writing an ebuild using your patch, named a2ps-4.14-fix-obstack.h.patch for consistency.
Comment 6 Bob Raitz 2009-06-14 07:11:02 UTC
Created attachment 194620 [details]
ebuild modified to use the patch provided by Nick S. Novikov

Ebuild to fix obstack.h compilation error in a2ps-4.14.
Comment 7 glenn burns 2009-06-14 15:41:44 UTC
ebuild and patch worked for me.

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 i686)

Comment 8 Xavier Miller (RETIRED) gentoo-dev 2009-06-15 20:00:46 UTC
(In reply to comment #6)
> Created an attachment (id=194620) [edit]
> ebuild modified to use the patch provided by Nick S. Novikov
> 
> Ebuild to fix obstack.h compilation error in a2ps-4.14.
> 

Patch and ebuild worked for me
Comment 9 Bob Raitz 2009-06-15 21:03:23 UTC
How cool is that? My first ebuild submission is a hit. Yay! Do I get my name in the ebuild if it makes it to the tree? :)
Comment 10 Alexey Skobkin 2009-06-19 23:00:40 UTC
Bug actually for my ~x86 Gentoo.
Ebuild and patch works!
Comment 11 Andrew Savchenko gentoo-dev 2009-07-12 15:51:55 UTC
The same problem here with a2ps-4.14 and glibc-2.10.1 on ~x86.
Proposed patch helps.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2009-07-26 04:39:10 UTC
i can't reproduce this for the life of me.
Comment 13 Christopher Dale 2009-08-06 14:28:08 UTC
The patch fixed this problem for me, thank you very much!
Comment 14 Nico Baggus 2009-08-19 09:15:07 UTC
ebuild & patch worked on my system 
Comment 15 Ryan Hill (RETIRED) gentoo-dev 2009-08-20 01:58:50 UTC
still can't reproduce this.
Comment 16 Andrew Savchenko gentoo-dev 2009-08-20 06:36:39 UTC
(In reply to comment #15)
> still can't reproduce this.

Do you really use glibc-2.10.1?
Too many people confirmed this bug, so it should not be ignored.
Comment 17 Nico Baggus 2009-08-20 07:30:18 UTC
Now the strange thing it failed on me consistently during recompiles id did because of a emerge -e world that i did.
Yesterday I definately needed the patch to get it to compile.

If I compile 4.14 today (5 minutes ago) It does compile and it works.

The big difference between Aug 16th and now is that python 2.5 has been removed from my system causaing another 80 packets to be recompiled.

One of the changes i can see that has influence is the use of a sys-kernel/linux-headers-2.6.29, that has reverted becaus samba couldn't compile with that one (although there are different errors about a missing attribute on __u64).

The 2.6.29 linuxheaders are required for compiling qemu-10.5 when compiled on a system with kvm enabled.

After installing the linux-headers-2.6.29 it fails again with this error....
Comment 18 Nico Baggus 2009-08-20 07:46:26 UTC
to be more precise, for qemu-10.5, with kvm amongst the USE options
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-29 21:31:05 UTC
Okay it definitely fails to build with recent linux-headers.
Comment 20 SpanKY gentoo-dev 2009-09-09 18:48:30 UTC
builds fine for me with linux-headers-2.6.30 on amd64

i'm guessing though it has nothing to do with linux-headers.  rather the bundled version of gnulib sucks and assumes ptrdiff_t is always in the normal namespace.  it works with older versions of linux headers probably because newer ones bleed a define of offsetof into the namespace.

so use the proposed patch to always include stddef.h and bug upstream to update their gnulib import.
Comment 21 Andrey Grozin gentoo-dev 2009-09-29 10:00:41 UTC
Same failure here: app-text/a2ps-4.14, sys-kernel/linux-headers-2.6.30-r1
Comment 22 Martin von Gagern 2009-10-07 20:12:20 UTC
Created attachment 206361 [details]
Preprocessed encoding.c

This is what the preprocessor makes of encoding.c on a system where the build fails, with glibc-2.10.1 and linux-headers-2.6.30-r1 on ~x86. The file was generated by adjusting the command executed by libtool in this way:

----- make output -----
make[3]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib'
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I.    -march=prescott -O2 -ggdb  -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c -o encoding.lo encoding.c
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -march=prescott -O2 -ggdb -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o

+++++ commands to run +++++
cd /var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/lib
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" \
-DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I.        \
-march=prescott -O2 -ggdb -E encoding.c

For those of you who can't reproduce it, and want to know the difference, I suggest you perform the same preprocessing at your side and compare results. Of course you don't have to reproduce to include the fix, though.

(In reply to comment #20)
> it works with older versions of linux headers probably because
> newer ones bleed a define of offsetof into the namespace.

Doesn't seem that way.
Comment 23 glenn burns 2009-11-13 13:53:51 UTC
ran into this bug again after doing an "emerge -ev world"

applied patch and used modified ebuild again.  worked again.

what is required to get this patch added?

-=glenn=-
Comment 24 Juergen Rose 2009-11-14 13:40:35 UTC
To comment #23, 
 - create a /usr/local/portage/app-text,
 - copy /usr/portage/app-text/a2ps to /usr/local/portage/app-text/
 - copy new a2ps-4.14.ebuild to /usr/local/portage/app-text/a2ps/
 - copy a2ps-4.14-ptrdiff_t.patch to /usr/local/portage/app-text/a2ps/files/
 - add PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf
 - cd to /usr/local/portage/app-text/a2ps/
 - do 'ebuild a2ps-4.14.ebuild digest'
 - do 'emerge a2ps'
Comment 25 Juergen Rose 2009-11-14 14:32:08 UTC
Before doing 'ebuild a2ps-4.14.ebuild digest' it is necessary to do 'ln -s a2ps-4.14-ptrdiff_t.patch a2ps-4.14-fix-obstack.h.patch' in the files subdirectory.
Comment 26 Tais P. Hansen 2009-11-19 10:17:19 UTC
Just got hit by this bug on x86.

sys-kernel/linux-headers-2.6.30-r1
sys-libs/glibc-2.9_p20081201-r3
Comment 27 Dirk Heinrichs 2009-12-07 15:17:33 UTC
(In reply to comment #24)
> To comment #23, 
>  - create a /usr/local/portage/app-text,

I guess what Glenn wanted to ask is:

"What is required to get this patch added to the official tree?"
Comment 28 Cyrill Helg 2009-12-10 10:51:25 UTC
I have this bug for weeks now and I'm wondering why the patch is not yet in tree?
Comment 29 MATSUU Takuto (RETIRED) gentoo-dev 2009-12-14 17:02:25 UTC
4.14-r1 in cvs.
Comment 30 Axel Dyks 2010-04-27 08:41:38 UTC
New ebuild is still (4.14-r1) ~arch ...
... hence we get duplicate bug reports like #297405

I wonder, how/if the bug/fix is tracked (stabilize new ebuild on arch)
after the bug has been closed.
Comment 31 Dmitri Bogomolov 2010-04-27 09:11:32 UTC
*** Bug 297405 has been marked as a duplicate of this bug. ***
Comment 32 Benny Lønstrup Ammitzbøll 2010-05-19 08:42:25 UTC
Why is 4.14-r1 still not the version you get when doing emerge (x86)?

vostro1700 ~ # emerge --search a2ps
Searching...
[ Results for search key : a2ps ]
[ Applications found : 1 ]

*  app-text/a2ps
      Latest version available: 4.13c-r6
      Latest version installed: [ Not Installed ]
      Size of files: 2,377 kB
      Homepage:      http://www.inf.enst.fr/~demaille/a2ps/
      Description:   Any to PostScript filter
      License:       GPL-2

Where is the 'last bit of work' tracked? And who is doing that last bit?
Comment 33 Samuli Suominen (RETIRED) gentoo-dev 2010-06-05 15:12:11 UTC
*** Bug 322825 has been marked as a duplicate of this bug. ***