libsndfile-1.0.18 build fails due to math/octave

Jan Henrik Sylvester me at janh.de
Sun Feb 15 02:41:05 PST 2009


After USE_GMAKE was added, the libsndfile build dies at a different point:

gmake[1]: Entering directory 
`/usr/ports/audio/libsndfile/work/libsndfile-1.0.18/Octave'
mkoctfile -v -I../src -c sndfile.cc -o ./sndfile.o
c++ -c -I/usr/local/include -I/usr/local/include/metis 
-I/usr/local/include -fPIC -I/usr/local/include/octave-3.0.3 
-I/usr/local/include/octave-3.0.3/octave -I/usr/local/include -mieee-fp 
-O2 -fno-strict-aliasing -pipe -Wall -Wextra -Wcast-align -Wcast-qual 
-Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor 
-Woverloaded-virtual -Wreorder -Wsign-promo -I../src sndfile.cc -o 
./sndfile.o
sndfile.cc: In function 'int major_format_of_hash(const std::string&)':
sndfile.cc:275: error: 'SF_FORMAT_WVE' was not declared in this scope
sndfile.cc: In function 'const char* string_of_major_format(int)':
sndfile.cc:341: error: 'SF_FORMAT_WVE' was not declared in this scope
gmake[1]: *** [sndfile.o] Error 1

It obviously picked up math/octave installed. Configure got:

checking for octave... yes
checking for OCTAVE_VERSION in octave... 3.0.3
checking for mkoctfile... yes
checking for version of mkoctfile... 3.0.3
checking for octave-config... yes
checking for version of octave-config... 3.0.3
building octave libsndfile module... yes

Assuming that the octave module is not supposed to be build in the 
FreeBSD port, disabling it fixes the build:

diff -u audio/libsndfile/Makefile~ audio/libsndfile/Makefile
--- audio/libsndfile/Makefile~	2009-02-15 05:39:01.000000000 +0100
+++ audio/libsndfile/Makefile	2009-02-15 11:30:50.000000000 +0100
@@ -17,7 +17,8 @@
  GNU_CONFIGURE=	yes
  USE_GMAKE=	yes
  CONFIGURE_ARGS=	--disable-gcc-pipe \
-		--disable-sqlite
+		--disable-sqlite \
+		--disable-octave
  CONFIGURE_ENV=	CPPFLAGS="-isystem /usr/include -isystem 
${LOCALBASE}/include" \
  		LDFLAGS="-L${LOCALBASE}/lib"
  USE_LDCONFIG=	yes

(I do not know if the multimedia list accepts attachments.)

Cheers,
Jan Henrik
-------------- next part --------------
diff -u audio/libsndfile/Makefile~ audio/libsndfile/Makefile
--- audio/libsndfile/Makefile~	2009-02-15 05:39:01.000000000 +0100
+++ audio/libsndfile/Makefile	2009-02-15 11:30:50.000000000 +0100
@@ -17,7 +17,8 @@
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 CONFIGURE_ARGS=	--disable-gcc-pipe \
-		--disable-sqlite
+		--disable-sqlite \
+		--disable-octave
 CONFIGURE_ENV=	CPPFLAGS="-isystem /usr/include -isystem ${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 USE_LDCONFIG=	yes


More information about the freebsd-multimedia mailing list