Build failure on NetBSD
Hi,
Trunk does not build on NetBSD (it's 5.99.41 in case that matters).
$ (./autogen.sh ; ./configure ; gmake) > /tmp/grub-build.log 2>&1
gives, at the end of the log:
grub-core/kern/emu/hostdisk.c:102:27: error: libdevmapper.h: No such file or directory grub-core/kern/emu/misc.c:46:27: error: libdevmapper.h: No such file or directory
gmake: *** [libgrub.pp] Error 1
Grégoire
Quoted 6 lines · Grégoire Sutre
Hi,
Trunk does not build on NetBSD (it's 5.99.41 in case that matters).
$ (./autogen.sh ; ./configure ; gmake) > /tmp/grub-build.log 2>&1
Quoted 8 lines
gives, at the end of the log:
grub-core/kern/emu/hostdisk.c:102:27: error:libdevmapper.h: No such file or directorygrub-core/kern/emu/misc.c:46:27: error:libdevmapper.h: No such file or directory
gmake: *** [libgrub.pp] Error 1
This means that HAVE_DEVICE_MAPPER is defined. It shouldn't be. Can you post config.log?
Quoted 7 lines
Grégoire
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko
This means that
HAVE_DEVICE_MAPPERis defined. It shouldn't be. Can you post config.log?
Seems like this log requires compression to go through...
Grégoire
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko
This means that
HAVE_DEVICE_MAPPERis defined. It shouldn't be. Can you post config.log?
(Too big for the list.)
Grégoire
Quoted 8 lines · Grégoire Sutre
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko
This means that
HAVE_DEVICE_MAPPERis defined. It shouldn't be. Can you post config.log?(Too big for the list.)
Looks like you actualy do have libdevmapper (I'm surprised it exists for NetBSD) but not the headers. We should check for headers too.
Quoted 7 lines
Grégoire
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 2 lines
Looks like you actualy do have libdevmapper (I'm surprised it exists for NetBSD) but not the headers.
I'm not sure what it's for (I don't use LVM). The utility dmsetup(8) (ported from Linux?) requires it.
Quoted 1 line
We should check for headers too.
Attached patch adds this.
Grégoire
=== modified file 'ChangeLog'
ChangeLog +4 -0
@@ -1,3 +1,7 @@ +2011-01-06 Grégoire Sutre <[email protected]> + + * configure.ac: Check for libdevmapper header. + 2011-01-06 Colin Watson <[email protected]> * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
=== modified file 'configure.ac'
configure.ac +6 -0
@@ -867,6 +867,12 @@ if test x"$enable_device_mapper" = xno ; fi if test x"$device_mapper_excuse" = x ; then + # Check for device-mapper header. + AC_CHECK_HEADER([libdevmapper.h], [], + [device_mapper_excuse="need libdevmapper header"]) +fi + +if test x"$device_mapper_excuse" = x ; then # Check for device-mapper library. AC_CHECK_LIB([devmapper], [dm_task_create], [], [device_mapper_excuse="need devmapper library"])
Quoted 3 lines · Grégoire Sutre
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko
This means that
HAVE_DEVICE_MAPPERis defined. It shouldn't be. Can you post config.log?
On this system, there is a /lib/libdevmapper.so but no libdevmapper.h. Afaics, configure does not check for libdevmapper.h.
Grégoire
Quoted 11 lines · Grégoire Sutre
Trunk does not build on NetBSD (it's 5.99.41 in case that matters).
$ (./autogen.sh ; ./configure ; gmake) > /tmp/grub-build.log 2>&1gives, at the end of the log:
grub-core/kern/emu/hostdisk.c:102:27: error:libdevmapper.h: No such file or directorygrub-core/kern/emu/misc.c:46:27: error:libdevmapper.h: No such file or directory
gmake: *** [libgrub.pp] Error 1
Can you post a configure log? This indicates that HAVE_DEVICE_MAPPER was defined by configure.
Signature · 1 line
Colin Watson [[email protected]]