Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198257 - sys-cluster/heartbeat-2.0.{7-r2,8} fails on ipmilan.c (-Werror)
Summary: sys-cluster/heartbeat-2.0.{7-r2,8} fails on ipmilan.c (-Werror)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2007-11-06 11:53 UTC by Tais P. Hansen
Modified: 2010-09-10 18:51 UTC (History)
3 users (show)

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


Attachments
Make warnings non-fatal during compilation (nonfatal-warnings.diff,611 bytes, patch)
2008-01-28 08:18 UTC, Ilya Volynets (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tais P. Hansen 2007-11-06 11:53:37 UTC
Log:

creating ibmhmc.la
(cd .libs && rm -f ibmhmc.la && ln -s ../ibmhmc.la ibmhmc.la)
if /bin/sh ../../../libtool --tag=CC  --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../linux-ha -I../../../include -I../../../include -I../../../include -I../../../linux-ha -I../../../linux-ha -I../../../libltdl -I../../../libltdl  -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/libxml2 -O2 -mtune=i686 -pipe  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -DST_TEXTDOMAIN='"stonith"' -DSTONITH_MODULES='""' -DLOCALEDIR='"/usr/share/locale"'               -O2 -mtune=i686 -pipe  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror  -ggdb3 -funsigned-char -MT ipmilan.lo -MD -MP -MF ".deps/ipmilan.Tpo" -c -o ipmilan.lo ipmilan.c; \
        then mv -f ".deps/ipmilan.Tpo" ".deps/ipmilan.Plo"; else rm -f ".deps/ipmilan.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../linux-ha -I../../../include -I../../../include -I../../../include -I../../../linux-ha -I../../../linux-ha -I../../../libltdl -I../../../libltdl -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -O2 -mtune=i686 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -DST_TEXTDOMAIN=\"stonith\" -DSTONITH_MODULES=\"\" -DLOCALEDIR=\"/usr/share/locale\" -O2 -mtune=i686 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -funsigned-char -MT ipmilan.lo -MD -MP -MF .deps/ipmilan.Tpo -c ipmilan.c  -fPIC -DPIC -o .libs/ipmilan.o
cc1: warnings being treated as errors
ipmilan.c: In function 'ipmilan_set_config':
ipmilan.c:390: warning: ISO C90 forbids mixed declarations and code
gmake[4]: *** [ipmilan.lo] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-2.0.7-r2/work/heartbeat-2.0.7/lib/plugins/stonith'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-2.0.7-r2/work/heartbeat-2.0.7/lib/plugins/stonith'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-2.0.7-r2/work/heartbeat-2.0.7/lib/plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-2.0.7-r2/work/heartbeat-2.0.7/lib'
make: *** [all-recursive] Error 1
 *
 * ERROR: sys-cluster/heartbeat-2.0.7-r2 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   heartbeat-2.0.7-r2.ebuild, line 69:   Called die
 *
 * compile problem
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-cluster/heartbeat-2.0.7-r2/temp/build.log'.
 *

Emerge info:

Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r7 i686)
=================================================================
System uname: 2.6.22-gentoo-r7 i686 unknown
Timestamp of tree: Wed, 01 Aug 2007 16:30:01 +0000
ccache version 2.4 [disabled]
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j15"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap libg++ midi mng mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session snmp spl ssl tcpd threads truetype truetype-fonts type1-fonts unicode vhosts x86 xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ilya Volynets (RETIRED) gentoo-dev 2008-01-28 08:18:47 UTC
Created attachment 141965 [details, diff]
Make warnings non-fatal during compilation

Heartbeat build system is rather braindamaged, in that it
silently enables features based on dependency presence,
and doesn't provide any way of disabling them.

For those who have OpenIPMI installed, ipmilan stonith
module, which doesn't compile without warnings, will be
enabled. Attached patch makes warnings non-fatal, so that
compilation works out.
Comment 2 Disaster 2008-04-29 07:28:38 UTC
same problem here (x86), and the patch solves it :-)
Comment 3 BigBug 2008-09-01 08:33:35 UTC
Please take look at bug 231291.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-02 13:57:49 UTC
I've fixed this part with Ilya's patch; goes a bit further although not entirely good.