Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486186 - sys-cluster/heartbeat-3.0.5 - ucast.c:468:6: error: conflicting types for 'i'
Summary: sys-cluster/heartbeat-3.0.5 - ucast.c:468:6: error: conflicting types for 'i'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 13:39 UTC by Zdravko Spoljar
Modified: 2014-06-16 09:56 UTC (History)
1 user (show)

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


Attachments
patch to fix compilation (fix-usage-of-SO_REUSEPORT-in-ucast-sockets.patch,4.24 KB, patch)
2014-05-25 16:58 UTC, Timothy Jones
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zdravko Spoljar 2013-09-27 13:39:49 UTC
compile stop with:

<cut>
ucast.c: In function 'HB_make_send_sock':
ucast.c:468:6: error: conflicting types for 'i'
ucast.c:465:15: note: previous declaration of 'i' was here
ucast.c:502:11: error: request for member 'ifr_ifrn' in something not a structure or union
ucast.c:508:7: error: request for member 'ifr_ifrn' in something not a structure or union
ucast.c:513:5: error: request for member 'ifr_ifrn' in something not a structure or union
gmake[4]: *** [ucast.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/work/Heartbeat-3-0-STABLE-3.0.5/lib/plugins/HBcomm'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/work/Heartbeat-3-0-STABLE-3.0.5/lib/plugins/HBcomm'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/work/Heartbeat-3-0-STABLE-3.0.5/lib/plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/work/Heartbeat-3-0-STABLE-3.0.5/lib'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: sys-cluster/heartbeat-3.0.5-r1::gentoo failed (compile phase):
 *   died running emake, base_src_make
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 5719:  Called base_src_compile
 *   environment, line 1234:  Called base_src_make
 *   environment, line 1272:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 * 
 * If you need support, post the output of `emerge --info '=sys-cluster/heartbeat-3.0.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/heartbeat-3.0.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/work/Heartbeat-3-0-STABLE-3.0.5'
 * S: '/var/tmp/portage/sys-cluster/heartbeat-3.0.5-r1/work/Heartbeat-3-0-STABLE-3.0.5'

>>> Failed to emerge sys-cluster/heartbeat-3.0.5-r1, Log file:



maybe this link from debian helps to add patch to restore compilation:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713662

Reproducible: Always

Steps to Reproduce:
1. emerge -v sys-cluster/heartbeat
2.
3.
Actual Results:  
compile stop

Expected Results:  
emerged package

Portage 2.2.1 (default/linux/amd64/13.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.10.9 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.9-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8040108 total,   5117888 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 27 Sep 2013 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.254.71/gentoo-portage"
USE="X Xaw3d aac acl acpi ads aim alsa amd64 apache2 apng audiofile avi berkdb bitmap-fonts btrfs bzip2 cairo calendar cdparanoia cdr cli cracklib crypt css ctype cups curl cxx dbus dbx device-mapper dia dio divx4linux dlz dot dri dvd dvdr dvdread dxr3 encode ethreal evo examples exif fbcon fbdev ffmpeg fglrx flac flatfile fontconfig fortran fpm freetds ftp fuse gb gcj gd gdbm gif gimp gimpprint git glitz glut gnutls gpm gs gtk gtk2 gudev hwdb iconv icq idn ieee1394 imagemagick imap imlib inifile inkjar innodb jabber java java6 javamail javascript jbig jpeg jpeg2k junit kde laptop latex lcms ldap lesstif libg++ libkms libwww lvm mad maildir mbox mcal mikmod mmap mmx mng mod modules motif mozilla mozsvg mp3 mpeg msn mudflap musepack mysql ncurses nfs nfsv3 nfsv4 nls nocd nptl nsplugin ogg openal opengl openmp openssl oscar pam pcmcia pcre pdf pdo pear perl phonon php plotutils png policykit postgres postscript python qt qt3support qt4 quicktime raw readline recode samba scanner session sharedmem slp sndfile snmp soap sockets source spell sql sqlite sqlite3 sse sse2 ssl stroke subversion svg sysvipc tcpd tex threads tiff truetype truetype-fonts type1-fonts unicode usb uudeview vcd visualization vorbis webkit wifi win32codecs wmf xcb xfs xine xinerama xinetd xml xml2 xmlreader xmlrpc xmlrps xmlwriter xmp xorg xorgmodule xpm xrandr xslt xulrunner xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="asis remoteip ratelimit proxy_fcgi slotmem_shm lbmethod_byrequests lbmethod_heartbeat unixd access_compat actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="braindump flow karbon kexi krita sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US hr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia v4l vga fbdev" XTABLES_ADDONS="tarpit"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gaetan 2013-12-09 17:04:25 UTC
Same here. Any update on this issue ?
Comment 2 Timothy Jones 2014-05-25 16:57:55 UTC
This bug has to do with both SO_REUSEPORT and SO_BINDTODEVICE being set in recent headers (/usr/include/asm-generic/socket.h).

Please see comments #54 and #55 from here:
https://bugzilla.redhat.com/show_bug.cgi?id=1028127

And related patch here:
http://hg.linux-ha.org/heartbeat-STABLE_3_0/rev/37f57a36a2dd

I have successfully compiled the heartbeat with this patch.
Comment 3 Timothy Jones 2014-05-25 16:58:58 UTC
Created attachment 377626 [details, diff]
patch to fix compilation
Comment 4 Timothy Jones 2014-06-05 15:23:24 UTC
I am starting to smell some bit rot here...
Comment 5 Timothy Jones 2014-06-12 20:37:35 UTC
Any particular reason why this hasn't been fixed yet? The issue has been confirmed by other distros (Red Hat, Debian) and we have a patch that fixes it. I've been running the heartbeat with this patch for over a month now with no issues.
Comment 6 Ultrabug gentoo-dev 2014-06-16 09:56:58 UTC
(In reply to Timothy Jones from comment #5)
> Any particular reason why this hasn't been fixed yet? The issue has been
> confirmed by other distros (Red Hat, Debian) and we have a patch that fixes
> it. I've been running the heartbeat with this patch for over a month now
> with no issues.

Lack of time on my part.

Thanks a lot to everyone involved here for your patience, I've bumped the ebuild with the patch.

+*heartbeat-3.0.5-r2 (16 Jun 2014)
+
+  16 Jun 2014; Ultrabug <ultrabug@gentoo.org> -heartbeat-3.0.5-r1.ebuild,
+  +heartbeat-3.0.5-r2.ebuild, +files/3.0.5-fix_ucast.patch:
+  fix #486186 thx to Zdravko Spoljar and Timothy Jones, drop broken
+