Summary: | building gnome-mount-0.6 fails without -O2 -pipe in CFLAGS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Colin Macdonald <cbm> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | gentopia, pacho |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugzilla.gnome.org/show_bug.cgi?id=511503 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Colin Macdonald
2007-04-25 22:58:11 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 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. 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? 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 ;-) 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. 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? ... 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 Fixed in CVS reported upstream as: http://bugzilla.gnome.org/show_bug.cgi?id=442197 Adding gentopia to CC as new co-maintainers of gnome-mount 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. 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 erf true, thanks for pointing out. |