Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176035 - building gnome-mount-0.6 fails without -O2 -pipe in CFLAGS
Summary: building gnome-mount-0.6 fails without -O2 -pipe in CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 22:58 UTC by Colin Macdonald
Modified: 2008-12-01 22:29 UTC (History)
2 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 Colin Macdonald 2007-04-25 22:58:11 UTC
(I hope its ok to post bugs about 2.18 while its still masked, sorry if it isn't).

gnome-mount-0.5 builds fine but see the output of building gnome-mount-0.6:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DORBIT2=1 -pthread -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DORBIT2=1 -pthread -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal -I/usr/include/gtk-2.0 -I/usr/lib/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   -pthread -DORBIT2=1 -I/usr/include/nautilus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/lib/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/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/eel-2 -I/usr/include/libart-2.0 -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/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-keyring-1   -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/lib/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   -DDBUS_API_SUBJECT_TO_CHANGE -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DBINDIR=\"/usr/bin\" -DGLADEDIR=\"/usr/share/gnome-mount\" -DDATADIR=\"/usr/share\"    -march=i686 -W -Waggregate-return -Wmissing-prototypes -Wmissing-declarations -Wcast-align -Wbad-function-cast -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -MT gnome-mount.o -MD -MP -MF .deps/gnome-mount.Tpo -c -o gnome-mount.o gnome-mount.c
In file included from /usr/include/dbus-1.0/dbus/dbus-glib.h:137,
                 from gnome-mount.c:49:
/usr/include/dbus-1.0/dbus/dbus-gtype-specialized.h:169: warning: redundant redeclaration of 'dbus_g_type_map_peek_vtable'
/usr/include/dbus-1.0/dbus/dbus-gtype-specialized.h:162: warning: previous declaration of 'dbus_g_type_map_peek_vtable' was here
/usr/include/dbus-1.0/dbus/dbus-gtype-specialized.h:170: warning: redundant redeclaration of 'dbus_g_type_collection_peek_vtable'
/usr/include/dbus-1.0/dbus/dbus-gtype-specialized.h:163: warning: previous declaration of 'dbus_g_type_collection_peek_vtable' was here
gnome-mount.c: In function 'volume_from_nickname':
gnome-mount.c:561: warning: incompatible implicit declaration of built-in function 'calloc'
gnome-mount.c: In function 'volume_mount':
gnome-mount.c:1395: error: 'LC_ALL' undeclared (first use in this function)
gnome-mount.c:1395: error: (Each undeclared identifier is reported only once
gnome-mount.c:1395: error: for each function it appears in.)
make[3]: *** [gnome-mount.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gnome-mount-0.6/work/gnome-mount-0.6/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gnome-mount-0.6/work/gnome-mount-0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gnome-mount-0.6/work/gnome-mount-0.6'
make: *** [all] Error 2

!!! ERROR: gnome-base/gnome-mount-0.6 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1304:   Called gnome2_src_compile
  gnome2.eclass, line 71:   Called die

!!! compile failure
!!! 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/gnome-base:gnome-mount-0.6:20070425-204507.log'.


emerge --info in next post due to size limit
Comment 1 Colin Macdonald 2007-04-25 22:58:39 UTC
Portage 2.1.2.4 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20.7 i686)
=================================================================
System uname: 2.6.20.7 i686 AMD Athlon(tm) Processor
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 25 Apr 2007 17:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protection distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://194.117.143.69 http://85.25.128.62"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/ag-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib acpi alsa apache2 arts audiofile avahi berkdb bitmap-fonts blas bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus dga dri dts dv dvb dvd dvdr eds emacs emboss encode esd exif expat f77 faad fam fbcon ffmpeg fftw firefox flac fortran gcj gd gdbm gif ginac glut gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imlib isdnlog jack java jpeg lapack lcms leim libcaca libg++ libnotify libsamplerate lirc live mad matroska midi mikmod mmap mmx mng mono mozilla mp3 mpeg mysql nas ncurses nls nptl nptlonly offensive ogg openal opengl oss pam pcre pdf perl plotutils png ppds pppd pulseaudio python qhull qt3 quicktime radeon readline reflection rtc samba scanner sdk sdl session slang sndfile speex spell spl sqlite sse ssl startup-notification svg tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows x86 xinerama xml xorg xosd xv xvid zlib" ALSA_CARDS="emu10k1 via82xx" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="realmagic" USERLAND="GNU" VIDEO_CARDS="i810 radeon mach64 vesa vga fbdev v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Colin Macdonald 2007-04-26 07:19:23 UTC
Hmmm, I can't reproduce this on my other system which has an almost identical configuration...  seems like it might be a local problem.

Feel free to close if no one else can reproduce.
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-04-26 16:23:59 UTC
I tried, but couldn't reproduce it either.  LC_ALL is a fairly fundamental define, and is part of the system headers.  Maybe your linux-headers package is out of date?  Maybe your glibc install was messed up somehow?
Comment 4 Colin Macdonald 2007-04-26 20:51:28 UTC
emerged both linux-headers and glibc again.  Didn't help.  I'm not sure what else to try.  Marking WORKSFORME and by ME and I mean YOU ;-)
Comment 5 Colin Macdonald 2007-04-27 01:22:07 UTC
In case anyone is following this: adding a include <locale.h> to gnome-mount.c seems to fix the problem.  I notice that config.h (from ./configure) is probably supposed to pull this in.  I will compare later with my working system and try to track down the problem.
Comment 6 Colin Macdonald 2007-05-28 22:15:07 UTC
Ok, I've tracked this down.  Compiling gnome-mount with CFLAGS="-march=i686 -O2 -pipe" works fine but with CFLAGS="-march=i686", compiling dies as noted above.

Confirmed on two different machines.  I assume this has something to do with building glibc, libtool, or wherever calloc and LC_* are from with one set of CFLAGS (probably "-march=i686 -O2 -pipe" in my case) but gnome-mount with another ("-march=i686").

Reopening: I wonder if anyone else can confirm this?
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2007-05-29 17:42:06 UTC
... confirming. If you could open a bug upstream and post the url here, that'd be great. Meanwhile I'll add the needed #include.

Thanks for reporting this bug
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2007-05-29 21:17:19 UTC
Fixed in CVS
Comment 9 Colin Macdonald 2007-05-30 00:50:58 UTC
reported upstream as:

http://bugzilla.gnome.org/show_bug.cgi?id=442197
Comment 10 Mart Raudsepp gentoo-dev 2007-10-12 14:56:55 UTC
Adding gentopia to CC as new co-maintainers of gnome-mount
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2008-08-25 08:40:10 UTC
This bug has been fixed in trunk and should be included in the next release (0.9?). 0.7 in portage does _not_ include this patch, but it is p.masked...

We should probably put 0.8+trunk patches into the overlay to start testing the PK support and maybe extend the default PK auth file for plugdev operation.
Comment 12 Pacho Ramos gentoo-dev 2008-12-01 21:01:44 UTC
The patch is being applied in gnome-mount-0.8.ebuild, this bug could be closed then (maybe the ebuild should include this bug instead of current:
        # bug #?
        epatch "${FILESDIR}/${PN}-0.6-include-locale-h.patch"

thanks
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-12-01 22:29:16 UTC
erf true, thanks for pointing out.