khenriks/mp3fs

mp3fs-0.9 - ./configure fails on FreeBSD

Closed this issue · 3 comments

I tried to build the new 0.9 release on my FreeBSD Box, but with this release ./configure stops with the following output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... no
checking for cc... cc
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 we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking for g++... no
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of int... 4
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flac... yes
checking for id3tag... yes
checking for lame_init in -lmp3lame... no
configure: error: You must have liblame-dev installed to build mp3fs.

of course, lame is installed.

[sterum@saturn /home/sterum] % pkg version -v | grep lame
lame-3.99.5_1                      =   up-to-date with port
[sterum@saturn /home/sterum] % ls -l /usr/local/lib/libmp3lame*
-rw-r--r--  1 root  wheel  434938  4 Apr 19:39 /usr/local/lib/libmp3lame.a
-rwxr-xr-x  1 root  wheel     936  4 Apr 19:39 /usr/local/lib/libmp3lame.la
lrwxr-xr-x  1 root  wheel      15  4 Apr 19:39 /usr/local/lib/libmp3lame.so -> libmp3lame.so.0
-rwxr-xr-x  1 root  wheel  294000  4 Apr 19:39 /usr/local/lib/libmp3lame.so.0

On older releases i didn't had this problem.

It looks like /usr/local/lib is not in the default library search path. You'll need to configure with

./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

Oh sorry, my mistake.

Now mp3fs-0.9 builds and installs successful, and playback works fine.
I will update the FreeBSD port now.

... and thank you for this great piece of software.

Great, I'm glad to hear it's working now for you.