[GH-ISSUE #2651] Compilation error on Windows #1268

Closed
opened 2026-03-04 01:52:42 +03:00 by kerem · 2 comments
Owner

Originally created by @Mushie2022 on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2651

Additional Information

Version of s3fs being used (s3fs --version)

V1.95

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse or dpkg -s fuse)

Kernel information (uname -r)

3.5.7-2644508f.x86_64

GNU/Linux Distribution, if applicable (cat /etc/os-release)

Windows 11

How to run s3fs, if applicable

[] command line
[] /etc/fstab

./autogen.sh
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(pwd)" ./configure
make CXXFLAGS="-I/usr/include"

s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)

Details about issue

make all-recursive
make[1]: Entering directory '/home/I011291/s3fs-fuse'
Making all in src
make[2]: Entering directory '/home/I011291/s3fs-fuse/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/home/I011291/s3fs-fuse/WinFsp/inc/fuse -I/usr/include -I/usr/include/libxml2 -DUSE_OPENSSL_30 -I/usr/include -MT s3fs.o -MD -MP -MF .deps/s3fs.Tpo -c -o s3fs.o s3fs.cpp
In file included from s3fs.cpp:39:
s3fs.h:26:10: fatal error: fuse.h: No such file or directory
26 | #include <fuse.h>
| ^~~~~~~~
compilation terminated.
make[2]: *** [Makefile:734: s3fs.o] Error 1
make[2]: Leaving directory '/home/I011291/s3fs-fuse/src'
make[1]: *** [Makefile:424: all-recursive] Error 1
make[1]: Leaving directory '/home/I011291/s3fs-fuse'
make: *** [Makefile:363: all] Error 2

Originally created by @Mushie2022 on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2651 <!-- -------------------------------------------------------------------------- The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all. --------------------------------------------------------------------------- --> ### Additional Information #### Version of s3fs being used (`s3fs --version`) <!-- example: V1.91 (commit:b19262a) --> V1.95 #### Version of fuse being used (`pkg-config --modversion fuse`, `rpm -qi fuse` or `dpkg -s fuse`) <!-- example: 2.9.2 --> #### Kernel information (`uname -r`) <!-- example: 5.10.96-90.460.amzn2.x86_64 --> 3.5.7-2644508f.x86_64 #### GNU/Linux Distribution, if applicable (`cat /etc/os-release`) <!-- command result --> Windows 11 #### How to run s3fs, if applicable <!-- Describe the s3fs "command line" or "/etc/fstab" entry used. --> [] command line [] /etc/fstab <!-- Executed command line or /etc/fastab entry --> ``` ./autogen.sh PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(pwd)" ./configure make CXXFLAGS="-I/usr/include" ``` #### s3fs syslog messages (`grep s3fs /var/log/syslog`, `journalctl | grep s3fs`, or `s3fs outputs`) <!-- if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages. --> ``` ``` ### Details about issue <!-- Please describe the content of the issue in detail. --> make all-recursive make[1]: Entering directory '/home/I011291/s3fs-fuse' Making all in src make[2]: Entering directory '/home/I011291/s3fs-fuse/src' g++ -DHAVE_CONFIG_H -I. -I.. -I/home/I011291/s3fs-fuse/WinFsp/inc/fuse -I/usr/include -I/usr/include/libxml2 -DUSE_OPENSSL_30 -I/usr/include -MT s3fs.o -MD -MP -MF .deps/s3fs.Tpo -c -o s3fs.o s3fs.cpp In file included from s3fs.cpp:39: s3fs.h:26:10: fatal error: fuse.h: No such file or directory 26 | #include <fuse.h> | ^~~~~~~~ compilation terminated. make[2]: *** [Makefile:734: s3fs.o] Error 1 make[2]: Leaving directory '/home/I011291/s3fs-fuse/src' make[1]: *** [Makefile:424: all-recursive] Error 1 make[1]: Leaving directory '/home/I011291/s3fs-fuse' make: *** [Makefile:363: all] Error 2
kerem closed this issue 2026-03-04 01:52:42 +03:00
Author
Owner

@Mushie2022 commented on GitHub (Apr 2, 2025):

Image

I've installed WinFsp in develop mode and copied it into s3fs-fuse folder.

Image

<!-- gh-comment-id:2771091247 --> @Mushie2022 commented on GitHub (Apr 2, 2025): ![Image](https://github.com/user-attachments/assets/bc93ff09-ebcc-4c14-ae6e-589a00d8a34a) I've installed WinFsp in develop mode and copied it into s3fs-fuse folder. ![Image](https://github.com/user-attachments/assets/de6f941f-6e93-444b-b72b-8f40b33836da)
Author
Owner

@Mushie2022 commented on GitHub (Apr 7, 2025):

Image

Add required includes

<!-- gh-comment-id:2781929624 --> @Mushie2022 commented on GitHub (Apr 7, 2025): ![Image](https://github.com/user-attachments/assets/f5c96c02-2d98-458c-8356-f49dbc010850) Add required includes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1268
No description provided.