Bug 131070 - wwwoffle-2.9 doesn't compile w/ gcc-4.1
Bug#: 131070 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: mrness@gentoo.org Reported By: stomarti@geekmail.de
Component: GCC Porting
URL: 
Summary: wwwoffle-2.9 doesn't compile w/ gcc-4.1
Keywords:  
Status Whiteboard: 
Opened: 2006-04-24 00:38 0000
Description:   Opened: 2006-04-24 00:38 0000
Compiling wwwoffle-2.9 stops with this error:

make[1]: Entering directory
`/var/tmp/portage/wwwoffle-2.9/work/wwwoffle-2.9/src'
x86_64-pc-linux-gnu-gcc -c -march=k8 -O3 -pipe -fomit-frame-pointer
-fforce-addr -falign-functions=4 -fprefetch-loop-arrays wwwoffled.c -o
wwwoffled.o
x86_64-pc-linux-gnu-gcc -c -march=k8 -O3 -pipe -fomit-frame-pointer
-fforce-addr -falign-functions=4 -fprefetch-loop-arrays wwwoffles.c -o
wwwoffles.o
wwwoffles.c:3030: error: conflicting types for 'wwwoffles_read_data'
wwwoffle.h:196: error: previous declaration of 'wwwoffles_read_data' was here
make[1]: *** [wwwoffles.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/wwwoffle-2.9/work/wwwoffle-2.9/src'
make: *** [compile] Error 2

!!! ERROR: net-proxy/wwwoffle-2.9 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  wwwoffle-2.9.ebuild, line 43:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.


My emerge --info:

Portage 2.1_pre9-r4 (default-linux/amd64/2005.1, gcc-4.1.0, glibc-2.4-r1,
2.6.16-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     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-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays"
CHOST="x86_64-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/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/
http://213.186.33.38/gentoo-distfiles/ http://213.186.33.37/gentoo-distfiles/
ftp://213.186.33.37/gentoo-distfiles/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/gentoo-de /usr/local/overlays/bmg-main
/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 alsa aotuv arts avi berkdb bitmap-fonts bzip2 cdr cjk cli
crypt cups dga directfb dri dts dvd dvdr dvdread eds effects emboss encode
fbcon ffmpeg flac fortran gif gimpprint gpm gstreamer gtk2 hal imagemagick
imlib inkjar input_devices_evdev input_devices_keyboard input_devices_mouse
ipv6 isdnlog jpeg kde libcaca libsamplerate lm_sensors lzw lzw-tiff mad
matroska mng mp3 mpeg mysql ncurses nls nomotif nptl nptlonly nvidia ogg
oggvorbis opengl pam pcre pdf pdflib perl png ppds pppd python qt quicktime
readline reflection rtc scanner sdl session spell spl sqlite ssl svg tcltk tcpd
tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l
video_cards_apm video_cards_fbdev video_cards_nv video_cards_nvidia
video_cards_vesa video_cards_vga video_cards_vmware vorbis wmf xine xorg xpm xv
xvid zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS

------- Comment #1 From Mark Loeser 2006-05-01 18:00:06 0000 -------
Works fine for me, not a gcc-4.1 problem.

------- Comment #2 From Mark Loeser 2006-05-01 18:04:40 0000 -------
My mistake, its an amd64 with gcc-4.1 issue.  I'll make a patch.

------- Comment #3 From Mark Loeser 2006-05-01 18:17:08 0000 -------
Created an attachment (id=85956) [details]
gcc-4.1 patch

Give this a try and let me know how it works.

------- Comment #4 From stomarti@geekmail.de 2006-05-01 23:27:50 0000 -------
Tried your patch. Compiles cleanly. Thank you.

------- Comment #5 From Daniel Black 2006-05-02 06:01:09 0000 -------
Alin - I haven't touched this pacakge since 2004. Want to take over fully? I'm
happy to add stuff but you seem to be taking more care of this than me.

------- Comment #6 From Alin Năstac 2006-05-06 01:23:06 0000 -------
take over the maintainership

------- Comment #7 From Alin Năstac 2006-05-06 01:34:04 0000 -------
fixed in cvs, without revision bump.