dcantrell / pyparted

Python bindings for GNU parted (libparted)
GNU General Public License v2.0
85 stars 42 forks source link

error: ‘PED_PARTITION_CHROMEOS_KERNEL’ #71

Closed 0xFF1E071F closed 4 years ago

0xFF1E071F commented 4 years ago

I am trying to build the latest version? 3.11.5 I got this error:

x86_64-pc-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/var/pisi/python3-3.8.1-8/work/temp/include -O3 -mtune=generic -march=x86-64 -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC -mtune=generic -march=x86-64 -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC -fPIC -DPYPARTED_VERSION="3.11.5" -Iinclude -I/usr/include/python3.8 -c src/_pedmodule.c -o build/temp.linux-x86_64-3.8/src/_pedmodule.o
src/_pedmodule.c: In function ‘PyInit__ped’:
src/_pedmodule.c:664:65: error: ‘PED_PARTITION_CHROMEOS_KERNEL’ undeclared (first use in this function)
  664 |         PyModule_AddIntConstant(m, "PARTITION_CHROMEOS_KERNEL", PED_PARTITION_CHROMEOS_KERNEL);
      |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/_pedmodule.c:664:65: note: each undeclared identifier is reported only once for each function it appears in
src/_pedmodule.c:666:58: error: ‘PED_PARTITION_BLS_BOOT’ undeclared (first use in this function); did you mean ‘PED_PARTITION_BOOT’?
  666 |         PyModule_AddIntConstant(m, "PARTITION_BLS_BOOT", PED_PARTITION_BLS_BOOT);
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~
      |                                                          PED_PARTITION_BOOT
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

Am i missing some kind of dependency?

dcantrell commented 4 years ago

No, that was a bug in that release (which I made yesterday). All of that is now conditionalized and should work on your system. Can you try to build the master branch? If it works for you, I'll tag a new release.

0xFF1E071F commented 4 years ago

it is perfectly working

CLOSE 71

takov751 commented 4 years ago

Works. same on Ubuntu 20.04

0xFF1E071F commented 4 years ago

@dcantrell we are waiting for the new tag

dcantrell commented 4 years ago

v3.11.6 released

blue-devil commented 4 years ago

v3.11.6 work well on PisiLinux