linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Problems at cross-compiling LVM2-2.02.52
@ 2009-09-22 12:16 John Taylor
  2009-09-22 12:33 ` Alasdair G Kergon
  2009-09-22 12:47 ` Alasdair G Kergon
  0 siblings, 2 replies; 8+ messages in thread
From: John Taylor @ 2009-09-22 12:16 UTC (permalink / raw)
  To: linux-lvm

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-22 13:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-22 12:16 [linux-lvm] Problems at cross-compiling LVM2-2.02.52 John Taylor
2009-09-22 12:33 ` 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

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).