Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233870 - gnome-base/nautilus-2.22.5.1 does not compile due to missing includes
Summary: gnome-base/nautilus-2.22.5.1 does not compile due to missing includes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gtk2.14-compat 254034
  Show dependency tree
 
Reported: 2008-08-04 08:41 UTC by Petri Hintukainen
Modified: 2009-01-07 02:01 UTC (History)
4 users (show)

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


Attachments
Add #include <sys/stat.h> (nautilus-2.22.5.1-fixincludes.patch,636 bytes, patch)
2008-08-04 08:42 UTC, Petri Hintukainen
Details | Diff
Updated Ebuild to remove LDFLAGS (nautilus-2.22.5.1-r2.ebuild,2.14 KB, text/plain)
2008-08-05 16:03 UTC, Mike Weissman
Details
build.log (build.log,101.28 KB, text/plain)
2008-08-06 10:33 UTC, Petri Hintukainen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petri Hintukainen 2008-08-04 08:41:20 UTC
gnome-base/nautilus-2.22.5.1 does not compile due to missing #includes. Maybe it is because of I'm using sys-libs/glibc-2.8_p20080602 and gcc-4.3.1-r1 ?


Reproducible: Always

Actual Results:  
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../cut-n-paste-code -pthread -DORBIT2=1 -I/usr/include/eel-2 -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libart-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/librsvg-2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DG_DISABLE_DEPRECATED -DDATADIR=\"/usr/share\" -DSYSCONFDIR=\"/etc\" -DNAUTILUS_DATADIR=\"/usr/share/nautilus\" -DNAUTILUS_EXTENSIONDIR=\"/usr/lib64/nautilus/extensions-2.0\" -O2 -pipe -march=native -MT nautilus-dnd.lo -MD -MP -MF .deps/nautilus-dnd.Tpo -c nautilus-dnd.c  -fPIC -DPIC -o .libs/nautilus-dnd.o
nautilus-emblem-utils.c: In function 'nautilus_emblem_install_custom_emblem':
nautilus-emblem-utils.c:236: error: storage size of 'stat_buf' isn't known
nautilus-emblem-utils.c: In function 'nautilus_emblem_remove_emblem':
nautilus-emblem-utils.c:357: error: storage size of 'stat_buf' isn't known
nautilus-emblem-utils.c: In function 'nautilus_emblem_rename_emblem':
nautilus-emblem-utils.c:406: error: storage size of 'stat_buf' isn't known
make[2]: *** [nautilus-emblem-utils.lo] Error 1



emerge --info 
Portage 2.2_rc6 (default-linux/amd64/2007.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24.2 x86_64)
=================================================================
System uname: Linux-2.6.24.2-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sat, 02 Aug 2008 23:45:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
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="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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-core"
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 cgi cgid 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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -pipe -march=native"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -march=native"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-KhgrDFhz37,guid=93444953bf245d82da55a84c488ec714"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="gnome"
DESKTOP_STARTUP_ID=""
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose --jobs 4"
EMERGE_WARNING_DELAY="10"
FEATURES="distlocks parallel-fetch preserve-libs 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="gnome"
GDM_LANG="fi_FI.UTF-8"
GDM_XSERVER_LOCATION="local"
GENERATION="2"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.public.fix.fi/gentoo/ "
GNOME_DESKTOP_SESSION_ID="Default"
GPG_AGENT_INFO="/tmp/seahorse-oKRPpX/S.gpg-agent:11424:1"
GTK_MODULES="gnomebreakpad"
GTK_RC_FILES="/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2"
HG="/usr/bin/hg"
HOME="/root"
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.3.1/info:/usr/share/info/emacs-21"
INPUT_DEVICES="keyboard mouse evdev"
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS="1"
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"
LANG="fi_FI.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LDFLAGS_41=""
LDFLAGS_42=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed"
LDFLAGS_43=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LINGUAS="fi en"
LOGNAME="root"
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:*.svgz=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:*.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:"
MAKEOPTS="-j4"
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.3.1/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man"
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)"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.1:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
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/lib64/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/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/portage/local/layman/x11 /usr/portage/local/layman/gnome /usr/portage/local/layman/berkano /usr/local/portage /usr/portage/local/oma"
PWD="/root"
PYTHONPATH="/usr/lib64/portage/pym"
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/x86_64-pc-linux-gnu/gcc-bin/4.3.1:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SESSION_MANAGER="local/core:/tmp/.ICE-unix/11390"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="11414"
SSH_AUTH_SOCK="/tmp/ssh-IDLBi11390/agent.11390"
STAGE1_USE="nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X a52 aac acl acpi alsa amd64 amr apache2 arts berkdb bluetooth cairo cdda cddb cdr cli cracklib crypt cups dbus dga dri dts dvb dvd dvdcss dvdr dvdread eds emboss encode esd evo fam fbcon ffmpeg firefox flac gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal iconv id3tag imagemagick isdnlog java jpeg kerberos ldap libextractor libnotify live mad matroska midi mikmod mmx mmxext motif moznocompose moznoirc moznomail mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png pppd python qt qt2 qt3 qt3support qt4 readline reflection rtc samba sdl session sound spell spl sse sse2 sse3 ssl ssse3 svg taglib tcpd threads tiff truetype unicode usb v4l v4l2 vdr x264 xine xml xorg xprint xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 cgi cgid 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi en" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vesa"
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 USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VDR_LOCAL_PATCHES_DIR="/usr/local/vdr-patches"
VIDEO_CARDS="i810 fbdev vesa"
VMHANDLE="blackdown-jdk-1.4.2"
WINDOWID="30116022"
WINDOWPATH="7"
XAUTHORITY="/root/.Xauthority"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
XPSERVERLIST=""
_="/usr/bin/emerge"
Comment 1 Petri Hintukainen 2008-08-04 08:42:54 UTC
Created attachment 162173 [details, diff]
Add #include <sys/stat.h>

Proposed fix
Comment 2 Qian Qiao 2008-08-05 11:11:03 UTC
I'm seeing the exact same issue here.

gcc-4.3.1-r1
glibc-2.7-r2

I can also confirm that the proposed patch by Petri fixes the issue.
Comment 3 Mike Weissman 2008-08-05 14:36:52 UTC
Patch doesn't work for me on x86 with  gcc-4.3.1, glibc-2.8_p20080602-r0 error:

with patch:

rm -fr .libs/libnautilus-private.lax
creating libnautilus-private.la
(cd .libs && rm -f libnautilus-private.la && ln -s ../libnautilus-private.la libnautilus-private.la)
make[2]: Leaving directory `/var/tmp/portage/gnome-base/nautilus-2.22.5.1-r2/work/nautilus-2.22.5.1/libnautilus-private'
Making all in src
make[2]: Entering directory `/var/tmp/portage/gnome-base/nautilus-2.22.5.1-r2/work/nautilus-2.22.5.1/src'
/usr/bin/orbit-idl-2 -I /usr/share/idl/bonobo-activation-2.0 -I /usr/share/idl/bonobo-2.0 -I.. nautilus-shell-interface.idl
orbit-idl-2 2.14.13 compiling
  mode, hide preprocessor errors, passes: stubs skels common headers

Processing file nautilus-shell-interface.idl

Error: Empty file
** (orbit-idl-2:3007): WARNING **: nautilus-shell-interface.idl compilation failed
make[2]: *** [nautilus_shell_interface_idl_stamp] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/nautilus-2.22.5.1-r2/work/nautilus-2.22.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/nautilus-2.22.5.1-r2/work/nautilus-2.22.5.1'
make: *** [all] Error 2

Same error without the patch, thus i feel that glibc version is not the issue here.

@Petri can you try and rebuild with "safer" LDFLAGS

@Qian emerge --info would be nice to compare
Comment 4 Mike Weissman 2008-08-05 16:01:53 UTC
Removing some Wonky flags during compile fixed it for me without includes. I'll attach an updated ebuild, Can you Test and confirm if it works @Petri and @Quian?

Comment 5 Mike Weissman 2008-08-05 16:03:06 UTC
Created attachment 162278 [details]
Updated Ebuild to remove LDFLAGS

Added some removal of flags.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2008-08-05 16:20:47 UTC
(In reply to comment #5)
> Created an attachment (id=162278) [edit]
> Updated Ebuild to remove LDFLAGS
> 
> Added some removal of flags.
> 

No way are we going to filter flags like this. To all of you, please try with sane CFLAGS and the default LDFLAGS for your profile. If that works, then reinsert one by one your {C,LD}FLAGS to see which one breaks.

Thanks
Comment 7 Michael Croes 2008-08-05 23:16:24 UTC
I was running into the same issue, was hoping it would've gotten fixed by now...
In response to #6:
I have no custom LDFLAGS set, I've already changed and even stripped my CFLAGS with the exception of -pipe and was still running into the same issue.

I'm using gcc-4.1.2, glibc-2.6.1 on a system using the 2008.0 amd64 default profile and I use paludis as package manager. If more information is required, please say so.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2008-08-05 23:38:29 UTC
(In reply to comment #7)
> I was running into the same issue, was hoping it would've gotten fixed by
> now...

Which issue? The #includes one? Have you tried the patch?

Thanks
Comment 9 Petri Hintukainen 2008-08-06 08:17:37 UTC
(In reply to comment #6)
> please try with
> sane CFLAGS and the default LDFLAGS for your profile. If that works, then
> reinsert one by one your {C,LD}FLAGS to see which one breaks.

Didn't help (I removed all CFLAGS and LDFLAGS from Make.conf).

BTW, I have exactly same problem with gnome-screensaver-2.22.2.
Maybe the problem is related to some other gnome headers (older version of some
header might have #included <sys/stat.h> ?).
Comment 10 Michael Croes 2008-08-06 09:18:20 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > I was running into the same issue, was hoping it would've gotten fixed by
> > now...
> 
> Which issue? The #includes one? Have you tried the patch?

The issue where it won't compile and fail on the exact same error. I haven't tried the patch yet, I'm trying to wait for someone else to figure out what's going on but thought it might be helpful I let you know that LDFLAGS and CFLAGS don't seem to affect this issue...
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2008-08-06 09:48:41 UTC
Could anyone with this bug provide :

1) a simple "emerge --info" (the one provided by Petri is obviously "emerge --info --verbose"),
2) a *full* build.log as portage strongly suggests,
3) the output of "emerge -pv nautilus"

Thank you.

And FYI, on a rather standard ~amd64, I cannot reproduce this bug, so please send us useful logs so that we can try to identify the breakage.
Comment 12 Petri Hintukainen 2008-08-06 10:33:50 UTC
Created attachment 162349 [details]
build.log
Comment 13 Qian Qiao 2008-08-06 10:36:16 UTC
More details as requested:

gcc-4.3.1-r1
glibc-2.7-r2

# paludis --info nautilus can be found here:
http://misc.ajiaojr.net/~ajiaojr/nautilus-info.log

build log can be found here:
http://misc.ajiaojr.net/~ajiaojr/nautilus.log

# paludis -ip1 nautilus
Building target list... 
Building dependency list...

These packages will be installed:

* gnome-base/nautilus [U 2.22.4 -> 2.22.5.1-r1] <target>
    X -beagle -debug gnome -tracker

Total: 1 package (1 upgrade)
Comment 14 Petri Hintukainen 2008-08-06 11:09:48 UTC
> 3) the output of "emerge -pv nautilus"

WARNING: repository at /usr/local/portage is missing a repo_name entry
WARNING: repository at /usr/portage/local/oma is missing a repo_name entry

These are the packages that would be merged, in order:

Calculating dependencies  
... done!
[ebuild   R   ] gnome-base/nautilus-2.22.5.1  USE="X gnome -beagle -debug" 0 kB [?=>0]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [?] indicates that the source repository could not be determined

(Missing repository was my own overlay with gnome-base/nautilus-2.22.5.1 + the patch)
Comment 15 Mike Weissman 2008-08-06 16:00:24 UTC
@remi for Comment#6

x86 Default 2008.0 Profile, ${CHOST}="i686-pc-linux-gnu"

glibc-2.6.1-r0 
Results from ${CLFAGS}="-O2 -pipe", ${LDFLAGS}="-W1,-O1"
GCC-4.1.2 = builds fine, without patch
GCC-4.2.4 = builds fine, without patch
GCC-4.3.1 = builds fine, without patch 

glibc-2.6.1-r0
Results from ${CLFAGS}="-O2 -pipe", ${LDFLAGS}="-W1,-O1,--as-needed"
GCC-4.1.2 = builds fine, without patch
GCC-4.2.4 = builds fine, without patch
GCC-4.3.1 = builds fine, without patch 

glibc-2.6.1-r0
Results from ${CLFAGS}="-O2 -pipe", ${LDFLAGS}="-W1,-O1,--enable-new-dtags"
GCC-4.1.2 = builds fine, without patch
GCC-4.2.4 = builds fine, without patch
GCC-4.3.1 = builds fine, without patch

glibc-2.8_p20080602-r0
results from ${CLFAGS}="-O2 -march=core2  -pipe -fomit-frame-pointer -g -ggdb", ${LDFLAGS}="-W1,-O1"
GCC-4.3.1 = builds fine, without patch
GCC-4.3.1 = builds fine, with patch

Please let me know if you need more information regarding tests, i tried to cover as many bases as i could with my hardware/software setup.

-Mike
Comment 16 Qian Qiao 2008-08-06 16:21:22 UTC
(In reply to comment #13)
> More details as requested:
> 
> gcc-4.3.1-r1
> glibc-2.7-r2
> 
> # paludis --info nautilus can be found here:
> http://misc.ajiaojr.net/~ajiaojr/nautilus-info.log
> 
> build log can be found here:
> http://misc.ajiaojr.net/~ajiaojr/nautilus.log
> 
> # paludis -ip1 nautilus
> Building target list... 
> Building dependency list...
> 
> These packages will be installed:
> 
> * gnome-base/nautilus [U 2.22.4 -> 2.22.5.1-r1] <target>
>     X -beagle -debug gnome -tracker
> 
> Total: 1 package (1 upgrade)
> 

I've then tried with the following combinations, all done with gcc-4.3.1-r1 and glibc-2.7-r2

CFLAGS=
LDFLAGS=-Wl,-O1
fail with the same error

CFLAGS=-O1
LDFLAGS=-Wl,-O1
fail with the same error

CFLAGS=-O2
LDFLAGS=-Wl,-O1
fail with the same error

CFLAGS=-O2 -pipe
LDFLAGS=-Wl,-O1
fail with the same error

CFLAGS=-O2 -pipe -march=core2
LDFLAGS=-Wl,-O1
fail with the same error
Comment 17 Petri Hintukainen 2008-08-06 20:28:52 UTC
Downgrading dev-libs/glib from 2.17.6 to 2.16.5 solved the problem.
( emerge --oneshot =dev-libs/glib-2.16.5 libbonobo gnome-vfs libgnome libbonoboui libgnomeui gnome-desktop nautilus )

It seems nautilus-2.22.5.1 does not compile with glib-2.17.6, running
emerge --oneshot =dev-libs/glib-2.17.6 nautilus
fails again.
glib-2.17.6 is from gnome overlay, so sorry for the trouble...
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-08-06 21:15:03 UTC
problems that occurs when mix and matching stable versions with overlay versions is up to the users, sorry there's nothing to fix here, if you can reproduce the bug with nautilus 2.23, feel free to reopen this bug.
Comment 19 Michael Croes 2008-08-06 22:37:35 UTC
The issue at hand is that someone in the gnome overlay is keywording stuff as x86/amd64. I noticed it for some other package, but I don't use the gnome overlay for anything at all... I'm removing the overlay, seems everything is working again now (except for stuff I had to recompile).
Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-08-06 22:51:44 UTC
well that's stupid to keyword things stable in a _dev_ overlay indeed, hope the guy concerned will see this and won't do it again (I do hope it's an error of manipulation).
Comment 21 Rémi Cardona (RETIRED) gentoo-dev 2008-08-07 07:10:50 UTC
libbonoboui was indeed marked as stable for amd64 and ppc in the overlay.

Fixed for good :)

Thanks
Comment 22 Michael Croes 2008-08-07 09:01:11 UTC
(In reply to comment #21)
> libbonoboui was indeed marked as stable for amd64 and ppc in the overlay.
> 
> Fixed for good :)
> 
> Thanks
> 

As was glib... And I doubt it was just libbonobo and glib, could be more...
Comment 23 Rémi Cardona (RETIRED) gentoo-dev 2008-08-07 09:18:09 UTC
(In reply to comment #22)
> As was glib... And I doubt it was just libbonobo and glib, could be more...

Nope, I've rechecked the whole overlay and it's 100% ~ only. Only libbonobo was affected. You might want to check other overlays (if you have any) or files in /etc/portage such as package.unmask or package.keywords.

Thanks
Comment 24 Michael Croes 2008-08-07 09:53:21 UTC
(In reply to comment #23)
> You might want to check other overlays (if you have any) or files in
> /etc/portage such as package.unmask or package.keywords.

I was wrong indeed, had glib ~amd64 in keywords.conf which caused it to accept the gnome overlay glib...
Comment 25 Rémi Cardona (RETIRED) gentoo-dev 2008-09-28 10:26:39 UTC
Reopening
Comment 26 Rémi Cardona (RETIRED) gentoo-dev 2008-09-28 10:28:46 UTC
And this is now actually fixed in portage. Adding to breakage meta.

Thanks