Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146138 - app-admin/whowatch doesn't compile with gcc-4.x
Summary: app-admin/whowatch doesn't compile with gcc-4.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords: Bug, InVCS
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-09-03 07:05 UTC by cazzantonio
Modified: 2006-10-05 23:45 UTC (History)
4 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 cazzantonio 2006-09-03 07:05:43 UTC
Error:
######################################################################
heavensdoor ~ # emerge -v whowatch 
Calculating dependencies... done!
>>> Emerging (1 of 1) app-admin/whowatch-1.5.2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking whowatch-1.5.2.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking whowatch-1.5.2.tar.gz to /var/portage_tmp/portage/whowatch-1.5.2/work
 * Applying whowatch-1.5.2-gentoo.diff ...                                        [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/portage_tmp/portage/whowatch-1.5.2/work/whowatch-1.5.2 ...
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=pentium-m -mfpmath=sse -pipe -fomit-frame-pointer -Wl,-O1) works... yes
checking whether the C compiler (gcc -O2 -march=pentium-m -mfpmath=sse -pipe -fomit-frame-pointer -Wl,-O1) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /bin/install -c
checking for kvm_openfiles in -lkvm... no
checking for scrollok in -lncurses... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for curses.h... yes
checking for working const... yes
checking for inline... inline
checking for pid_t... yes
checking for st_rdev in struct stat... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether utmp has USER_PROCESS type... yes
checking whether utmp has DEAD_PROCESS type... yes
checking whether utmp struct has ut_pid member... yes
checking whether utmp struct has ut_name member... yes
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for select... yes
checking for getloadavg... yes
checking whether select() modifies the time value... yes
checking whether sysctl() can be used... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
gcc -O2 -march=pentium-m -mfpmath=sse -pipe -fomit-frame-pointer -Wall -I.   -c -o process.o process.c
process.c: In function 'synchronize':
process.c:77: error: invalid lvalue in assignment
make: *** [process.o] Error 1

!!! ERROR: app-admin/whowatch-1.5.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  whowatch-1.5.2.ebuild, line 26:   Called die
####################################################################

emerge --info:
####################################################################
heavensdoor ~ # emerge --info
Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d/02locale /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/keymaps/i386/qwerty/it.map.gz /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -mfpmath=sse -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
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'"
PORTAGE_TMPDIR="/var/portage_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups directfb dlloader dri dv dvd dvdr dvdread emboss encode fam fbcon ffmpeg firefox flac fortran gd gdbm gif glut gnutls gpm gtk gtk2 idn ieee1394 imagemagick ipv6 isdnlog java jpeg kdeenablefinal lcms libg++ mad mikmod mmx mng mp3 mpeg ncurses nls nptl nptlonly offensive ogg opengl pam pcmcia pcre pdflib perl png ppds pppd python quicktime readline reflection sdl session sndfile speex spell spl sse sse2 ssl svg svga tcl tcpd theora tiff tk truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wmf xml xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_it userland_GNU video_cards_fbdev video_cards_radeon video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
################################################################################
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-03 07:12:39 UTC
treecleaners, some food for you. 

This release comes from some mysterious source, latest listed on homepage is 1.4. Anyway, even this version is 5+ years old, doesn't compile w/ gcc-4 and when compiled w/ gcc-3.x it just segfaults.
Comment 2 Janne Pikkarainen 2006-09-05 04:15:46 UTC
Hehe. Funny. Just when I re-emerged my test server with gcc 4.1.1 and manually fixed whowatch 1.5.2 to compile with gcc 4, I see this bug. :-)

Anyway, if you want to compile whowatch w/ gcc 4.1.1, just apply this patch:

---
--- process.c.orig      2006-09-05 14:10:27.000000000 +0300
+++ process.c   2006-09-05 14:10:34.000000000 +0300
@@ -77 +77 @@
-               (struct process *) p->priv = z;
+               p->priv = z;
Comment 3 Christian Heim (RETIRED) gentoo-dev 2006-09-16 08:55:42 UTC
(In reply to comment #2)
> Hehe. Funny. Just when I re-emerged my test server with gcc 4.1.1 and manually
> fixed whowatch 1.5.2 to compile with gcc 4, I see this bug. :-)
> 
> Anyway, if you want to compile whowatch w/ gcc 4.1.1, just apply this patch:
> 
> ---
> --- process.c.orig      2006-09-05 14:10:27.000000000 +0300
> +++ process.c   2006-09-05 14:10:34.000000000 +0300
> @@ -77 +77 @@
> -               (struct process *) p->priv = z;
> +               p->priv = z;

I just commited an updated ebuild of whowatch-1.5.2 to the tree that includes your fix. Also treecleaner@g.o note that I took maintainership of the package!

Alec: Is FIXED the right solution for this bug ?
Comment 4 Janne Pikkarainen 2006-09-16 11:00:59 UTC
(In reply to comment #3)
> I just commited an updated ebuild of whowatch-1.5.2 to the tree that includes
> your fix. 

Thanks!
Comment 5 Wily Funk 2006-10-05 23:45:51 UTC
(In reply to comment #2)
> Hehe. Funny. Just when I re-emerged my test server with gcc 4.1.1 and manually
> fixed whowatch 1.5.2 to compile with gcc 4, I see this bug. :-)
> 
> Anyway, if you want to compile whowatch w/ gcc 4.1.1, just apply this patch:
> 
> ---
> --- process.c.orig      2006-09-05 14:10:27.000000000 +0300
> +++ process.c   2006-09-05 14:10:34.000000000 +0300
> @@ -77 +77 @@
> -               (struct process *) p->priv = z;
> +               p->priv = z;
> 

I can confirm this patch worked for me on my IBM eSeries x342 server. Thanks Janne!

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) III CPU family      1133MHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 05 Oct 2006 06:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo/"
LINGUAS=""
MAKEOPTS="-j4"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"