[Freeswitch-dev] mod_sndfile build error on Debian x86_64

Alfred E. Heggestad aeh at db.org
Fri Sep 14 12:26:13 EDT 2007


I got a build error in mod_sndfile when building on a Debian x86_64 system.

URL: http://svn.freeswitch.org/svn/freeswitch/trunk
Repository Root: http://svn.freeswitch.org/svn
Repository UUID: d0543943-73ff-0310-b7d9-9358b9ac24b2
Revision: 5706

root at h1:~/svn/freeswitch# uname -a
Linux h1 #3 SMP Sun Oct 15 13:15:34 BST 2006 x86_64 GNU/Linux
root at h1:~/svn/freeswitch# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls 
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr 
--enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

making all mod_sndfile
Creating mod_sndfile.so...
/usr/bin/ld: ../../../../libs/libsndfile/src/.libs/libsndfile.a(g721.o): relocation R_X86_64_32 against `a local symbol' 
can not be used when making a shared object; recompile with -fPIC
../../../../libs/libsndfile/src/.libs/libsndfile.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
gcc -I../../../../libs/libsndfile/src -I/root/svn/freeswitch/src/include -I/root/svn/freeswitch/libs/libteletone/src 
-fPIC -Werror -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -o .libs/mod_sndfile.so -shared -Wl,-x mod_sndfile.o -o 
.libs/mod_sndfile.so  -L/usr/local/lib /root/svn/freeswitch/.libs/libfreeswitch.so 
../../../../libs/libsndfile/src/.libs/libsndfile.a -lm -Wl,--rpath -Wl,/usr/local/freeswitch/lib
make[5]: *** [mod_sndfile.so] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_sndfile-all] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

any ideas?


More information about the Freeswitch-dev mailing list