[CSOUND-DEV:3149] How does one build csound?
Date | 2003-10-15 18:18 |
From | jpff@codemist.co.uk |
Subject | [CSOUND-DEV:3149] How does one build csound? |
I am having trouble building csound 4.23. In the CVS files i have there is no Makefile.in for the utils2/export directory (which i am sure i used to have) and in fact there is no Makefile.in in teh main diretory either. Also no configure So how is one supposed to build it? ==John ffitch |
Date | 2003-10-15 20:24 |
From | steven |
Subject | [CSOUND-DEV:3150] Re: How does one build csound? |
Hi John and all, I thought the whole 4.23 tree was still using Makefile only and no autoconf scripts. Did this change sometime? steven jpff@codemist.co.uk wrote: >I am having trouble building csound 4.23. In the CVS files i have >there is no Makefile.in for the utils2/export directory (which i am >sure i used to have) and in fact there is no Makefile.in in teh main >diretory either. Also no configure > So how is one supposed to build it? >==John ffitch > > > > > |
Date | 2003-10-16 03:17 |
From | stevenyi |
Subject | [CSOUND-DEV:3152] --opcode-lib stuff |
Hi all, I sent a few emails this morning but I don't think they got to the server. (BTW: is it ella or earth.mills.edu? apologies if everyone has already read the following...) I'm having problems with loading --opcode-lib=Opcodes/spectra.so (similar errors with other opcode libs). I added and committed some code for error information using dl_error() in Top/dl_opcodes.c in loadCsoundExternals(). I am receiving this error when trying to load spectra.so: A dynamic linking error occurred: (Opcodes/spectra.so: undefined symbol: auxalloc) The whole process ran as such: [root@localhost csound5]# ./csound --opcode-lib=Opcodes/spectra.so test.csd Using csound.xmg 0dBFS level = 32767.0 Csound Version 4.24beta (Oct 15 2003) UnifiedCSD: test.csd STARTING FILE Creating orchestra Creating /tmp/file6OqOY0.orc (0x813f118) Creating score orchname: /tmp/file6OqOY0.orc scorename: /tmp/fileSWAhLe.sco Loading libraries Opcodes/spectra.so libname Opcodes/spectra.so A dynamic linking error occurred: (Opcodes/spectra.so: undefined symbol: auxalloc) Failed to load Opcodes/spectra.so All loaded opcode=specdisp unknown opcode Compile returns -1 Removing temporary file /tmp/fileSWAhLe.sco ... Removing temporary file /tmp/file6OqOY0.orc ... originally I had problems with not finding getstring, but now it's auxalloc (for what reason it's changed I have no clue). This happens with other opcode-lib's as well. I tried it again with three opcode-libs and got: Loading libraries Opcodes/spectra.so,Opcodes/pluck.so,Opcodes/space.so libname Opcodes/spectra.so A dynamic linking error occurred: (Opcodes/spectra.so: undefined symbol: auxalloc) Failed to load Opcodes/spectra.so A dynamic linking error occurred: (Opcodes/pluck.so: undefined symbol: auxalloc)Failed to load Opcodes/pluck.so A dynamic linking error occurred: (Opcodes/space.so: undefined symbol: getstring) I'm a bit stumped here and have been most of the night. Been stepping through with gdb and not much luck trying to figure out much. Any thoughts here appreciated! thanks, steven |
Date | 2003-10-16 05:00 |
From | stevenyi |
Subject | [CSOUND-DEV:3155] Re: --opcode-lib stuff |
Attachments | test.sh |
Hi John, Thanks for the changes. I did get a bit further but encountered more errors. I decided I would go ahead and try loading all of the opcode libs in the Opcodes directory to see the results. I figured that for each opcode lib that doesn't load it would give us error information. So, I made this command-line: ./csound --opcode-lib=Opcodes/babo.so,Opcodes/bbcut.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 test.csd (I put it in a shell script, also attached) And I got this: [root@localhost csound5]# ./csound --opcode-lib=Opcodes/babo.so,Opcodes/bbcut.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 test.csd Using csound.xmg 0dBFS level = 32767.0 Csound Version 4.24beta (Oct 15 2003) UnifiedCSD: test.csd STARTING FILE Creating orchestra Creating /tmp/fileitL6S3.orc (0x813f118) Creating score orchname: /tmp/fileitL6S3.orc scorename: /tmp/filecfKsbR.sco Loading libraries Opcodes/babo.so,Opcodes/bbcut.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: die) Failed to load Opcodes/babo.so Found handle Found size Length=80 Found init Calling init Csound tidy up: Segmentation fault Removing temporary file /tmp/filecfKsbR.sco ... Removing temporary file /tmp/fileitL6S3.orc ... So it looks like it failed to load babo gracefully, moved on to bbcut which it loaded but then died on. Running this with gdb, it dies on line 312 of dl_opcodes.c: resetter = dlsym(handle, "RESET"); Going to sleep now, will try again in the morning. Thanks! steven On Thu, 2003-10-16 at 02:12, John ffitch wrote: > Try again; code adjusted. There will be more of these > ==John > > |
Date | 2003-10-16 06:43 |
From | John ffitch |
Subject | [CSOUND-DEV:3153] Re: --opcode-lib stuff |
That error message means that the function auxalloc is used in teh .so file but is not defined. All functions used in any plugin must be in the global structure. What you are suggesting is that you have found another function that is needed. Will take a quick look. ==John |
Date | 2003-10-16 07:12 |
From | John ffitch |
Subject | [CSOUND-DEV:3154] Re: --opcode-lib stuff |
Try again; code adjusted. There will be more of these ==John |
Date | 2003-10-16 08:43 |
From | John ffitch |
Subject | [CSOUND-DEV:3156] Re: --opcode-lib stuff |
Added die to the internal allowed calls. Cannot see why dlsym on RESET should fail -- I would expect it to return NULL. Anyway I have revised the code. What would be useful is an attempt top load each plugin separately and then listing the undefined functions. Then I could fix in one step. ==John |
Date | 2003-10-16 13:21 |
From | stevenyi |
Subject | [CSOUND-DEV:3159] Re: --opcode-lib stuff |
Running the test.sh without bbcut.so, I receive: [root@localhost csound5]# sh ./test.sh Using csound.xmg 0dBFS level = 32767.0 Csound Version 4.24beta (Oct 16 2003) UnifiedCSD: test.csd STARTING FILE Creating orchestra Creating /tmp/fileQIwLDW.orc (0x8139138) Creating score orchname:? /tmp/fileQIwLDW.orc scorename: /tmp/fileF48CaQ.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=0x813e948, opcodlst=0x81392b8, 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=0x8144368, opcodlst=0x813eb98, length=562 Adding 40(1) -- first opcode is dam Found handle Found size Length=160 Found init Calling init Got opcodlst 0x400228a0 oplstend=0x8144390, opcodlst=0x813eb98, length=563 Adding 160(4) -- first opcode is filter2 Found handle Found size Length=120 Found init Calling init Got opcodlst 0x40025560 oplstend=0x8144430, opcodlst=0x813eb98, 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/fileF48CaQ.sco ... Removing temporary file /tmp/fileQIwLDW.orc ... I can't find where it's dying with gdb, it seems to get through csoundLoadExternals alright (the "All loaded" message prints), but before anything else happens in csoundCompile it segfaults. Thanks, steven |
Date | 2003-10-16 17:19 |
From | John ffitch |
Subject | [CSOUND-DEV:3161] Re: --opcode-lib stuff |
Thanks; I will look at that tomorrow (Ta'iChi tonight) ==John |
Date | 2003-10-16 18:02 |
From | "Matt J. Ingalls" |
Subject | [CSOUND-DEV:3163] Re: --opcode-lib stuff |
> server. (BTW: is it ella or earth.mills.edu? apologies if everyone has i think they switched machines recently. but csound-dev@mills.edu should work fine. -m |