libtool: link: x86_64-pc-linux-gnu-gcc -W -Wabi -Waddress -Waggressive-loop-optimizations -Wall -Warray-bounds -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wenum-compare -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-local-addr -Wreturn-type -Wsequence-point -Wsizeof-pointer-memaccess -Wstack-protector -Wstrict-aliasing -Wstrict-overflow -Wstrict-prototypes -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-macros -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc -Wno-missing-field-initializers -Wno-unused-parameter -Wno-missing-field-initializers -fdiagnostics-show-option -Wframe-larger-than=10000 -O2 -pipe -march=native -Wall -fno-strict-overflow -Wno-strict-overflow -Wl,-O1 -Wl,--as-needed -o .libs/create-disk create_disk-create-disk.o ../src/.libs/libguestfs.so -lpcre -lmagic -lvirt -lxml2 -lselinux -lyajl -lfuse -pthread ../src/.libs/libguestfs.so: undefined reference to `major' ----------------------------------------------------------------- This is an unstable amd64 chroot image (named plasma-abi32+64_20170216-195507) at a hardened host acting as a tinderbox. ----------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-5.4.0 * llvm-config: 3.9.1 Available Python interpreters, in order of preference: [1] python3.4 [2] python3.5 (fallback) [3] python2.7 (fallback) [4] jython2.7 (fallback) Available Ruby profiles: [1] ruby21 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 7.2.6.8 [icedtea-bin-7] 2) IcedTea JDK 3.3.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-7 system-vm [2] icedtea-bin-8
Created attachment 465272 [details] emerge-info.txt
Created attachment 465274 [details] app-emulation:libguestfs-1.28.5-r2:20170226-140822.log
Created attachment 465276 [details] config.log.tbz2
Created attachment 465278 [details] emerge-history.txt
Created attachment 465280 [details] environment
Created attachment 465282 [details] etc.portage.tbz2
Can you try modifying src/fuse.c to include <sys/sysmacros.h>, as in this commit? https://github.com/libguestfs/libguestfs/commit/57c327538ee18c1736bc4cd6d655c4d96c309900
Created attachment 465660 [details] 57c327538ee18c1736bc4cd6d655c4d96c309900.patch.out :-(
You're going to have to apply the patch by hand, or try using git cherry-pick which is much smarter about files that have changed name.
I've added an ebuild for libguestfs-1.36.5 to bug#601162 that I think would fix this problem, please give it a try.
This is fixed in 1.36 bump. Thanks for reporting.