Source: fuse3
Version: 3.10.1-1
Severity: important
Tags: ftbfs
Justification: fails to build from source
Forwarded: https://github.com/libfuse/libfuse/issues/580

Hello,

fuse3 is still FTBFS on kfreebsd with the following error:

[17/56] cc  -o lib/libfuse3.so.3.10.1 lib/libfuse3.so.3.10.1.p/fuse.c.o 
lib/libfuse3.so.3.10.1.p/fuse_loop.c.o 
lib/libfuse3.so.3.10.1.p/fuse_loop_mt.c.o 
lib/libfuse3.so.3.10.1.p/fuse_lowlevel.c.o 
lib/libfuse3.so.3.10.1.p/fuse_opt.c.o lib/libfuse3.so.3.10.1.p/fuse_signals.c.o 
lib/libfuse3.so.3.10.1.p/buffer.c.o lib/libfuse3.so.3.10.1.p/cuse_lowlevel.c.o 
lib/libfuse3.so.3.10.1.p/helper.c.o lib/libfuse3.so.3.10.1.p/modules_subdir.c.o 
lib/libfuse3.so.3.10.1.p/mount_util.c.o lib/libfuse3.so.3.10.1.p/fuse_log.c.o 
lib/libfuse3.so.3.10.1.p/mount_bsd.c.o 
lib/libfuse3.so.3.10.1.p/modules_iconv.c.o -Wl,--as-needed -Wl,--no-undefined 
-shared -fPIC -Wl,--start-group -Wl,-soname,libfuse3.so.3 -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wl,-z,relro -Wl,-z,now 
-Wl,--version-script,/<<PKGBUILDDIR>>/lib/fuse_versionscript -pthread -ldl -lrt 
-Wl,--end-group
FAILED: lib/libfuse3.so.3.10.1
cc  -o lib/libfuse3.so.3.10.1 lib/libfuse3.so.3.10.1.p/fuse.c.o 
lib/libfuse3.so.3.10.1.p/fuse_loop.c.o 
lib/libfuse3.so.3.10.1.p/fuse_loop_mt.c.o 
lib/libfuse3.so.3.10.1.p/fuse_lowlevel.c.o 
lib/libfuse3.so.3.10.1.p/fuse_opt.c.o lib/libfuse3.so.3.10.1.p/fuse_signals.c.o 
lib/libfuse3.so.3.10.1.p/buffer.c.o lib/libfuse3.so.3.10.1.p/cuse_lowlevel.c.o 
lib/libfuse3.so.3.10.1.p/helper.c.o lib/libfuse3.so.3.10.1.p/modules_subdir.c.o 
lib/libfuse3.so.3.10.1.p/mount_util.c.o lib/libfuse3.so.3.10.1.p/fuse_log.c.o 
lib/libfuse3.so.3.10.1.p/mount_bsd.c.o 
lib/libfuse3.so.3.10.1.p/modules_iconv.c.o -Wl,--as-needed -Wl,--no-undefined 
-shared -fPIC -Wl,--start-group -Wl,-soname,libfuse3.so.3 -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wl,-z,relro -Wl,-z,now 
-Wl,--version-script,/<<PKGBUILDDIR>>/lib/fuse_versionscript -pthread -ldl -lrt 
-Wl,--end-group
/usr/bin/ld: lib/libfuse3.so.3.10.1.p/mount_util.c.o: in function 
`fuse_mnt_umount':
./obj-x86_64-kfreebsd-gnu/../lib/mount_util.c:207: undefined reference to 
`umount2'
collect2: error: ld returned 1 exit status

One of the problem is the fact that you are testing __FreeBSD__ for the 
existence of umount2() while you should probably test __FreeBSD_kernel__: 
https://github.com/libfuse/libfuse/blob/master/lib/mount_util.c#L33

The other one looks like meson is using mount.c instead of mount_bsd.c: 
https://github.com/libfuse/libfuse/blob/master/lib/meson.build#L7

Kind regards,
Laurent Bigonville


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-5-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy

-- no debconf information

Reply via email to