Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60173 - Gaim 0.81 and 0.81-r1 fails to compile with gcc 3.4.1
Summary: Gaim 0.81 and 0.81-r1 fails to compile with gcc 3.4.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 13:45 UTC by Simon Strandman
Modified: 2004-08-14 12:50 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 Simon Strandman 2004-08-12 13:45:20 UTC
Gaim 0.81* wont compile on my system :(

It fails with this:
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib/gaim/\" -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../plugins  -I/usr/include  -D_XOPEN_SOURCE=500 -DXTHREADS -DXUSE_MTSAFE_API -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/opt/fdo/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_XOPEN_SOURCE=500 -DXTHREADS -DXUSE_MTSAFE_API -D_REENTRANT -I/usr/include/gtkspell-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/opt/fdo/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/startup-notification-1.0     -O2 -march=athlon-xp -pipe -Wall -g3 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi
util.c: In function `gaim_str_to_time':
util.c:564: error: structure has no member named `tm_gmtoff'
util.c: In function `gaim_markup_strip_html':
util.c:1256: warning: implicit declaration of function `strncasecmp'
make[3]: *** [util.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81'
make: *** [all] Error 2
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/doc'
Making all in intl
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/intl'
Making all in pixmaps
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps'
Making all in smileys
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys'
Making all in default
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys/default'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys/default'
Making all in none
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys/none'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys/none'
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys'
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/smileys'
Making all in status
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/status'
Making all in default
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/status/default'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/status/default'
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/status'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/status'
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps/status'
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps'
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/pixmaps'
Making all in plugins
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins'
Making all in docklet
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/docklet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/docklet'
Making all in gaim-remote
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/gaim-remote'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/gaim-remote'
Making all in gestures
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/gestures'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/gestures'
Making all in perl
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/perl'
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/perl/common'
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/perl/common'
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/perl'
Making all in tcl
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/tcl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/tcl'
Making all in ssl
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/ssl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/ssl'
Making all in ticker
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/ticker'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins/ticker'
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins'
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/plugins'
Making all in po
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/po'
Making all in sounds
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/sounds'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/sounds'
Making all in src
make[2]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src'
Making all in protocols
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols'
Making all in gg
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/gg'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/gg'
Making all in irc
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/irc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/irc'
Making all in jabber
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/jabber'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/jabber'
Making all in msn
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/msn'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/msn'
Making all in napster
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/napster'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/napster'
Making all in novell
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/novell'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/novell'
Making all in oscar
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/oscar'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/oscar'
Making all in yahoo
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/yahoo'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/yahoo'
Making all in zephyr
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/zephyr'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols/zephyr'
make[4]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols'
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src/protocols'
make[3]: Entering directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib/gaim/\" -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../plugins  -I/usr/include  -D_XOPEN_SOURCE=500 -DXTHREADS -DXUSE_MTSAFE_API -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/opt/fdo/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_XOPEN_SOURCE=500 -DXTHREADS -DXUSE_MTSAFE_API -D_REENTRANT -I/usr/include/gtkspell-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/opt/fdo/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/startup-notification-1.0     -O2 -march=athlon-xp -pipe -Wall -g3 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi
util.c: In function `gaim_str_to_time':
util.c:564: error: structure has no member named `tm_gmtoff'
util.c: In function `gaim_markup_strip_html':
util.c:1256: warning: implicit declaration of function `strncasecmp'
make[3]: *** [util.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gaim-0.81-r1/work/gaim-0.81'
make: *** [all] Error 2

!!! ERROR: net-im/gaim-0.81-r1 failed.
!!! Function src_compile, Line 109, Exitcode 2
!!! Make failed


My emerge info:
Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.8-rc4-mm1-s7.I)
=================================================================
System uname: 2.6.8-rc4-mm1-s7.I i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=athlon-xp -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -ffast-math -ftracer -fweb -fPIC"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -ffast-math -ftracer -fweb -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo ftp://ftp.rhnet.is/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.rhnet.is/pub/gentoo/"
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="3dnow X aalib alsa apm avi berkdb cdr crypt dga directfb dvd dvdr encode esd esound f77 fbcon foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib jpeg kde libg++ libwww linguas_sv mad mikmod mmx mng motif mozilla ncurses nls nptl objc offensive oggvorbis opengl pam pdflib perl pic png pnp python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype unicode usb video_cards_radeon x86 xine xml xml2 xmms xv xvid zlib"

Reproducible: Always
Steps to Reproduce:
Comment 1 Simon Strandman 2004-08-12 13:48:26 UTC
I forgot to mention that gaim 0.80 compiles without any problems.
Comment 2 gent_bz 2004-08-13 04:37:10 UTC
I have no problems compiling gaim-0.81-r1 with gcc-3.4.1-r2

$ emerge info
Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm)
Gentoo Base System version 1.5.2
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -ftracer -fomit-frame-pointer -pipe -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /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="-O3 -march=athlon-xp -ftracer -fomit-frame-pointer -pipe -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.238/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb cdr crypt cups curl dedicated dv dvd encode esd faad foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jpeg lcms libg++ libwww mad mastroska mbox mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang spell sse ssl tcpd tetex theora tiff truetype usb videos wmf x86 xml xml2 xmms xv xvid zlib"


$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: /var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5)
Comment 3 Disenchanted (RETIRED) gentoo-dev 2004-08-13 21:43:24 UTC
works for me, 0.8.1-r1 merged fine
so its hard for me to know where to start
since it is in util.c can i suggest to compile with a different kernel? 
what kernel sources add this -s7.l ?
which kernel headers are you using?
Comment 4 Simon Strandman 2004-08-14 12:50:28 UTC
My kernel is 2.6.8-rc4-mm1 with Con Kolivas's staircase scheduler version 7.I, I added that to extraversion myself.

Anyway I found out what the problems where and it was not because of gcc. It was because I had the freedesktop x-server installed in /opt/fdo and gaim tried to include files from there. Gaim compiled when I removed /opt/fdo.

Sorry for this!