>>> Compiling source in /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib ... Configuring Makefiles for your system... Checking tree: nothing to do Building against OpenAIS Whitetank The following fence agents will be build on this system: apc ilo rsa rsb wti xvm zvm drac scsi xcat cpint rps10 ibmblade vixel sanbox2 egenera manual mcdata rackswitch vmware baytech ipmilan brocade bladecenter bullpap NOTE: xvm will build only if --enable_xen has been specified Completed Makefile configuration rm -rf *~* *.o *.a *.so *.so.* a.out *.po *.s *.d rm -rf core core.* .depend cscope.* *.orig *.rej rm -rf linux .*.o.cmd .*.ko.cmd *.mod.c .tmp_versions Module.symvers .*.o.d rm -rf libcman libcman_test rm -rf x86_64-pc-linux-gnu-gcc -O2 -pipe -Wall -I/var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/config -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DRELEASE_VERSION=\"2.02.00\" -fPIC -I/var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib -I/var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/../daemon -I/usr/include -c -o libcman.o /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c: In function 'cman_dispatch': /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c:468: error: 'PIPE_BUF' undeclared (first use in this function) /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c:468: error: (Each undeclared identifier is reported only once /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c:468: error: for each function it appears in.) /var/tmp/portage/sys-cluster/cman-lib-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c:468: warning: unused variable 'buf' make: *** [libcman.o] Error 1 * * ERROR: sys-cluster/cman-lib-2.02.00-r1 failed. Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25.1 x86_64) ================================================================= System uname: 2.6.25.1 x86_64 Dual-Core AMD Opteron(tm) Processor 2212 HE Timestamp of tree: Tue, 17 Jun 2008 20:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://216.165.129.134/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/" LANG="en_US" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://208.71.112.51/gentoo-portage" USE="X acl amd64 berkdb cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd unicode xorg zlib" 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" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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="vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
cman-lib
Aurora ~ # emerge --info Portage 2.2_rc1 (default-linux/x86/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r2 i686) ================================================================= System uname: Linux-2.6.24-gentoo-r2-i686-Pentium_III_-Katmai-with-glibc2.0 Timestamp of tree: Fri, 11 Jul 2008 07:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r4, 2.5.2-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://adelie.polymtl.ca/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="a52 aalib acl apache2 bcmath berkdb bzlib cli cpdflib cracklib crypt curl dba dbase divx4linux dri dv dvd fame flac flash fortran freetype ftp gd gd-external gdbm gpm iconv imap innodb isdnlog justify libcaca live lzo lzw-tiff mailwrapper matroska matrox mcal md5sum mhash midi mime ming mjpeg mmap mmx mng moznocompose moznoirc mudflap mysql ncurses nls nptl nptlonly openmp pam pcntl pcre perl posix postgres ppds pppd python readline real reflection rtc samba server session sharedmem sockets spl sse ssl sysvipc tcpd theora tiff tokenizer unicode x86 xanim xmlrpc xorg xpm xvid 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" APACHE2_MODULES="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 cgi cgid 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" 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="mga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I've added #include <linux/limits.h> to cman/lib/libcman.c And it works.
This relates to sys-cluster/cman-2.02.00-r1: sys-cluster/cman-2.02.00-r1/work/cluster-2.02.00/cman/lib/libcman.c sys-cluster/cman-2.02.00-r1/work/cluster-2.02.00/cman/daemon/cmanccs.c both need to #include <linux/limits.h> sys-cluster/cman-2.02.00-r1/work/cluster-2.02.00/cman/daemon/cmanccs.c:894: error: 'struct in6_addr' has no member named 'in6_u' I've commented it out, I don't use IPV6 so I can't be bothered to figure out how to properly fix it. in6_u is in linux/in6.h
Created attachment 165276 [details] `ebuild cman-2.02.00-r1.ebuild compile` output
I have tried this solution, but it doesn't work for me. here is what I did: ebuild cman-2.02.00-r1.ebuild fetch (then use vim to edit the two files in the archive) ebuild cman-2.02.00-r1.ebuild digest ebuild cman-2.02.00-r1.ebuild unpack ebuild cman-2.02.00-r1.ebuild clean ebuild cman-2.02.00-r1.ebuild compile back1 cman # emerge --info Portage 2.2_rc8 (default/linux/amd64/2008.0/server, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r7 x86_64) ================================================================= System uname: Linux-2.6.25-gentoo-r7-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-glibc2.3.2 Timestamp of tree: Mon, 08 Sep 2008 07:45:05 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62-r1 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="fr" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 apache2 bash-completion bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap lm_sensors mailwrapper midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl postgres pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype unicode vim-syntax xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="apm dummy fbdev vesa vga radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Looks fixed in latest version