The sphinx3 distribution has a python dorectory which contains a C extension module _sphinx3module.c and a setup.py to build it. When I try to build the module I get this error:
$pythonsetup.pybuild
runningbuild
runningbuild_ext
building'_sphinx3'extension
gcc-fno-strict-aliasing-Wno-long-double-no-cpp-precomp-mno-fused-madd-fno-common-dynamic-DNDEBUG-g-Os-Wall-Wstrict-prototypes-DMACOSX-I/usr/include/ffi-DENABLE_DTRACE-archi386-archppc-pipe-I../../sphinxbase/include-I../include-I/usr/local/include/sphinxbase/-I/usr/local/include/sphinx3-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5-c_sphinx3module.c-obuild/temp.macosx-10.5-i386-2.5/_sphinx3module.o
_sphinx3module.c:Infunction‘sphinx3_init’:
_sphinx3module.c:172:error:toofewargumentstofunction‘s3_decode_init’
_sphinx3module.c:Infunction‘sphinx3_init’:
_sphinx3module.c:172:error:toofewargumentstofunction‘s3_decode_init’
lipo:can't open input file: /var/folders/rA/rAbDT-ImHDSiDKUv+K1vn++++TI/-Tmp-//ccEfMQmI.out (No such file or directory)error: command 'gcc'failedwithexitstatus1
The problem is at line 172 of _sphinx3module.c where the function s3_decode_init() is called with one argument instead of the two required:
s3_decode_init(&decoder);
The missing argument is a config structure, see src/libs3decoder/libAPI/s3_decode.c line 236:
int s3_decode_init(s3_decode_t * _decode, cmd_ln_t *_config)
Has this problem been fixed? In other words, is there a _sphinx3module.c available which calls s3_decode_init() correctly?
If not, I shall attempt to correct _sphinx3module.c myself. Can anyone point me to a declaration for cmd_ln_t and/or offer any advice on making the necessary changes? If I am successful I shall make the corrected files available here.
Thanks in advance and best wishes (and Happy New Year!)
Ivan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> ld: warning in /usr/local/lib/libsphinxbase.dylib, file is not of required architecture
> ld: warning in ../src/libs3decoder/.libs/libs3decoder.dylib, file is not of required architecture
running install_lib
copying build/lib.macosx-10.5-i386-2.5/_sphinx3.so -> /Library/Python/2.5/site-packages
running install_egg_info
Removing /Library/Python/2.5/site-packages/Sphinx3-0.1-py2.5.egg-info
Writing /Library/Python/2.5/site-packages/Sphinx3-0.1-py2.5.egg-info
However, the python unit tests in _sphinx3_test.py ran fine.
So, all seems well. Thanks again!
Ivan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Python module is still broken in trunk together with python egg which doesn't work with latest subversion and doesn't allow to install anything properly. So this needs fixing I suppose.
We have a bug about that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All
The sphinx3 distribution has a python dorectory which contains a C extension module _sphinx3module.c and a setup.py to build it. When I try to build the module I get this error:
The problem is at line 172 of _sphinx3module.c where the function s3_decode_init() is called with one argument instead of the two required:
The missing argument is a config structure, see src/libs3decoder/libAPI/s3_decode.c line 236:
Has this problem been fixed? In other words, is there a _sphinx3module.c available which calls s3_decode_init() correctly?
If not, I shall attempt to correct _sphinx3module.c myself. Can anyone point me to a declaration for cmd_ln_t and/or offer any advice on making the necessary changes? If I am successful I shall make the corrected files available here.
Thanks in advance and best wishes (and Happy New Year!)
Ivan
Thanks! I'm downloading it now and I'll give it a go.
Ivan
Dear Nikolai
Thanks for your help. I've installed sphinx-3.08 and things seem better.
I'm running it on MacOSX and I got a couple of warnings from ld (see the ld: warning lines below):
> ld: warning in /usr/local/lib/libsphinxbase.dylib, file is not of required architecture
> ld: warning in ../src/libs3decoder/.libs/libs3decoder.dylib, file is not of required architecture
running install_lib
copying build/lib.macosx-10.5-i386-2.5/_sphinx3.so -> /Library/Python/2.5/site-packages
running install_egg_info
Removing /Library/Python/2.5/site-packages/Sphinx3-0.1-py2.5.egg-info
Writing /Library/Python/2.5/site-packages/Sphinx3-0.1-py2.5.egg-info
However, the python unit tests in _sphinx3_test.py ran fine.
So, all seems well. Thanks again!
Ivan
Python module is still broken in trunk together with python egg which doesn't work with latest subversion and doesn't allow to install anything properly. So this needs fixing I suppose.
We have a bug about that.
Hm, actually python issue was fixed in sphinx3-0.8 branch just today, but the changes were not backported to trunk.
See
http://cmusphinx.svn.sourceforge.net/viewvc/cmusphinx/branches/sphinx3-0.8/