Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214863 - gtk+-2.12.9-r1 triggers alpha*|ia64*|powerpc64*|mips64*|sparc64*|x86_64*) die "this code is not 64bit clean";;
Summary: gtk+-2.12.9-r1 triggers alpha*|ia64*|powerpc64*|mips64*|sparc64*|x86_64*) di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
: 215318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-26 13:14 UTC by Ferris McCormick (RETIRED)
Modified: 2008-04-10 01:28 UTC (History)
1 user (show)

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


Attachments
Patch to build modules/printbackends/cups/gtkprintbackendcups.c correctly (gtk+-2.12.9-r1-cups.patch,381 bytes, patch)
2008-03-26 15:13 UTC, Ferris McCormick (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ferris McCormick (RETIRED) gentoo-dev 2008-03-26 13:14:31 UTC
This bug appears to be new (I can't find a duplicate).

A regression from gtk+-2.12.9 --> -2.12.9-r1:
During the upgrade, this build fails thus:
===========================================
 * QA Notice: Package has poor programming practices which may compile
 *            but will almost certainly crash on 64bit architectures.
 * Function `g_fopen' implicitly converted to pointer at gtkprintbackendcups.c:1421

 * 
 * ERROR: x11-libs/gtk+-2.12.9-r1 failed.
 * Call stack:
 *       misc-functions.sh, line 635:  Called install_qa_check
 *       misc-functions.sh, line 339:  Called die
 * The specific snippet of code:
 *                              alpha*|ia64*|powerpc64*|mips64*|sparc64*|x86_64*) die "this code is not 64bit clean";;
 *  The die message:
 *   this code is not 64bit clean
 * 
=========================================
I have verified that on the same system, gtk+-2.12.9 builds and installs without incident.

Because it might be relevant, here is the obligatory 'emerge --info':

==============================================
fmccor@liasis pSTV-0.9 [261]% emerge --info
Portage 2.2_pre5 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9-ail-simulation-sensors x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9-ail-simulation-sensors x86_64 Dual Core AMD Opteron(tm) Processor 165
Timestamp of tree: Wed, 26 Mar 2008 11:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/confcache:  0.4.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ALSA_CARDS="ca0106"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant-core"
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="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -pipe -march=k8"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CG_COMPILER_EXE="/usr/bin/cgc"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
COUGAAR_INSTALL_PATH="/homes/home0/ferris/Packages/COUGAAR/Cougaar12_0JDK_5"
CRYSTAL_CONFIG="/etc/crystalspace"
CRYSTAL_PLUGIN="/usr/lib64/crystalspace"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -march=k8"
DD="/jaz/portage/distfiles"
DEBUG_CFLAGS="-O2 -march=k8 -pipe -g"
DEBUG_CXXFLAGS="-O1 -march=k8 -pipe -g -fno-inline-functions"
DEBUG_FFLAGS="-O2 -pipe -march=k8 -g"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTCC_DIR="/home0/ferris/.distcc"
DISTCC_HOSTS="localhost/2 antaresia/2"
DISTCC_LOG=""
DISTCC_PATH="/usr/lib/distcc/bin"
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
ECHANGELOG_EDITOR="/usr/bin/vim"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
FEATURES="ccache cvs distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FFLAGS="-O2 -march=k8 -pipe"
FLTK_DOCDIR="/usr/share/doc/fltk-1.1.7-r2/html"
FREECIV_DATADIR="/home0/freeciv/share/freeciv"
FREECIV_DIR="/home0/freeciv/share/freeciv"
FVWM_MODULEDIR="/usr/lib/fvwm/2.5.21"
FVWM_USERDIR="/homes/home0/ferris/.fvwm"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://cdot.senecac.on.ca/software/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
GRASS_HOME="/usr/grass62"
GRASS_LD_LIBRARY_PATH="/usr/grass62/lib"
HOME="/homes/home0/ferris"
HOSTDISPLAY="liasis:0.0"
HUSHLOGIN="FALSE"
ICEPY_HOME="/cache/IcePy-3.0.0/python"
ICE_HOME="/cache/Ice-3.0.0"
ICE_VERSION="3.0.0"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-21"
INPUT_DEVICES="evdev keyboard mouse"
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"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="en_US.utf8"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSCHARSET="utf-8"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LOGNAME="fmccor"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36: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: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:*.zip=01;31:*.z=01;31:*.Z=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:*.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:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=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:"
MAIL="/var/mail/fmccor"
MAKEOPTS="-j3"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man"
MOZILLA_FIVE_HOME="/usr/lib64/mozilla"
MULTILIB_ABIS="amd64 x86"MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NIGHTLY="http://www.open-mpi.org/nightly/v0.9/"
NS="/home1/PROJECTS/SIMULATION/ALL-IN-ONE/NS28/bin/ns"
NSDIR="/home1/PROJECTS/SIMULATION/ALL-IN-ONE/NS28/ns-2.28"
OLDPWD="/homes/home0/ferris/Packages/STV-VOTING"
OMNIORB_CONFIG="/etc/omniorb/omniORB.cfg"
OMPI="/home1/PROJECTS/OPEN-MPI"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH=".:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/firebird/bin:/usr/games/bin:/usr/share/omniORB/bin/scripts:/var/spool/fax/bin:/usr/sbin:/sbin"
PD="/jaz/portage/packages"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
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="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
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_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8:/usr/lib64/klibc"
PROVIDES="jdbc-stdext jdbc-rowset"
PROVIDES_TYPE="JDK JRE"
PROVIDES_VERSION="1.5"S1="\[\033[01;32m\]\u@\h \[\033[01;31m\]\W [\#]% \[\033[00m\]"
PS2="> "
PWD="/homes/home0/ferris/Packages/STV-VOTING/pSTV-0.9"
PYTHONDOCS="/usr/share/doc/python-docs-2.4.2/html"
PYTHONPATH=":/cache/IcePy-3.0.0/python:/cache/IcePy-3.0.0/python"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
REMOTEHOST=""
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/firebird/bin"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rubygems"
R_HOME="/usr/lib64/R"
SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/gentoo-guide.cat:/etc/sgml/sgml-docbook-4.4.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/xml-simple-docbook-4.1.2.4.cat:/etc/sgml/xml-simple-docbook-1.0.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-lite.cat"
SHELL="/bin/bash"
SHLVL="3"
SSH_AGENT_PID="5968"
SSH_AUTH_SOCK="/tmp/ssh-fGrnlf5967/agent.5967"
STAGE1_USE="nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
SmartEiffel="/usr/lib64/SmartEiffel/sys/system.se"
SmartEiffelDirectory="/usr/lib64/SmartEiffel"
TERM="xterm"
TEXINPUTS="/usr/lib64/ocaml/ocamldoc:"
TRUST="/homes/home0/ferris/DOCS/GENTOO/TRUSTEES"
USE="X Xaw3d acl alsa amd64 berkdb bzip2 cairo cli cracklib crypt cscope cups dri examples firefox fltk fortran gdbm gif glx gpm graphviz gsl gtk iconv isdnlog jpeg kerberos latex ldap lzw-tiff midi mmx mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt4 readline reflection ruby ruby18 session spl sqlite sse sse2 ssl stroke tcl tcltk tcpd tetex tex tiff tk truetype unicode vim-syntax vorbis xetex xorg zlib" ALSA_CARDS="ca0106" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nvidia"
USER="fmccor"
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 USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VERSION="Sun JDK 1.5.0.13"
VIDEO_CARDS="dummy fbdev nvidia"
VMHANDLE="blackdown-jdk-1.4.2"
WANT_AUTOCONF="2.5"
WANT_MP="true"
WINDOWID="8388632"
WINDOWPATH="7"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
XGUILOADPATH="/home1/ferris/Packages/SNNS/SNNSv4.2"
XTERM_LOCALE="C"
XTERM_SHELL="/bin/bash"
XTERM_VERSION="XTerm(232)"
_="/usr/bin/emerge"
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2008-03-26 13:19:31 UTC
2.12.9 actually failed to properly enable cups support, even with the useflag enabled. So that explains why 2.12.9 doesn't trigger the QA notice.

So yeah, the cups code was modified bewteen 2.12.8 and .9, I guess we should look into it. Any help will be greatly appreciated. :)
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2008-03-26 15:13:02 UTC
Created attachment 147387 [details, diff]
Patch to build modules/printbackends/cups/gtkprintbackendcups.c correctly

We need to get glib/gstdio.h included in order to have a correct declaration for g_open().  This does not happen here (might be a problem with glib.h; it includes everything else, it seems).

Attached patch accomplishes this, and with it installed,
USE=cups emerge -v =x11-libs/gtk+-2.12.9-r1
works fine.  I could attach an updated ebuild, but what I do is add the patch to gtk+/files and at some reasonable place add this to the -2.12.9-r1 ebuild:

=====================
    # Fix problem with cups backend
    use cups && epatch "${FILESDIR}/${PN}-2.12.9-r1-cups.patch"
=====================

No, I don't know why USE=cups works with other versions of gtk+ --- perhaps the cups backend has never been built before, because this looks like a day-1 oversight to me.
Comment 3 Mart Raudsepp gentoo-dev 2008-03-26 15:27:56 UTC
2.12.8 has cups backend working fine, 2.12.9 breaks it due to configure.in changes, 2.12.9-r1 fixes that. But as you found, there seem to be 64bit issues now.
Including individual headers is not future-proof (though maintainable as it's inside glib itself), and the real problem is probably the lack of including the header in glib.h. Fixing it in that one place means there will be just problems elsewhere and that's just a workaround
Comment 4 Mart Raudsepp gentoo-dev 2008-04-10 01:27:42 UTC
*** Bug 215318 has been marked as a duplicate of this bug. ***
Comment 5 Mart Raudsepp gentoo-dev 2008-04-10 01:28:55 UTC
Fixed in gtk+-2.12.9-r2 among other things by grabbing some patches from SVN gtk-2.12 branch, thanks