rmyorston / busybox-w32

WIN32 native port of BusyBox.
https://frippery.org/busybox
Other
670 stars 124 forks source link

"stat" can't be compiled without "df" #385

Closed SnDream closed 6 months ago

SnDream commented 6 months ago
/usr/bin/x86_64-w64-mingw32-ld: win32/lib.a(statfs.o):statfs.c:(.text$statfs+0x46): undefined reference to `find_mount_point'
collect2: error: ld returned 1 exit status
Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS.
Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam"

stat relies on statfs(), whose function calls find_mount_point() which requires df to be open.

rmyorston commented 6 months ago

Yes, it's true. There are too many combinations of configurations for them all to have been tested.

It should be fixed now.

SnDream commented 6 months ago

it works, thanks!