[Freeswitch-dev] Compiling error - libsndfile.so

Michael Jerris mike at jerris.com
Tue Oct 10 07:59:54 EDT 2006


It looks like the autoconf detection of flac is not so good... It
detects the header, and ifdefs the code based on the existence of the
header, regardless of if it can find the library.  You may want to build
without flac (you can add --disable-flac to the libsndfile configure
manually, or add it at the end of the buildlib line in the mod_sndfile
Makefile) or attempt to correct you installation of this library.
Please report back your findings and also report this issue to the
libsndfile bug tracker.

Thanks
Mike

> -----Original Message-----
> From: Stuart Johnson [mailto:stuart at stu.org.uk]
> Sent: Monday, October 09, 2006 11:27 AM
> To: freeswitch-dev at lists.freeswitch.org
> Subject: [Freeswitch-dev] Compiling error - libsndfile.so
> 
> Trying to get freeswitch to compile on my Gentoo box.  Somethings
broke:
> 
> test -z "/usr/local/freeswitch/include" || mkdir -p --
> "/usr/local/freeswitch/include"
>  /usr/bin/install -c -m 644 'sndfile.h'
> '/usr/local/freeswitch/include/sndfile.h'
> make[5]: Leaving directory
`/root/freeswitch/libs/libsndfile-1.0.16/src'
> make[4]: Leaving directory
`/root/freeswitch/libs/libsndfile-1.0.16/src'
> make[3]: Leaving directory
`/root/freeswitch/libs/libsndfile-1.0.16/src'
> Making install in examples
> make[3]: Entering directory
> `/root/freeswitch/libs/libsndfile-1.0.16/examples'
> /bin/sh ../libtool --tag=CC --mode=link gcc  -std=gnu99 -W -Wall
> -Wdeclaration-after-statement -Wstrict-prototypes -Wmissing-prototypes
> -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow
> -Wbad-function-cast -Wwrite-strings -pipe    -o sndfile-info
> sndfile-info.o ../src/libsndfile.la -lm
> gcc -std=gnu99 -W -Wall -Wdeclaration-after-statement
> -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return
-Wcast-align
> -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast
> -Wwrite-strings -pipe -o .libs/sndfile-info sndfile-info.o
> ../src/.libs/libsndfile.so -lm
> ../src/.libs/libsndfile.so: undefined reference to `s2flac16_array'
> ../src/.libs/libsndfile.so: undefined reference to `s2flac8_array'
> ../src/.libs/libsndfile.so: undefined reference to `i2flac8_array'
> ../src/.libs/libsndfile.so: undefined reference to `i2flac24_array'
> ../src/.libs/libsndfile.so: undefined reference to `i2flac16_array'
> ../src/.libs/libsndfile.so: undefined reference to `s2flac24_array'
> collect2: ld returned 1 exit status
> make[3]: *** [sndfile-info] Error 1
> make[3]: Leaving directory
> `/root/freeswitch/libs/libsndfile-1.0.16/examples'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/root/freeswitch/libs/libsndfile-1.0.16'
> ERROR
> make[1]: *** [depends] Error 1
> make[1]: Leaving directory
`/root/freeswitch/src/mod/formats/mod_sndfile'
> make: *** [modules] Error 1
> 
> 
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org



More information about the Freeswitch-dev mailing list