[GH-ISSUE #438] syntax error near unexpected token `common_lib_checking,' #236

Closed
opened 2026-03-04 01:43:33 +03:00 by kerem · 6 comments
Owner

Originally created by @david-rahrer on GitHub (Jun 24, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/438

I'm attempting to build 1.80 on Ubuntu 14.04 and get this error on configure:

./configure: line 4285: syntax error near unexpected token `common_lib_checking,'
./configure: line 4285: `PKG_CHECK_MODULES(common_lib_checking, fuse >= ${min_fuse_version} libcurl >= 7.0 libxml-2.0 >= 2.6)'

I've verified that those package versions are above that but it is a syntax error anyway. And min_fuse_version is defined on line # 4140.

case "$target" in
   *-darwin* )
      # Do something specific for mac
      min_fuse_version=2.7.3
      ;;
   *)
      # Default Case
      # assume other supported linux system
      min_fuse_version=2.8.4
      ;;
esac

I've tried replacing the variable directly with 2.8.4 but get the same error. Have I missed something?

Originally created by @david-rahrer on GitHub (Jun 24, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/438 I'm attempting to build 1.80 on Ubuntu 14.04 and get this error on configure: ``` ./configure: line 4285: syntax error near unexpected token `common_lib_checking,' ./configure: line 4285: `PKG_CHECK_MODULES(common_lib_checking, fuse >= ${min_fuse_version} libcurl >= 7.0 libxml-2.0 >= 2.6)' ``` I've verified that those package versions are above that but it is a syntax error anyway. And min_fuse_version is defined on line # 4140. ``` case "$target" in *-darwin* ) # Do something specific for mac min_fuse_version=2.7.3 ;; *) # Default Case # assume other supported linux system min_fuse_version=2.8.4 ;; esac ``` I've tried replacing the variable directly with 2.8.4 but get the same error. Have I missed something?
kerem closed this issue 2026-03-04 01:43:33 +03:00
Author
Owner

@david-rahrer commented on GitHub (Jun 24, 2016):

I'm going to close this as I started all over and cloned the git instead of using the release and also reinstalled all the necessary packages and it worked fine after. I don't know what it was, but it likely isn't an issue. Thanks.

<!-- gh-comment-id:228361982 --> @david-rahrer commented on GitHub (Jun 24, 2016): I'm going to close this as I started all over and cloned the git instead of using the release and also reinstalled all the necessary packages and it worked fine after. I don't know what it was, but it likely isn't an issue. Thanks.
Author
Owner

@hierony94 commented on GitHub (Jun 29, 2016):

What is the necessary packages @david-rahrer?

Because I got this error when trying to build it with different Dockerfile.
Here's the case. I have 2 Dockerfile.
(Dockerfile 1 can build image and provision S3FS, and Dockerfile 2 otherwise)

  • In Dockerfile 1 I'm using Debian Wheezy & PHP5
  • In Dockerfile 2 I'm using Debian Jessie & PHP 7

Thanks.

<!-- gh-comment-id:229254776 --> @hierony94 commented on GitHub (Jun 29, 2016): What is the necessary packages @david-rahrer? Because I got this error when trying to build it with different Dockerfile. Here's the case. I have 2 Dockerfile. (Dockerfile 1 can build image and provision S3FS, and Dockerfile 2 otherwise) - In Dockerfile 1 I'm using Debian Wheezy & PHP5 - In Dockerfile 2 I'm using Debian Jessie & PHP 7 Thanks.
Author
Owner

@gsaslis commented on GitHub (Dec 3, 2016):

fwiw, i'm also having this issue...

<!-- gh-comment-id:264617576 --> @gsaslis commented on GitHub (Dec 3, 2016): fwiw, i'm also having this issue...
Author
Owner

@AstroTom commented on GitHub (Nov 2, 2017):

Also having the issue in Ubuntu 14.04.

The following fixed it:
sudo apt-get install build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev ./autogen.sh ...

<!-- gh-comment-id:341373711 --> @AstroTom commented on GitHub (Nov 2, 2017): Also having the issue in Ubuntu 14.04. The following fixed it: ` sudo apt-get install build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev ./autogen.sh ... `
Author
Owner

@ghost commented on GitHub (Nov 7, 2018):

Reinstalling the dependencies helped resolve my issues as well on Lubuntu 16.04. Out of the box the './configure' wouldn't run kept failing at the same line
...
PKG_CHECK_MODULES(common_lib_checking
...

This is what I ran on my system to clear all the related packages I could find:

apt-get purge build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev m4 automake autotools-dev s3fs

apt-get install build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev m4 automake autotools-dev s3fs

<!-- gh-comment-id:436765171 --> @ghost commented on GitHub (Nov 7, 2018): Reinstalling the dependencies helped resolve my issues as well on Lubuntu 16.04. Out of the box the './configure' wouldn't run kept failing at the same line ... PKG_CHECK_MODULES(common_lib_checking ... This is what I ran on my system to clear all the related packages I could find: `apt-get purge build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev m4 automake autotools-dev s3fs` `apt-get install build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev m4 automake autotools-dev s3fs`
Author
Owner

@johnh530 commented on GitHub (Nov 8, 2022):

For Ubuntu 20.04 doing:
sudo apt-get install build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev ./autogen.sh
fixed it as well
johnh...

<!-- gh-comment-id:1307947166 --> @johnh530 commented on GitHub (Nov 8, 2022): For Ubuntu 20.04 doing: `sudo apt-get install build-essential libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev libfuse-dev ./autogen.sh ` fixed it as well johnh...
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#236
No description provided.