Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204216 - sys-cluster/drbd-8.0.8 fails to compile due to stupid defines of types
Summary: sys-cluster/drbd-8.0.8 fails to compile due to stupid defines of types
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 21:39 UTC by Jesse Adelman
Modified: 2010-09-10 18:51 UTC (History)
1 user (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 Jesse Adelman 2008-01-03 21:39:50 UTC
Howdy. I had 8.0.7 installed, and just updated. I run stable, with drbd and drbd-kernel in /etc/portage/package.keywords. 

Log:

>>> Unpacking source...
>>> Unpacking drbd-8.0.8.tar.gz to /var/tmp/portage/sys-cluster/drbd-8.0.8/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-cluster/drbd-8.0.8/work/drbd-8.0.8 ...
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/var/tmp/portage/sys-cluster/drbd-8.0.8/work/drbd-8.0.8/drbd'
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/drbd-8.0.8/work/drbd-8.0.8/drbd'
make[1]: Entering directory `/var/tmp/portage/sys-cluster/drbd-8.0.8/work/drbd-8.0.8/user'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_scanner.o drbdadm_scanner.c
drbdadm_scanner.c: In function 'yy_get_next_buffer':
drbdadm_scanner.c:2006: warning: comparison between signed and unsigned
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_parser.o drbdadm_parser.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_main.o drbdadm_main.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdtool_common.o drbdtool_common.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.c
cp ../drbd/drbd_buildtag.c drbd_buildtag.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbd_buildtag.o drbd_buildtag.c
gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o
gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing   -c -o drbdmeta.o drbdmeta.c
In file included from /usr/include/asm/types.h:5,
                 from drbdtool_common.h:4,
                 from drbdmeta.c:51:
/usr/include/asm-x86_64/types.h:23: error: conflicting types for 'uint64_t'
/usr/include/gentoo-multilib/amd64/stdint.h:56: error: previous declaration of 'uint64_t' was here
drbdmeta.c: In function 'v07_validate_md':
drbdmeta.c:496: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'uint64_t'
drbdmeta.c: In function 'v08_validate_md':
drbdmeta.c:634: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'uint64_t'
drbdmeta.c: In function 'printf_bm':
drbdmeta.c:872: warning: format '%016lX' expects type 'long unsigned int', but argument 3 has type 'uint64_t'
drbdmeta.c:878: warning: format '%016lX' expects type 'long unsigned int', but argument 2 has type 'uint64_t'
drbdmeta.c: In function 'md_initialize_common':
drbdmeta.c:1376: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t'
drbdmeta.c: In function 'meta_dump_md':
drbdmeta.c:1750: warning: format '%016lX' expects type 'long unsigned int', but argument 2 has type 'long long unsigned int'
drbdmeta.c:1758: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'uint64_t'
drbdmeta.c:1763: warning: format '%016lX' expects type 'long unsigned int', but argument 2 has type 'uint64_t'
drbdmeta.c: In function 'check_for_existing_data':
drbdmeta.c:2211: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'uint64_t'
drbdmeta.c:2212: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'uint64_t'
drbdmeta.c: In function 'meta_read_dev_uuid':
drbdmeta.c:2441: warning: format '%016lX' expects type 'long unsigned int', but argument 2 has type 'uint64_t'
make[1]: *** [drbdmeta.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/drbd-8.0.8/work/drbd-8.0.8/user'
make: *** [tools] Error 2
 * 
 * ERROR: sys-cluster/drbd-8.0.8 failed.
 * Call stack:
 *           ebuild.sh, line 1701:  Called dyn_compile
 *           ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *           ebuild.sh, line   44:  Called src_compile
 *   drbd-8.0.8.ebuild, line   27:  Called die
 * The specific snippet of code:
 *      emake -j1 tools || die "compile problem"
 *  The die message:
 *   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/log/portage/sys-cluster:drbd-8.0.8:20080103-211212.log'.
 * 

emerge --info:

backup-sf-01-a ~ # emerge --info
Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Xeon(R) CPU E5345 @ 2.33GHz
Timestamp of tree: Thu, 03 Jan 2008 17:47:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.llarian.net/"
MAKEOPTS="-j9"     
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.namerica.gentoo.org/gentoo-portage"
USE="acl acpi amd64 bash-completion berkdb bzip2 cli cracklib crypt diskio fortran gdbm gpm iconv ipv6 lm_sensors logrotate mmx ncurses nls nonfsv4 nptl nptlonly openmp pam pcre perl python readline reflection session snmp spl sse sse2 ssl tcpd unicode vim-syntax 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Note also that the drbd-kernel-8.0.8 package compiled fine, but I'm masking that, too, until this is fixed.

Thanks! Please let me know if you need more info.
Comment 1 Jesse Adelman 2008-01-03 22:23:30 UTC
Ah, based on Jakub's assignment (thanks), this might be useful? During the same update run, I updated to gcc-config-1.4.0-r4 from 1.3.16:

backup-sf-01-a ~ # genlop -t gcc-config
 * sys-devel/gcc-config

     Mon Nov 19 22:07:07 2007 >>> sys-devel/gcc-config-1.3.16
       merge time: 5 seconds.

     Tue Nov 20 00:28:28 2007 >>> sys-devel/gcc-config-1.3.16
       merge time: 5 seconds.

     Thu Jan  3 16:09:42 2008 >>> sys-devel/gcc-config-1.4.0-r4
       merge time: 6 seconds.

backup-sf-01-a ~ #
Comment 2 SpanKY gentoo-dev 2008-01-03 22:23:54 UTC
drbd is broken ... if it does stupid stuff like:
user/drbd_endian.h:
#define u64 uint64_t
#define s64 int64_t
#define u32 uint32_t
#define s32 int32_t
#define u16 uint16_t
#define __u64 uint64_t
#define __u32 uint32_t
#define __u16 uint16_t

it gets to pick up the pieces
Comment 3 Jesse Adelman 2008-01-06 21:15:09 UTC
They forgot an Include. Here's their patch: http://git.drbd.org/?p=drbd-8.0.git;a=commitdiff;h=47782c8360ad640fdb60d0ef20615e15c876ba97

I don't know the upstream upcoming release schedule, but since .7 -> .8 is not a "critical" update for most people it's probably just as well to wait for the "official" fix, IMO.
Comment 4 jergendutch 2008-01-28 10:09:50 UTC
How did drbd-8.0.8 get marked stable?
Comment 5 hexa 2008-02-04 18:00:10 UTC
I have the same problem. Just updated the whole system and it didn't want to compile.
Will manually try to patch file using instructions below.

(In reply to comment #3)
> They forgot an Include. Here's their patch:
> http://git.drbd.org/?p=drbd-8.0.git;a=commitdiff;h=47782c8360ad640fdb60d0ef20615e15c876ba97
> 
> I don't know the upstream upcoming release schedule, but since .7 -> .8 is not
> a "critical" update for most people it's probably just as well to wait for the
> "official" fix, IMO.
> 

Comment 6 Wolfram Schlich (RETIRED) gentoo-dev 2008-02-07 23:55:40 UTC
drbd-8.0.10 was just released (8.0.9 already has a fix for
the bug mentioned herein)...

feel free to try it out: http://overlays.gentoo.org/dev/wschlich/changeset/108
Comment 7 hexa 2008-02-13 15:22:49 UTC
(In reply to comment #6)
> drbd-8.0.10 was just released (8.0.9 already has a fix for
> the bug mentioned herein)...
> 
> feel free to try it out: http://overlays.gentoo.org/dev/wschlich/changeset/108
> 

How can i install drbd 8.0.10 using portage? Sorry for writing this here, please just steer me into the right direction.
Comment 8 Wolfram Schlich (RETIRED) gentoo-dev 2008-02-13 15:48:35 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > drbd-8.0.10 was just released (8.0.9 already has a fix for
> > the bug mentioned herein)...
> > 
> > feel free to try it out: http://overlays.gentoo.org/dev/wschlich/changeset/108
> > 
> 
> How can i install drbd 8.0.10 using portage? Sorry for writing this here,
> please just steer me into the right direction.

http://www.gentoo.org/proj/en/overlays/userguide.xml

after having added the overlay 'wschlich-testing':
$ echo =sys-kernel/drbd-8.0.11 >> /etc/portage/package.keywords
$ echo =sys-kernel/drbd-kernel-8.0.11 >> /etc/portage/package.keywords
$ emerge -avt =sys-kernel/drbd-8.0.11

yeah, 8.0.11 has just been released :) have fun!
Comment 9 Christian Zoffoli (RETIRED) gentoo-dev 2008-03-17 23:02:40 UTC
already fixed in cvs