Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure gives syntax error near unexpected token 'SSHFS,' #79

Open
6502c opened this issue Dec 8, 2022 · 3 comments
Open

configure gives syntax error near unexpected token 'SSHFS,' #79

6502c opened this issue Dec 8, 2022 · 3 comments

Comments

@6502c
Copy link

6502c commented Dec 8, 2022

I try to build sshfs on a MacBook Pro M1 with macOS 12.6.1 (Monterey).
After cloning and following the documented steps I end up with this error:

cd sshfs

autoreconf -i
configure.ac:4: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:4: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:745: AM_CONFIG_HEADER is expanded from...
configure.ac:4: the top level

./configure
checking build system type... aarch64-apple-darwin21.6.0
checking host system type... aarch64-apple-darwin21.6.0
checking target system type... aarch64-apple-darwin21.6.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for library containing dlsym... none required
checking OpenSSH version... 8.6 >= 4.4, disabling NODELAY workaround
./configure: line 4484: syntax error near unexpected token 'SSHFS,'
./configure: line 4484: 'PKG_CHECK_MODULES(SSHFS, fuse >= 2.3 glib-2.0 gthread-2.0)'
@cheeseandcereal
Copy link

Install pkg-config to fix. If you use brew, it's just brew install pkg-config

@6502c
Copy link
Author

6502c commented Jul 11, 2023

Install pkg-config to fix. If you use brew, it's just brew install pkg-config

Thanks, @cheeseandcereal, that did it.

@c834606877
Copy link

Some guides also metioned to reinstall the pkg-config.
Don't forget run again autoreconf -i after install pkg-config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants