Opened 15 years ago

Closed 14 years ago

#24824 closed defect (fixed)

bindfs configure fails to find fuse

Reported by: virtual.greg@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: drkp (Dan Ports)
Port: bindfs

Description

I tried to install pkgconfig (a dependency of bindfs), ran install with the -d option as recommended, here is the output:

$ sudo port -d install pkgconfig
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port pkgconfig.
DEBUG: Requested variant i386 is not provided by port pkgconfig.
DEBUG: Requested variant macosx is not provided by port pkgconfig.
--->  Computing dependencies for pkgconfig
DEBUG: Executing org.macports.main (pkgconfig)
DEBUG: Skipping completed org.macports.fetch (pkgconfig)
DEBUG: Skipping completed org.macports.checksum (pkgconfig)
DEBUG: Skipping completed org.macports.extract (pkgconfig)
DEBUG: Skipping completed org.macports.patch (pkgconfig)
--->  Configuring pkgconfig
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing org.macports.configure (pkgconfig)
DEBUG: Environment: CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pkgconfig/work/pkg-config-0.23" && ./configure --prefix=/opt/local --enable-indirect-deps --with-pc-path=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin10.3.0
checking host system type... i386-apple-darwin10.3.0
checking for style of include used by make... none
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pkgconfig/work/pkg-config-0.23" && ./configure --prefix=/opt/local --enable-indirect-deps --with-pc-path=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig " returned error 77
DEBUG: Backtrace: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pkgconfig/work/pkg-config-0.23" && ./configure --prefix=/opt/local --enable-indirect-deps --with-pc-path=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig " returned error 77
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for pkgconfig): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

I don't understand the error enough to debug this myself, sorry.

Change History (10)

comment:1 Changed 15 years ago by virtual.greg@…

Re-installing Xcode with 'UNIX development tools' fixed this issue. However, despite having pkgconfig and macfuse installed, I cannot install bindfs, macports cannot find fuse:

checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for fuse... configure: error: Package requirements (fuse >= 2.5.3) were not met:

No package 'fuse' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables fuse_CFLAGS
and fuse_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_bindfs/work/bindfs-1.8.4" && ./configure --prefix=/opt/local " returned error 1
DEBUG: Backtrace: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_bindfs/work/bindfs-1.8.4" && ./configure --prefix=/opt/local " returned error 1
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for bindfs): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

I don't know what I should set PKG_CONFIG_PATH to...

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Keywords: install removed
Port: bindfs added; pkgconfig removed
Summary: Install pkgconfig failsbindfs configure fails to find fuse

comment:3 Changed 15 years ago by mf2k (Frank Schima)

What is the result of the following?

port installed macfuse

comment:4 in reply to:  3 Changed 15 years ago by virtual.greg@…

Replying to macsforever2000@…:

$ port installed macfuse
The following ports are currently installed:
  macfuse @2.0.3_0 (active)

comment:5 Changed 14 years ago by drkp (Dan Ports)

Cc: dports@… added

Cc Me!

comment:6 Changed 14 years ago by drkp (Dan Ports)

FWIW, it builds fine for me.

Do you have a /opt/local/lib/pkgconfig/fuse.pc file? What does '/opt/local/bin/pkg-config --debug fuse' return?

comment:7 Changed 14 years ago by virtual.greg@…

I don't appear to have that file no, only a Macports turd.

$ cd /opt/local/lib/
$ ls -la
total 0
drwxr-xr-x   3 root  admin  102  1 Jan 10:25 .
drwxr-xr-x  11 root  admin  374  7 May 20:08 ..
-rw-r--r--   1 root  admin    0  1 Jan 10:25 .turd_MacPorts
$ sudo find /opt -name "fuse.pc"
$ sudo find /opt -name "pkgconfig"
/opt/local/var/macports/distfiles/pkgconfig
/opt/local/var/macports/receipts/pkgconfig
/opt/local/var/macports/software/pkgconfig
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
$ /opt/local/bin/pkg-config --debug fuse
Option --debug seen
Error printing disabled by default, value of --print-errors: 0
Error printing disabled
Adding virtual 'pkg-config' package to list of known packages
Cannot open directory '/opt/local/lib/pkgconfig' in package search path: No such file or directory
Cannot open directory '/opt/local/share/pkgconfig' in package search path: No such file or directory
Looking for package 'fuse'
Looking for package 'fuse-uninstalled'
Looking for 'fuse' using legacy -config scripts
Calling gnome-config

comment:8 Changed 14 years ago by drkp (Dan Ports)

Looks like macfuse needs to depend on pkgconfig in order to get the .pc file installed.

Now that you have pkgconfig installed, does it work if you uninstall, clean, and reinstall macfuse?

comment:9 Changed 14 years ago by virtual.greg@…

Did I uninstall and clean correctly before installing macfuse again?

$ sudo port uninstall macfuse
Password:
--->  Deactivating macfuse @2.0.3_0
--->  Uninstalling macfuse @2.0.3_0
$ sudo port clean --dist macfuse
--->  Cleaning macfuse
$ sudo port install macfuse
--->  Computing dependencies for macfuse
--->  Fetching macfuse
--->  Attempting to fetch macfuse-2.0.3.tar.bz2 from http://lil.fr.distfiles.macports.org/macfuse
--->  Verifying checksum(s) for macfuse
--->  Extracting macfuse
--->  Applying patches to macfuse
--->  Configuring macfuse
--->  Building macfuse
--->  Staging macfuse into destroot
Note: macfuse installs files outside the common directory structure.
--->  Installing macfuse @2.0.3_0
--->  Activating macfuse @2.0.3_0
--->  Cleaning macfuse
$ port installed macfuse
The following ports are currently installed:
  macfuse @2.0.3_0 (active)
$ sudo port install bindfs
--->  Computing dependencies for bindfs
--->  Configuring bindfs
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_bindfs/work/bindfs-1.8.4" && ./configure --prefix=/opt/local " returned error 1
Command output: checking if /usr/bin/gcc-4.2 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.2 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for setxattr... yes
checking for getxattr... yes
checking for listxattr... yes
checking for removexattr... yes
checking for lsetxattr... no
checking for lgetxattr... no
checking for llistxattr... no
checking for lremovexattr... no
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for fuse... configure: error: Package requirements (fuse >= 2.5.3) were not met:

No package 'fuse' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables fuse_CFLAGS
and fuse_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

comment:10 Changed 14 years ago by drkp (Dan Ports)

Resolution: fixed
Status: newclosed

This should be fixed by r68499. Let me know if that doesn't work.

Note: See TracTickets for help on using tickets.