Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155747 - Can't install sys-cluster/drbd-0.7.21
Summary: Can't install sys-cluster/drbd-0.7.21
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
: 155748 (view as bug list)
Depends on:
Blocks: kernel-2.6.19
  Show dependency tree
 
Reported: 2006-11-20 02:49 UTC by Francesco Saverio Proto
Modified: 2010-09-10 19:00 UTC (History)
2 users (show)

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


Attachments
remove path autodetection (drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch,415 bytes, patch)
2006-12-29 10:19 UTC, Marshal Newrock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Saverio Proto 2006-11-20 02:49:58 UTC
I can't emerge drdb, but it works great if I compile manually the tarball.
Maybe is a bug in the portage?
Here is my cut and paste from the console:


testing-gentoo ~ # emerge -v drbd

...

>>> Compiling source in /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21 ...
 *
 * Your kernel-sources in /usr/src/linux-2.6.18-gentoo-r1 must be properly configured
 * If otherwise -> build will fail.
 *
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd'
make[1]: Leaving directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd'
make[1]: Entering directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/user'
gcc -c -Wall -I../drbd   -c -o drbdsetup.o drbdsetup.c
gcc -c -Wall -I../drbd   -c -o ../drbd/drbd_buildtag.o ../drbd/drbd_buildtag.c
gcc -o drbdsetup drbdsetup.o ../drbd/drbd_buildtag.o
bison -d -o drbdadm_parser.c drbdadm_parser.y
drbdadm_parser.y:479.19-480.66: warning: unused value: $3
drbdadm_parser.y:481.19-482.71: warning: unused value: $3
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -c -Wall -I../drbd   -c -o drbdadm_scanner.o drbdadm_scanner.c
drbdadm_scanner.c:33090: warning: 'yyunput' defined but not used
gcc -c -Wall -I../drbd   -c -o drbdadm_parser.o drbdadm_parser.c
gcc -c -Wall -I../drbd   -c -o drbdadm_main.o drbdadm_main.c
gcc -c -Wall -I../drbd   -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.o ../drbd/drbd_buildtag.o
make[1]: Leaving directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/user'
make[1]: Entering directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/scripts'
make[1]: Entering directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/documentation'
To (re)make the documentation: make doc
make[1]: Leaving directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/documentation'
make[1]: Entering directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd'

    Calling toplevel makefile of kernel source tree, which I believe is in
    KDIR=/usr/src/linux

test -f ../scripts/adjust_drbd_config_h.sh && \
         KDIR=/usr/src/linux /bin/sh ../scripts/adjust_drbd_config_h.sh

  Using unmodified drbd_config.h

make -C /usr/src/linux SUBDIRS=/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd  modules
make[2]: Entering directory `/usr/src/linux-2.6.18-gentoo-r1'
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_sizeof_sanity_check.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_buildtag.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_bitmap.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_fs.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_proc.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_worker.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_receiver.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_req.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_actlog.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/lru_cache.o
  CC [M]  /var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.o
/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.c:52:35: error: linux/devfs_fs_kernel.h: No such file or directory
/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.c: In function 'drbd_cleanup':
/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.c:1698: warning: implicit declaration of function 'devfs_remove'
/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.c: In function 'drbd_init':
/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.c:1794: warning: implicit declaration of function 'devfs_mk_dir'
/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.c:1817: error: 'struct gendisk' has no member named 'devfs_name'
make[3]: *** [/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd/drbd_main.o] Error 1
make[2]: *** [_module_/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.18-gentoo-r1'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/var/tmp/portage/drbd-0.7.21/work/drbd-0.7.21/drbd'
make: *** [all] Error 2

!!! ERROR: sys-cluster/drbd-0.7.21 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  drbd-0.7.21.ebuild, line 35:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.

testing-gentoo ~ #

testing-gentoo ~ # emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 15 Nov 2006 12:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
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.60
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
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="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LINGUAS="it"
MAKEOPTS=""
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 arts bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd extensions fam firefox fortran gdbm gif gpm graphviz gstreamer hal iconv input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java jpeg kernel_linux l7filter ldap libg++ linguas_it mad mikmod mp3 mpeg mysql ncurses nls nptl nptlonly ogg oss pam pcre perl php png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl swat tcpd tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2 video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis win32codecs xml xorg xv zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

testing-gentoo ~ #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-20 03:48:57 UTC
*** Bug 155748 has been marked as a duplicate of this bug. ***
Comment 2 Nicola 2006-12-24 08:22:36 UTC
same here with 0.7.22,

please fix,

thanks
Nicola
Comment 3 Marshal Newrock 2006-12-29 10:16:11 UTC
I found this on the drbd mailing list:

http://members.home.nl/maarten/drbd-0.7.22-2.6.19.patch

If you are using a 2.6.19 kernel and installing drbd-0.7.22, then install the file listed above and add the src_compile below to the ebuild.

I also found that I had to patch the adjust_drbd_config_h.sh, as it was attempting to autodetect paths, and failing.  Patch is attached to this bug.

src_unpack() {
       unpack ${A}
       epatch "${FILESDIR}/drbd-0.7.22-2.6.19.patch"
       epatch "${FILESDIR}/drbd-0.7.22-scripts.adjust_drbd_config_h.sh.patch"
}
Comment 4 Marshal Newrock 2006-12-29 10:19:40 UTC
Created attachment 104942 [details, diff]
remove path autodetection
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2007-01-14 23:12:15 UTC
patch in comment #3 looks good, please fix in stable tree ASAP
Comment 6 Nicola 2007-01-31 12:27:26 UTC
0.7.23 is available please bump
Comment 7 Christian Zoffoli (RETIRED) gentoo-dev 2007-02-05 00:12:58 UTC
Fixed in CVS.
Sorry for the delay that was a bad period.