/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -DWITH_BLKDISCARD -O2 -pipe -march=native -Wall -Wl,-O1 -Wl,--as-needed -o mkfs.f2fs f2fs_format_main.o f2fs_format.o f2fs_format_utils.o -luuid ../lib/libf2fs.la libtool: link: x86_64-pc-linux-gnu-gcc -Wall -DWITH_BLKDISCARD -O2 -pipe -march=native -Wall -Wl,-O1 -Wl,--as-needed -o .libs/mkfs.f2fs f2fs_format_main.o f2fs_format.o f2fs_format_utils.o -luuid ../lib/.libs/libf2fs.so ../lib/.libs/libf2fs.so: undefined reference to `minor' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 13.0-systemd_20170625-200344 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.3.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python3.5 (fallback) [3] python2.7 (fallback) Available Ruby profiles: [1] ruby21 (with Rubygems) * [2] ruby22 (with Rubygems) java-config: The following VMs are available for generation-2:
Created attachment 480140 [details] emerge-info.txt
Created attachment 480142 [details] emerge-history.txt
Created attachment 480144 [details] environment
Created attachment 480146 [details] etc.portage.tbz2
Created attachment 480148 [details] logs.tbz2
Created attachment 480150 [details] sys-fs:f2fs-tools-1.8.0:20170703-021607.log
Created attachment 480152 [details] temp.tbz2
It seems that the lib/libf2fs.c file lacks the following include: #include <sys/sysmacros.h> After adding it manually, the build finished successfully for me. The reason it fails might be due to a difference in glibc version (i.e. previously sys/sysmacros.h was included indirectly somewhere). Either way, it's a bug in libf2fs.
(In reply to Bigos from comment #8) > It seems that the lib/libf2fs.c file lacks the following include: > > #include <sys/sysmacros.h> > > After adding it manually, the build finished successfully for me. > > The reason it fails might be due to a difference in glibc version (i.e. > previously sys/sysmacros.h was included indirectly somewhere). Either way, > it's a bug in libf2fs. Thank you May be it's gentoo glibc bug with sys-types.h-drop-sys-sysmacros.h-include.patch ? glibc-2.24 00_all_0028-sys-types.h-drop-sys-sysmacros.h-include.patch 00_all_0045-Revert-sys-types.h-drop-sys-sysmacros.h-include.patch glibc-2.25 00_all_0005-sys-types.h-drop-sys-sysmacros.h-include.patch For sys-libs/glibc-2.25-r2/-r3 build fine only f2fs-tools-1.7.0-r2 with sys-libs/libselinux & sys-libs/libsepol deps.
Created attachment 489352 [details, diff] Patch for libf2fs.c
Created attachment 489354 [details] New 1.6.0 ebuild with patch for #580338 & #623660
Created attachment 489356 [details] New 1.6.1 ebuild with patch for #623660
Created attachment 489358 [details] New 1.8.0 ebuild with patch for #623660
I still have this issue with output as follows: ../lib/.libs/libf2fs.so: undefined reference to `minor' ../lib/.libs/libf2fs.so: undefined reference to `major' collect2: error: ld returned 1 exit status Is this related to this bug?
(In reply to dB from comment #14) > I still have this issue with output as follows: > > ../lib/.libs/libf2fs.so: undefined reference to `minor' > ../lib/.libs/libf2fs.so: undefined reference to `major' > collect2: error: ld returned 1 exit status > > Is this related to this bug? yes. i'll try to take care of it today.
please test version 1.8.0 and report back
(In reply to Anthony Basile from comment #16) > please test version 1.8.0 and report back okay no complaints. reopen if it still a problem though i can't see how.