Menu

Get error when install sphinx3

Help
RedWind
2013-01-19
2013-01-21
  • RedWind

    RedWind - 2013-01-19

    Hi!

    I've got errors when install sphinx3 on CentOS.

    I downloaded sphinx3-0.8 and sphinxbase-0.8

    I following the instructions within the provided INSTALL file:
    - sphinxbase and sphinx3 in the same directory
    - install sphinxbase first, then install sphinx3

    I installed sphinxbase success, but when "make check" to install sphinx3, i got this errors:

    make[3]: Entering directory `/var/www/vhosts/speedRegconition/sphinx3/src/libs3decoder/libsearch'
    if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sphinx3\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -DRETSIGTYPE=void -DHAVE_ATTRIBUTE_VISIBILITY=1 -DHAVE_DLFCN_H=1  -I. -I. -I../../../include -I../../../include   -I/usr/include/sphinxbase -I/usr/local/include/sphinxbase  -g -O2 -Wall -fvisibility=hidden -MT vithist.lo -MD -MP -MF ".deps/vithist.Tpo" -c -o vithist.lo vithist.c; \
            then mv -f ".deps/vithist.Tpo" ".deps/vithist.Plo"; else rm -f ".deps/vithist.Tpo"; exit 1; fi
     gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sphinx3\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -DRETSIGTYPE=void -DHAVE_ATTRIBUTE_VISIBILITY=1 -DHAVE_DLFCN_H=1 -I. -I. -I../../../include -I../../../include -I/usr/include/sphinxbase -I/usr/local/include/sphinxbase -g -O2 -Wall -fvisibility=hidden -MT vithist.lo -MD -MP -MF .deps/vithist.Tpo -c vithist.c  -fPIC -DPIC -o .libs/vithist.o
    vithist.c: In function 'vithist_prune':
    vithist.c:650: error: storage size of 'h' isn't known
    vithist.c:673: warning: dereferencing type-punned pointer will break strict-aliasing rules
    vithist.c:650: warning: unused variable 'h'
    make[3]: *** [vithist.lo] Error 1
    make[3]: Leaving directory `/var/www/vhosts/speedRegconition/sphinx3/src/libs3decoder/libsearch'
    make[2]: *** [check-recursive] Error 1
    make[2]: Leaving directory `/var/www/vhosts/speedRegconition/sphinx3/src/libs3decoder'
    
    make[1]: *** [check-recursive] Error 1
    make[1]: Leaving directory `/var/www/vhosts/speedRegconition/sphinx3/src'
    make: *** [check-recursive] Error 1
    

    Can anyone help me solve this problem ?

    Thanks for all your help !

     

    Last edit: RedWind 2013-01-19
  • Nickolay V. Shmyrev

    Sphinx3 from release is incompatible with recent sphinxbase. You should either use newer sphinx3 from subversion checkout or older sphinxbase.

     
  • RedWind

    RedWind - 2013-01-21

    Thank you so much,Nickolay V. Shmyrev.

    I didn't take any notice about released date.

    I used sphinxbase-0.4.1 instead sphinxbase-0.8 and no error occur.

     

    Last edit: RedWind 2013-01-21

Log in to post a comment.