AaronZhangL / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

compile problem with the flite plugin #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Followed the Instructions manual for flite
2.compiled using --with-pic while configuring flite
3.when I configure UniMRCP using ./configure --enable-flite-plugin 
--with-flite=/usr/src/flite-1.3.99, I am getting the below error

make[2]: Entering directory `/usr/local/unimrcp-1.0.0/plugins/mrcp-flite'
/bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2  -g -O2 -pthread   -o 
mrcpflite.la -rpath /usr/local/unimrcp/plugin -module -version-info 0:0:0 
mrcp_flite.lo flite_voices.lo 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_awb.a        

/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_kal.a        

/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_rms.a        

/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_slt.a        

/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmulex.a            

/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_usenglish.a         

/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite.a -lm

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_awb.a is not 
portable!

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_kal.a is not 
portable!

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_rms.a is not 
portable!

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_slt.a is not 
portable!

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmulex.a is not 
portable!

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_usenglish.a is not 
portable!

*** Warning: Linking the shared library mrcpflite.la against the
*** static library 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite.a is not portable!
gcc -shared  .libs/mrcp_flite.o .libs/flite_voices.o  
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_awb.a 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_kal.a 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_rms.a 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_slt.a 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmulex.a 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_usenglish.a 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite.a -lm  -pthread 
-Wl,-soname -Wl,mrcpflite.so.0 -o .libs/mrcpflite.so.0.0.0
/usr/bin/ld: 
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_awb.a(cmu_us_
awb.o): relocation R_X86_64_32S against `a local symbol' can not be used when 
making a shared object; recompile with -fPIC
/usr/local/flite-1.3.99/build/x86_64-linux-gnu/lib/libflite_cmu_us_awb.a: could 
not read symbols: Bad value
collect2: ld returned 1 exit status

make[2]: *** [mrcpflite.la] Error 1
make[2]: Leaving directory `/usr/local/unimrcp-1.0.0/plugins/mrcp-flite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/unimrcp-1.0.0/plugins'
make: *** [all-recursive] Error 1
3.

What version of the product are you using? On what operating system?

CentOS release 5.7 (Final)
unimrcp-deps-1.1.2
unimrcp-1.0.0
flite-1.3.99

Regards,

Ashok.

Original issue reported on code.google.com by Ashok.Ra...@gmail.com on 19 Oct 2012 at 10:26

GoogleCodeExporter commented 9 years ago

Original comment by achalo...@gmail.com on 7 Mar 2013 at 8:48

GoogleCodeExporter commented 9 years ago
My response might be too late, but the resolution of the problem was to build 
both the Flite library and the plugin with -fPIC enabled as follows.

./configure CFLAGS="-fPIC"

Original comment by achalo...@gmail.com on 16 Oct 2014 at 2:01