[parted-devel] parted-2.0.136-a782 won't compile

Patrick Verner exodusrobot at yahoo.com
Sun Dec 13 02:50:38 UTC 2009


I downloaded http://meyering.net/parted/parted-2.0.136-a782.tar.xz and tried to compile it on Slackware-13.0. I get this error:

make[3]: Entering directory `/sources/x/parted-2.0.136-a782/libparted'
Makefile:1035: warning: overriding commands for target `linux.lo'
Makefile:1027: warning: ignoring old commands for target `linux.lo'
  CC       debug.lo
  CC       architecture.lo
  CC       device.lo
  CC       exception.lo
  CC       filesys.lo
  CC       libparted.lo
  CC       timer.lo
  CC       unit.lo
  CC       disk.lo
  CC       geom.lo
  CC       constraint.lo
  CC       natmath.lo
  CC       linux.lo
cc1: warnings being treated as errors
arch/linux.c: In function '_dm_maptype':
arch/linux.c:440: error: implicit declaration of function 'dm_task_set_major_minor'
make[3]: *** [linux.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/sources/x/parted-2.0.136-a782/libparted'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/x/parted-2.0.136-a782/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/x/parted-2.0.136-a782'
make: *** [all] Error 2
bash-3.1#

It looks like a #define might be missing from libparted/arch/linux.h or something. Just a wild guess...

This is what I tried to compile it with:
./configure --prefix=/usr --without-readline

Adding '--disable-device-mapper' allows it to compile without error.

Patrick Verner
partedmagic.com


      



More information about the parted-devel mailing list