"dmraid -r" shows raid devices, but under /dev/mapper there is only one device without number and my root partition obviosly can't be found. What could be wrong?

Code: Select all
#changing this values might involve editing make_busybox()
BUSYBOX_URI_PREFIX="http://www.busybox.net/downloads/"
BUSYBOX_TARBALL="busybox-0.60.5.tar.bz2"
BUSYBOX_DIR="busybox-0.60.5"
#changing this values might involve editing make_devicemapper()
DEVICEMAPPER_URI_PREFIX="ftp://sources.redhat.com/pub/dm/"
DEVICEMAPPER_TARBALL="device-mapper.1.01.05.tgz"
DEVICEMAPPER_DIR="device-mapper.1.01.05"
#changing this values might involve editing make_dmraid()
#please, don't use older versions of dmraid with this version of dmraidinitrd
#DMRAID_URI_PREFIX="http://people.redhat.com/~heinzm/sw/dmraid/src/"
DMRAID_URI_PREFIX="http://people.redhat.com/~heinzm/sw/dmraid/tst/"
#DMRAID_TARBALL="dmraid-1.0.0.rc10.tar.bz2"
DMRAID_TARBALL="dmraid-1.0.0.rc11-pre1.tar.bz2"
DMRAID_DIR="dmraid/1.0.0.rc11"

Code: Select all
# Copyright 2005-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/dmraid-1.0.0_rc8-r1.ebuild,v 1.1 2005/07/28 02:24:07 solar Exp $
inherit linux-info flag-o-matic
DESCRIPTION="dmraid (Device-mapper RAID tool and library)"
HOMEPAGE="http://people.redhat.com/~heinzm/sw/dmraid/"
#SRC_URI="http://people.redhat.com/~heinzm/sw/dmraid/src/${P/_/.}.tar.bz2"
# Temporarily set to testing prerelease source URI
SRC_URI="http://people.redhat.com/~heinzm/sw/dmraid/tst/dmraid-1.0.0.rc11-pre1.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="static selinux"
DEPEND="sys-fs/device-mapper
selinux? ( sys-libs/libselinux )
selinux? ( sys-libs/libsepol )"
S=${WORKDIR}/${PN}/${PV/_/.}
pkg_setup() {
if kernel_is lt 2 6; then
ewarn "You are using a kernel < 2.6"
ewarn "DMraid uses recently introduced Device-Mapper features."
ewarn "These might be unavailable in the kernel you are running now."
fi
}
#src_unpack() {
# unpack ${A}
# # Made a new patch for rc11, but removal of asr created other problems with this version (rc11-pre1)
# epatch ${FILESDIR}/${PN}-1.0.0-rc11-asr-make.patch
# cd ${S}
#}
src_compile() {
local myconf=
#myconf="${myconf} $(use_enable static static_link)"
if use static; then
myconf="${myconf} --enable-static_link"
if use selinux; then
ewarn "NOTE - compiling with libselinux / libsepol is not currently possible for static"
fi
myconf="${myconf} --disable-libsepol --disable-libselinux"
else
myconf="${myconf} --enable-shared_lib"
myconf="${myconf} $(use_enable selinux libselinux)"
myconf="${myconf} $(use_enable selinux libsepol)"
fi
#inlining doesnt seem to work for dmraid
filter-flags -fno-inline
./configure ${myconf} || die "Failed configure"
emake || die "emake failed"
}
src_install() {
einstall DESTDIR=${D} || die "einstall failed"
dolib.a lib/libdmraid.a
# no header file is installed by make install
insinto /usr/include
newins include/dmraid.h libdmraid.h
dodoc CHANGELOG README TODO KNOWN_BUGS doc/*
}
pkg_postinst() {
echo
einfo "For booting Gentoo from Device-Mapper RAID you can use Genkernel."
echo
einfo "Genkernel will generate the kernel and the initrd with a staticly linked dmraid binary:"
einfo "emerge -av sys-kernel/genkernel"
einfo "genkernel --dmraid --udev all"
echo
ewarn "DMraid should be safe to use, but no warranties can be given"
echo
ebeep
}
Code: Select all
format/ataraid/asr.o: In function `register_asr':
asr.c:(.text+0x1c40): multiple definition of `register_asr'
format/ataraid/asr.o:asr.c:(.text+0x1c40): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../lib/libdmraid.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/dmraid-1.0.0_rc11/work/dmraid/1.0.0.rc11/lib'
make: *** [lib] Error 2
!!! ERROR: sys-fs/dmraid-1.0.0_rc11 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
dmraid-1.0.0_rc11.ebuild, line 58: Called die
!!! emake failed


http://www.gentoo.org/doc/en/handbook/h ... t=2&chap=2rekr wrote:I get the same errors when trying to use the ebuild for rc11 what exactly does:
USE="static" than it will work.
mean and where do I do it?