Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132326 - gnome-python fails to compile due to c9x option on gnome.overrides
Summary: gnome-python fails to compile due to c9x option on gnome.overrides
Status: RESOLVED DUPLICATE of bug 130140
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 132325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-05 03:13 UTC by Robert Marmorstein
Modified: 2006-05-05 04:03 UTC (History)
0 users

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


Attachments
Replaces "-std=c9x" in configure.in with "-std=gnu99" (gnome-python-2.12.3-sigaction.diff,417 bytes, patch)
2006-05-05 03:14 UTC, Robert Marmorstein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Marmorstein 2006-05-05 03:13:00 UTC
Okay.  This is a weird one.  When I try to emerge gnome-python, I get the following error message:

gnome.override: In function '_wrap_gnome_program_init':
gnome.override:288: error: storage size of 'sa' isn't known
gnome.override:396: warning: implicit declaration of function 'sigaction'
gnome.override:288: warning: unused variable 'sa'
make[2]: *** [_gnome_la-gnome.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-python-2.12.3/work/gnome-pyth
on-2.12.3/gnome'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-python-2.12.3/work/gnome-pyth
on-2.12.3'
make: *** [all] Error 2

!!! ERROR: dev-python/gnome-python-2.12.3 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  ebuild.sh, line 1237:   Called gnome2_src_compile
  gnome2.eclass, line 58:   Called die

!!! compile failure
!!! If you need support, post the topmost build error, and the call stack if rel
evant.

It turns out that <signal.h> only defines "struct sigaction" for POSIX compilers.  But the configure script is set up to use the "c9x" standard, which is not POSIX.  I got things to compile by patching this (I will attach the patch), but I'm not certain that this is a correct solution.  Anyone know why gnome-python needs "-std=c9x" passed to gcc?

My emerge --info:

Gentoo Base System version 1.12.0_pre18
Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-c
k2 i686)
=================================================================
System uname: 2.6.16-ck2 i686 AMD Athlon(tm) XP 2200+
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share
/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/
pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/t
erminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks gentrip metadata-transfer sandbox sfperms 
strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
LINGUAS="en he grc"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib acpi ada aim alsa apache apache2 apm asf audiofile 
avi berkdb bidi bindist bitmap-fonts browserplugin bzip2 calendar cdr cli crypt 
cscope ctype cups curl curlwrappers dba dedicated dga dio divx4linux doc dri dvd
 dvdr eds emboss encode esd ftwork new-login nls nocd nptl nptlonly nsplugin objc ogg oggvorbis openal opengl
 oscar oss pam pcntl pcre pda pdf pdflib perl pie plotutils plugin png posix pos
tgres ppds pppd python qt quicktime quotes readline reflection scanner sdl sessi
on shared slang sockets softmmu speex spell spl sse ssl svg sysvipc szip tcltk t
cpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb 
v4l v4l2 videos vorbis win32codecs wmf wxwindows xcomposite xine xinerama xml xm
l2 xmms xorg xpm xscreensaver xsl xv xvid yahoo zlib elibc_glibc input_devices_k
eyboard input_devices_mouse kernel_linux linguas_en linguas_he linguas_grc userl
and_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLA
GS
astcgi ffmpeg fftw firefox flac flash flatfile foom
atic foomaticdb fortran ftp gb gcj gd gdbm ggi gif gmp gphoto2 gpm gstreamer gtk
 gtk2 hal iconv icq imagemagick imap imlib ipv6 isdnlog jabber jack java jikes j
peg kde kdexdeltas ladcca lcms libg++ libwww mad mbox mcal memlimit mikmod mime 
ming mmap mmx mng motif mozcalendar mozilla mp3 mpeg mysql mysqli nas ncurses ne
Comment 1 Robert Marmorstein 2006-05-05 03:14:53 UTC
Created attachment 86192 [details, diff]
Replaces "-std=c9x" in configure.in with "-std=gnu99"

This fix helped the compile get past the "sigaction" problem.  However, it now complains that ltmain.sh has a different version than libtool.m4.
Comment 2 Robert Marmorstein 2006-05-05 03:20:28 UTC
I was able to get everything working by creating a second patch.  Unfortunately, it is too large to post....  What I had to do was unpack the ebuild, then run aclocal and libtoolize --copy --force.  I then created a patch of all the files that were modified by libtoolize.  Applying both patches allowed me to get everything working.

I think this would not have been necessary if the packaged provided its own "libtool.m4".  
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-05-05 04:01:56 UTC
*** Bug 132325 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-05 04:03:23 UTC
*** This bug has been marked as a duplicate of 130140 ***

*** This bug has been marked as a duplicate of 130140 ***