Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3178] --opcode-lib stuff, specdisp, update

Date2003-10-20 00:52
Fromstevenyi
Subject[CSOUND-DEV:3178] --opcode-lib stuff, specdisp, update
Hi all, 

Just thought I'd send an updated report of the walls I'm hitting in
csound5.  

-I've attached below the output from the test.sh I've been using to test
the opcode-lib's from the Opcodes dir.  It seems to have progressed a
bit, but still symbols missing.  

-bbcut.so is strange: if I try "csound --opcode=lib=Opcodes/bbcut.so
test.csd" it seems to load in fine and finds bbcutm as the first opcode,
yet if I add bbcut.so to the large list of opcode libraries to load in
with my test.sh script, it seems to always die after loading it

-Csound still is unable to run alone without specdisp which is only
available from spectra.so as the sources are curently organized. 
specdisp is referenced in otran as part of the core orchestra parsing
process.  As it's currently hardwired into the core, should that
reference be removed or spectra.c moved to the core?

Besides that, not much else as I'm having trouble getting past these
hurdles and really can't test other aspects of csound until then.

Thanks all for any help and and pointers!
steven


[steven@localhost csound5]$ ./test.sh
Using csound.xmg
0dBFS level = 32767.0
Csound Version 4.24beta (Oct 19 2003)
UnifiedCSD:  test.csd
STARTING FILE
Creating orchestra
Creating /tmp/fileVHozRj.orc (0x81391b8)
Creating score
orchname:? /tmp/fileVHozRj.orc
scorename: /tmp/filen7fe5I.sco
Loading libraries
Opcodes/babo.so,Opcodes/biquad.so,Opcodes/bowedbar.so,Opcodes/butter.so,Opcodes/clfilt.so,Opcodes/cross2.so,Opcodes/dam.so,Opcodes/filter.so,Opcodes/flanger.so,Opcodes/follow.so,Opcodes/grain4.so,Opcodes/grain.so,Opcodes/hrtferX.so,Opcodes/locsig.so,Opcodes/lowpassr.so,Opcodes/midiops2.so,Opcodes/midiops3.so,Opcodes/modal4.so,Opcodes/nlfilt.so,Opcodes/oscbnk.so,Opcodes/phisem.so,Opcodes/physmod.so,Opcodes/pitch.so,Opcodes/pluck.so,Opcodes/repluck.so,Opcodes/scansyn.so,Opcodes/scansynx.so,Opcodes/sfont.so,Opcodes/sndwarp.so,Opcodes/space.so,Opcodes/spat3d.so,Opcodes/spectra.so,Opcodes/ugensa.so,Opcodes/uggab.so,Opcodes/ugmoss.so,Opcodes/ugrw1.so,Opcodes/ugrw2.so,Opcodes/ugsc.so,Opcodes/wave-terrain.so
libname Opcodes/babo.so
A dynamic linking error occurred: (Opcodes/babo.so: undefined symbol:
ftfind)
Failed to load Opcodes/babo.so
A dynamic linking error occurred: (Opcodes/biquad.so: undefined symbol:
ftfind)
Failed to load Opcodes/biquad.so
A dynamic linking error occurred: (Opcodes/bowedbar.so: undefined
symbol: make_BiQuad)
Failed to load Opcodes/bowedbar.so
Found handle
Found size
Length=320
Found init
Calling init
Got opcodlst 0x4001bc60
oplstend=0x813e9c8, opcodlst=0x8139338, length=554
Adding 320(8) -- first opcode is butterhp
A dynamic linking error occurred: (Opcodes/clfilt.so: undefined symbol:
initerror)
Failed to load Opcodes/clfilt.so
A dynamic linking error occurred: (Opcodes/cross2.so: undefined symbol:
ftfind)
Failed to load Opcodes/cross2.so
Found handle
Found size
Length=40
Found init
Calling init
Got opcodlst 0x4001d6e0
oplstend=0x81443e8, opcodlst=0x813ec18, length=562
Adding 40(1) -- first opcode is dam
Found handle
Found size
Length=160
Found init
Calling init
Got opcodlst 0x400228a0
oplstend=0x8144410, opcodlst=0x813ec18, length=563
Adding 160(4) -- first opcode is filter2
Found handle
Found size
Length=120
Found init
Calling init
Got opcodlst 0x40025560
oplstend=0x81444b0, opcodlst=0x813ec18, length=567
Adding 120(3) -- first opcode is flanger
A dynamic linking error occurred: (Opcodes/follow.so: undefined symbol:
O)
Failed to load Opcodes/follow.so
A dynamic linking error occurred: (Opcodes/grain4.so: undefined symbol:
ftfind)
Failed to load Opcodes/grain4.so
A dynamic linking error occurred: (Opcodes/grain.so: undefined symbol:
ftfind)
Failed to load Opcodes/grain.so
A dynamic linking error occurred: (Opcodes/hrtferX.so: undefined symbol:
bytrevhost)
Failed to load Opcodes/hrtferX.so
A dynamic linking error occurred: (Opcodes/locsig.so: undefined symbol:
initerror)
Failed to load Opcodes/locsig.so
A dynamic linking error occurred: (Opcodes/lowpassr.so: undefined
symbol: initerror)
Failed to load Opcodes/lowpassr.so
A dynamic linking error occurred: (Opcodes/midiops2.so: undefined
symbol: initerror)
Failed to load Opcodes/midiops2.so
A dynamic linking error occurred: (Opcodes/midiops3.so: undefined
symbol: ftfind)
Failed to load Opcodes/midiops3.so
A dynamic linking error occurred: (Opcodes/modal4.so: undefined symbol:
Envelope_tick)
Failed to load Opcodes/modal4.so
A dynamic linking error occurred: (Opcodes/nlfilt.so: undefined symbol:
e0dbfs)
Failed to load Opcodes/nlfilt.so
A dynamic linking error occurred: (Opcodes/oscbnk.so: undefined symbol:
ftfind)
Failed to load Opcodes/oscbnk.so
A dynamic linking error occurred: (Opcodes/phisem.so: undefined symbol:
e0dbfs)
Failed to load Opcodes/phisem.so
A dynamic linking error occurred: (Opcodes/physmod.so: undefined symbol:
ftfind)Failed to load Opcodes/physmod.so
A dynamic linking error occurred: (Opcodes/pitch.so: undefined symbol:
DOWNset)
Failed to load Opcodes/pitch.so
A dynamic linking error occurred: (Opcodes/pluck.so: undefined symbol:
cglob)
Failed to load Opcodes/pluck.so
A dynamic linking error occurred: (Opcodes/repluck.so: undefined symbol:
mmalloc)
Failed to load Opcodes/repluck.so
A dynamic linking error occurred: (Opcodes/scansyn.so: undefined symbol:
ftfind)Failed to load Opcodes/scansyn.so
A dynamic linking error occurred: (Opcodes/scansynx.so: undefined
symbol: ftfind)
Failed to load Opcodes/scansynx.so
A dynamic linking error occurred: (Opcodes/sfont.so: undefined symbol:
isfullpath)
Failed to load Opcodes/sfont.so
A dynamic linking error occurred: (Opcodes/sndwarp.so: undefined symbol:
ftfind)Failed to load Opcodes/sndwarp.so
A dynamic linking error occurred: (Opcodes/space.so: undefined symbol:
perferror)
Failed to load Opcodes/space.so
A dynamic linking error occurred: (Opcodes/spat3d.so: undefined symbol:
ftfind)
Failed to load Opcodes/spat3d.so
A dynamic linking error occurred: (Opcodes/spectra.so: undefined symbol:
dispset)
Failed to load Opcodes/spectra.so
A dynamic linking error occurred: (Opcodes/ugensa.so: undefined symbol:
ftfind)
Failed to load Opcodes/ugensa.so
A dynamic linking error occurred: (Opcodes/uggab.so: undefined symbol:
perferror)
Failed to load Opcodes/uggab.so
A dynamic linking error occurred: (Opcodes/ugmoss.so: undefined symbol:
initerror)
Failed to load Opcodes/ugmoss.so
A dynamic linking error occurred: (Opcodes/ugrw1.so: undefined symbol:
perferror)
Failed to load Opcodes/ugrw1.so
A dynamic linking error occurred: (Opcodes/ugrw2.so: undefined symbol:
initerror)
Failed to load Opcodes/ugrw2.so
A dynamic linking error occurred: (Opcodes/ugsc.so: undefined symbol:
mfree)
Failed to load Opcodes/ugsc.so
A dynamic linking error occurred: (Opcodes/wave-terrain.so: undefined
symbol: ftfind)
Failed to load Opcodes/wave-terrain.so
All loaded
Csound tidy up: Segmentation fault
Removing temporary file /tmp/filen7fe5I.sco ...
Removing temporary file /tmp/fileVHozRj.orc ...

Date2003-10-20 04:54
Fromstevenyi
Subject[CSOUND-DEV:3181] Re: --opcode-lib stuff, specdisp, update
Hi John,

Thanks for the reply!  I see now how you worked the other changes in
cs.h.  I've been a bit wary as I didn't want to add functions that
weren't "supposed" to be in there, as I thought all calls were to be
going through the API and cs.h is the public header for csound as a
library (at least, I thought it was).  Oh wait... I see where I'm
getting confused, and perhaps this is a point needing clarification for
myself.  Should opcode libs only #include csound.h and only use the
API?  If so, then perhaps the opcodes in the Opcodes dir should be
recoded to use API functions (and add API functions for cases where they
don't exist). 

Anyways, I'll go ahead and move forward as you suggested and will be
committing changes as I make them.  I guess we can take functions back
out and add to the API later if need be (or recode opcodes to use
existing API functions where available).  

Thanks,
steven


On Mon, 2003-10-20 at 02:25, John ffitch wrote:
> So the answer is to add ftfind to the list of function in teh internal 
> interface; and then add the next one, and teh next one,... until it works.
> ==John
> 
> 

Date2003-10-20 07:25
FromJohn ffitch
Subject[CSOUND-DEV:3180] Re: --opcode-lib stuff, specdisp, update
So the answer is to add ftfind to the list of function in teh internal 
interface; and then add the next one, and teh next one,... until it works.
==John

Date2003-10-20 08:49
FromJohn ffitch
Subject[CSOUND-DEV:3182] Re: --opcode-lib stuff, specdisp, update
I added ftfind, initerror and the memory functions to the interface.
I have a section in cs.h of internal (non-ExtAPI) functions.  They are 
mirrored in csdl.h (I have use csound.h and am unsure what it is for).  
The table in oload.c also needs changing whne new functions are added.  I 
committed the latest batch this morning
==John

Date2003-10-20 14:03
Fromstevenyi
Subject[CSOUND-DEV:3191] Re: --opcode-lib stuff, specdisp, update
Thanks!  Definitely has gotten me further along, and I'll probably be
adding some functions later tonight in the same manner to see if I can't
get a bit furthur.

steven

On Mon, 2003-10-20 at 03:49, John ffitch wrote:
> I added ftfind, initerror and the memory functions to the interface.
> I have a section in cs.h of internal (non-ExtAPI) functions.  They are 
> mirrored in csdl.h (I have use csound.h and am unsure what it is for).  
> The table in oload.c also needs changing whne new functions are added.  I 
> committed the latest batch this morning
> ==John
> 
>