From: John Taylor <pi00100100@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Problems at cross-compiling LVM2-2.02.52
Date: Tue, 22 Sep 2009 14:16:16 +0200 [thread overview]
Message-ID: <c9048c0a0909220516o23075a6h88111b4f42df3039@mail.gmail.com> (raw)
Hello,
I have some problems at cross-compiling LVM2-2.02.52 (latest release).
The configure argument list is: --prefix=/usr
--build=i486-unknown-linux-gnu --host=x86_64-unknown-linux-gnu
--target=x86_64-unknown-linux-gnu --disable-nls. First of all, I
noticed I can't build LVM2 from a directory different than that where
I extracted the source tarball, because I get the following error when
running make:
make -C doc device-mapper
make[1]: Entering directory `/mnt/clfs/sources/lvm2-build/doc'
Makefile:21: ../../LVM2-2.02.52/make.tmpl: No such file or directory
make[1]: *** No rule to make target `../../LVM2-2.02.52/make.tmpl'. Stop.
make[1]: Leaving directory `/mnt/clfs/sources/lvm2-build/doc'
make: *** [doc.device-mapper] Error 2
Even when building from the source directory, I get the following error message:
x86_64-unknown-linux-gnu-gcc -o dmsetup dmsetup.o -fPIC -Wall -Wundef
-Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
-Wformat-security -O2 -Wl,--export-dynamic -L../libdm -L../lib \
-L../libdm -ldevmapper -lrt -ldl -lncurses
../libdm/libdevmapper.so: undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/LVM2-2.02.52/tools'
make: *** [tools.device-mapper] Error 2
Don't know if it the right way to proceed, but I managed to fix this
by adding ac_cv_func_malloc_0_nonnull=yes to the configure argument
list. Despite of this make install now fails with:
Installing example.conf as /mnt/clfs/etc/lvm/lvm.conf
/usr/bin/install: cannot change ownership of
`/mnt/clfs/etc/lvm/lvm.conf': Operation not permitted
make[1]: *** [install_lvm2] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/LVM2-2.02.52/doc'
make: *** [doc.install] Error 2
Of course I can fix this error by running make install as root, but
since I'm not installing in the host system (DESTDIR=/mnt/clfs), I'd
like to run this command as a user. I suggest to add a
--disable-makeinstall-chown configure option, as util-linux-ng package
do.
What do you think?
Thanks.
next reply other threads:[~2009-09-22 12:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-22 12:16 John Taylor [this message]
2009-09-22 12:33 ` [linux-lvm] Problems at cross-compiling LVM2-2.02.52 Alasdair G Kergon
2009-09-22 12:40 ` John Taylor
2009-09-22 12:47 ` Alasdair G Kergon
2009-09-22 13:04 ` John Taylor
2009-09-22 13:11 ` Alasdair G Kergon
2009-09-22 13:23 ` John Taylor
2009-09-22 13:40 ` Alasdair G Kergon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9048c0a0909220516o23075a6h88111b4f42df3039@mail.gmail.com \
--to=pi00100100@gmail.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).