Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78867 - gnomemeeting 1.2 missing features/segfaults with -O3
Summary: gnomemeeting 1.2 missing features/segfaults with -O3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-20 14:27 UTC by Colin Macdonald
Modified: 2005-07-29 13:17 UTC (History)
1 user (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 2005-01-20 14:27:50 UTC
Building gnomemeeting with -O3 results in a gnomemeeting which works with V4L devices but not with static pictures or the builtin moving gnome meeting logo.

(A correctly working gnomemeeting should allow one to select "Picture" in Preferences->Video Devices->Video Plugin.  With -O3 this is not possible).

I changed my CFLAGS to -O2 and it seems to work correctly.

The problem is more serious then just a missing feature because it causes segfaults on systems without webcams.

Various compile flags are known to cause problem with gcc 3.4:
http://mail.gnome.org/archives/gnomemeeting-list/2005-January/msg00005.html

But I'm running gcc 3.3.4.  Gnomemeeting developers suggested this might be because of patches applied to gcc 3.3.

Not sure exactly which part of -O3 causes the problem.  Gnomemeeting developers suggested using -fno-unit-at-a-time but then ./configure gives the following error:
checking for C compiler default output file name... configure: error: C compiler cannot create executables

According to the developers PWLib and openh232 may also need to have lower optimizations to prevent segfaults.  Indeed, even with -O2, gnomemeeting segfaults on exit.  So I rebuilt PWlib, openh232, and GM without any -Ox flags.  But that didn't help, GM still segaults on quit.

Anyway, at least we need to strip -O3 from use flags and replace it with -O2 for gnomemeeting.
Comment 1 Joe McCann (RETIRED) gentoo-dev 2005-01-20 19:56:42 UTC
post the output of `emerge info`
Comment 2 Colin Macdonald 2005-01-21 10:34:17 UTC
Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.28 i686)
=================================================================
System uname: 2.4.28 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Aug 23 2004, 17:02:48)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.90.0.1.1-r3
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protection distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com http://gentoo.seren.com/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
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 X Xaw3d aac aalib alsa apm arts berkdb bitmap-fonts cdr cjk crypt cups dga directfb dvd eds emacs encode esd f77 faad fam fbcon fftw flac font-server fortran gcj gdbm gif gimpprint ginac gnome gnustep gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib jack java jpeg ldap leim libg++ libwww lirc live mad matroska mikmod mmx mng motif mozilla mpeg mysql nas ncurses nls objc offensive oggvorbis opengl oss pam pdflib perl plotutils png ppds python qhull qt quicktime radeon readline rtc samba scanner sdk sdl slang speex spell sqlite sse ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb v4l wxwindows xinerama xml xml2 xmms xosd xv xvid zlib video_cards_radeon video_cards_mach64"
Unset:  LDFLAGS
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-06-24 04:49:46 UTC
reassigning to maintainer
Comment 4 Stefan Knoblich (RETIRED) gentoo-dev 2005-07-29 13:17:40 UTC
fixed in cvs