Csound Csound-dev Csound-tekno Search About

[Cs-dev] python Interface - ImportError: ./_csnd.so: undefined symbol: csoundSetCallback

Date2006-09-16 16:07
FromSimon Schampijer
Subject[Cs-dev] python Interface - ImportError: ./_csnd.so: undefined symbol: csoundSetCallback
Hi,
with the latest cvs csound5 building the dynamic library:

CONFIGURATION DECISION: Building dynamic Csound library
CONFIGURATION DECISION: Building Csound interfaces library.
CONFIGURATION DECISION: Building ALSA plugin.
CONFIGURATION DECISION: Building UDP plugins.

I get the following error when trying to use the python interface (I try 
from the root of the csound5 directory):

import csnd
Traceback (most recent call last):
  File "", line 1, in ?
  File "csnd.py", line 5, in ?
    import _csnd
ImportError: ./_csnd.so: undefined symbol: csoundSetCallback

I tried with building the static library which did not cause the 
problem. Any ideas?
Thanks
    Simon


PS: The build produces all these warnings as well:

g++ -o interfaces/python_interface_wrap.os -c -fexceptions -Wall -g 
-gstabs -O2 -DLINUX -DPIPES -fno-strict-aliasing -fPIC 
-DHAVE_LIBSNDFILE=1016 -DBETA -DHAVE_FCNTL_H -DHAVE_UNISTD_H 
-DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H 
-DHAVE_DIRENT_H -D__BUILDING_LIBCSOUND -D__BUILDING_CSOUND_INTERFACES 
-I. -IH -I/usr/local/include -I/usr/include -I/usr/X11R6/include 
-Iinterfaces -I/usr/include/python2.4 -I/usr/local/include/python2.4 
interfaces/python_interface_wrap.cc
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_new_CsoundPerformanceThread(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:26436: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_new_CsoundMidiOutputStream(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:25993: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_new_CsoundMidiInputStream(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:25676: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_new_CsoundUtilityList(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:22091: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_new_CsoundChannelList(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:21904: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_new_CsoundOpcodeList(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:21397: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_MyfltVector_rbegin(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:31331: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_MyfltVector_end(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:31250: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_MyfltVector_begin(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:31169: warning: 'argv$0' may be used 
uninitialized in this function
interfaces/python_interface_wrap.cc: In function 'PyObject* 
_wrap_MyfltVector_rend(PyObject*, PyObject*)':
interfaces/python_interface_wrap.cc:31412: warning: 'argv$0' may be used 
uninitialized in this function
g++ -o lib_csnd.so -Wl,-Bdynamic -Wl,-rpath-link,. -shared 
interfaces/python_interface_wrap.os interfaces/pyMsgCb.os 
interfaces/CppSound.os interfaces/CsoundFile.os interfaces/Soundfile.os 
interfaces/csPerfThread.os interfaces/cs_glue.os 
interfaces/filebuilding.os -L/usr/local/lib -L/usr/lib 
-L/usr/lib/python2.4/config -L. -L. -L/usr/local/lib -L. -L. -lpython2.4 
-lstdc++ -lutil -lcsound -lsndfile -lsndfile -ldl -lm -lpthread
gcc -o scsort -Wl,-Bdynamic util1/sortex/smain.o -L. -L. 
-L/usr/local/lib -L. -L. -lcsound -lsndfile -ldl -lpthread -lm





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net