Csound Csound-dev Csound-tekno Search About

[Cs-dev] Gabriel's opcodes

Date2005-02-10 10:14
Fromjpff@codemist.co.uk
Subject[Cs-dev] Gabriel's opcodes
I have been reviewing the code, and the functions tabplay_k and
tabrec_k contain a serious error I do not understand

        MYFLT *fno;             /* **** THIS IS AN ERROR **** Uninitialised */
        if ((*fno = (int)*p->kfn) <= 0 || *fno > csound->maxfnum || (ftp = ftnp2find(csound,fno)) == NULL) {
          /*sprintf(errmsg, Str(X_315,"Invalid ftable no. %f"),*p->kfn); */
          sprintf(errmsg, "Invalid ftable no. %f",*p->kfn);
          return perferror(errmsg);
        }

*fno is not a valid location and this may crash in an arbitrary way.
Does anyone understand what it is supposed to do?

==John ffitch


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-10 11:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] Gabriel's opcodes
That looks like a k-rate function table number, so you can access
different tables in performance. I suppose fno should get its
value from one of the opcode arguments. The code seems to test to see
if the function table number is valid and if the table exists.

Victor

At 10:14 10/02/2005, you wrote:
>I have been reviewing the code, and the functions tabplay_k and
>tabrec_k contain a serious error I do not understand
>
>         MYFLT *fno;             /* **** THIS IS AN ERROR **** 
> Uninitialised */
>         if ((*fno = (int)*p->kfn) <= 0 || *fno > csound->maxfnum || (ftp 
> = ftnp2find(csound,fno)) == NULL) {
>           /*sprintf(errmsg, Str(X_315,"Invalid ftable no. %f"),*p->kfn); */
>           sprintf(errmsg, "Invalid ftable no. %f",*p->kfn);
>           return perferror(errmsg);
>         }
>
>*fno is not a valid location and this may crash in an arbitrary way.
>Does anyone understand what it is supposed to do?
>
>==John ffitch
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-13 02:03
Fromkelly
Subject[Cs-dev] nub building csound5 fltk
i'm trying to compile csound5,
i got this far and its doesn't seem to be seeing
the Fl/Fl.H though greping the dir i get:

 >grep "lock()" /usr/include/Fl/*

/usr/include/Fl/Fl.H:  static void lock();

i'm missing something silly.
kelly


gcc -Wl,-Bdynamic -o cscore util1/cscore/cscore_main.o -L. -L. 
-L/usr/lib -L/usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config 
-L/usr/X11R6/lib -lcsound -lsndfile -lfltk -lm -lXext -lX11 -lsupc++ 
-lfltk -ldl -lstdc++ -lpthread -lm
./libcsound.a(main.o)(.text+0x4e6): In function `csoundCompile':
Top/main.c:417: warning: the use of `tmpnam' is dangerous, better use 
`mkstemp'
./libcsound.a(FL_graph.o)(.text+0x7a4): In function `POLL_EVENTS':
InOut/FL_graph.cpp:284: undefined reference to `Fl::lock()'
./libcsound.a(FL_graph.o)(.text+0x7b5):InOut/FL_graph.cpp:286: undefined 
reference to `Fl::unlock()'
./libcsound.a(FL_graph.o)(.text+0x851): In function `myFLwait':
InOut/FL_graph.cpp:309: undefined reference to `Fl::lock()'
./libcsound.a(FL_graph.o)(.text+0x86c):InOut/FL_graph.cpp:311: undefined 
reference to `Fl::unlock()'
./libcsound.a(FL_graph.o)(.text+0x9fe): In function `ReadXYin_':
InOut/FL_graph.cpp:349: undefined reference to `Fl::lock()'
./libcsound.a(FL_graph.o)(.text+0xa13):InOut/FL_graph.cpp:351: undefined 
reference to `Fl::unlock()'
./libcsound.a(widgets.o)(.text+0x4019): In function `fl_setWidgetValue':
InOut/widgets.cpp:2451: undefined reference to `Fl::unlock()'
./libcsound.a(widgets.o)(.text+0x4062):InOut/widgets.cpp:2446: undefined 
reference to `Fl::lock()'
./libcsound.a(widgets.o)(.text+0x6cbc): In function `fltkRun(void*)':
InOut/widgets.cpp:1710: undefined reference to `Fl::unlock()'
./libcsound.a(widgets.o)(.text+0x6cce):InOut/widgets.cpp:1706: undefined 
reference to `Fl::lock()'
collect2: ld returned 1 exit status




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-13 02:53
FromAndres Cabrera
SubjectRe: [Cs-dev] nub building csound5 fltk
Hi,
The file FL.h is found, since the thing builds, what's happening is the 
library isn't so the problem is during linking. The library is called 
libfltk.a.
Have you built fltk? Or did you install an rpm package?

Andrés

kelly wrote:
> i'm trying to compile csound5,
> i got this far and its doesn't seem to be seeing
> the Fl/Fl.H though greping the dir i get:
> 
>  >grep "lock()" /usr/include/Fl/*
> 
> /usr/include/Fl/Fl.H:  static void lock();
> 
> i'm missing something silly.
> kelly
> 
> 
> gcc -Wl,-Bdynamic -o cscore util1/cscore/cscore_main.o -L. -L. 
> -L/usr/lib -L/usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config 
> -L/usr/X11R6/lib -lcsound -lsndfile -lfltk -lm -lXext -lX11 -lsupc++ 
> -lfltk -ldl -lstdc++ -lpthread -lm
> ./libcsound.a(main.o)(.text+0x4e6): In function `csoundCompile':
> Top/main.c:417: warning: the use of `tmpnam' is dangerous, better use 
> `mkstemp'
> ./libcsound.a(FL_graph.o)(.text+0x7a4): In function `POLL_EVENTS':
> InOut/FL_graph.cpp:284: undefined reference to `Fl::lock()'
> ./libcsound.a(FL_graph.o)(.text+0x7b5):InOut/FL_graph.cpp:286: undefined 
> reference to `Fl::unlock()'
> ./libcsound.a(FL_graph.o)(.text+0x851): In function `myFLwait':
> InOut/FL_graph.cpp:309: undefined reference to `Fl::lock()'
> ./libcsound.a(FL_graph.o)(.text+0x86c):InOut/FL_graph.cpp:311: undefined 
> reference to `Fl::unlock()'
> ./libcsound.a(FL_graph.o)(.text+0x9fe): In function `ReadXYin_':
> InOut/FL_graph.cpp:349: undefined reference to `Fl::lock()'
> ./libcsound.a(FL_graph.o)(.text+0xa13):InOut/FL_graph.cpp:351: undefined 
> reference to `Fl::unlock()'
> ./libcsound.a(widgets.o)(.text+0x4019): In function `fl_setWidgetValue':
> InOut/widgets.cpp:2451: undefined reference to `Fl::unlock()'
> ./libcsound.a(widgets.o)(.text+0x4062):InOut/widgets.cpp:2446: undefined 
> reference to `Fl::lock()'
> ./libcsound.a(widgets.o)(.text+0x6cbc): In function `fltkRun(void*)':
> InOut/widgets.cpp:1710: undefined reference to `Fl::unlock()'
> ./libcsound.a(widgets.o)(.text+0x6cce):InOut/widgets.cpp:1706: undefined 
> reference to `Fl::lock()'
> collect2: ld returned 1 exit status
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-13 02:55
FromAndres Cabrera
SubjectRe: [Cs-dev] nub building csound5 fltk
Now I remember.... you have to build fltk with --enable-threads

Andres

kelly wrote:
> i'm trying to compile csound5,
> i got this far and its doesn't seem to be seeing
> the Fl/Fl.H though greping the dir i get:
> 
>  >grep "lock()" /usr/include/Fl/*
> 
> /usr/include/Fl/Fl.H:  static void lock();
> 
> i'm missing something silly.
> kelly
> 
> 
> gcc -Wl,-Bdynamic -o cscore util1/cscore/cscore_main.o -L. -L. 
> -L/usr/lib -L/usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config 
> -L/usr/X11R6/lib -lcsound -lsndfile -lfltk -lm -lXext -lX11 -lsupc++ 
> -lfltk -ldl -lstdc++ -lpthread -lm
> ./libcsound.a(main.o)(.text+0x4e6): In function `csoundCompile':
> Top/main.c:417: warning: the use of `tmpnam' is dangerous, better use 
> `mkstemp'
> ./libcsound.a(FL_graph.o)(.text+0x7a4): In function `POLL_EVENTS':
> InOut/FL_graph.cpp:284: undefined reference to `Fl::lock()'
> ./libcsound.a(FL_graph.o)(.text+0x7b5):InOut/FL_graph.cpp:286: undefined 
> reference to `Fl::unlock()'
> ./libcsound.a(FL_graph.o)(.text+0x851): In function `myFLwait':
> InOut/FL_graph.cpp:309: undefined reference to `Fl::lock()'
> ./libcsound.a(FL_graph.o)(.text+0x86c):InOut/FL_graph.cpp:311: undefined 
> reference to `Fl::unlock()'
> ./libcsound.a(FL_graph.o)(.text+0x9fe): In function `ReadXYin_':
> InOut/FL_graph.cpp:349: undefined reference to `Fl::lock()'
> ./libcsound.a(FL_graph.o)(.text+0xa13):InOut/FL_graph.cpp:351: undefined 
> reference to `Fl::unlock()'
> ./libcsound.a(widgets.o)(.text+0x4019): In function `fl_setWidgetValue':
> InOut/widgets.cpp:2451: undefined reference to `Fl::unlock()'
> ./libcsound.a(widgets.o)(.text+0x4062):InOut/widgets.cpp:2446: undefined 
> reference to `Fl::lock()'
> ./libcsound.a(widgets.o)(.text+0x6cbc): In function `fltkRun(void*)':
> InOut/widgets.cpp:1710: undefined reference to `Fl::unlock()'
> ./libcsound.a(widgets.o)(.text+0x6cce):InOut/widgets.cpp:1706: undefined 
> reference to `Fl::lock()'
> collect2: ld returned 1 exit status
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-13 05:39
Fromkelly
SubjectRe: [Cs-dev] nub building csound5 fltk
it seems to have found /usr/lib/libfltk.a  all right, the default distro 
that you apt-get from ccrma wasn't working. having built fltk in 
/usr/local/lib with the options --enable-threads and hiding the 
apt-getted ccrma versions of fltk stuff got me to here:

gcc "-Wl,-Bdynamic -shared" -o libbabo.so Opcodes/babo.os -L. -L. 
-L/usr/lib -L/ usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config

the quotes are messing up this line and so is the space inside 
-L/usr/local/lib i don't know scons well enough to figure where these 
artifacts come from....

k.

Andres Cabrera wrote:
> Now I remember.... you have to build fltk with --enable-threads
> 
> Andres
> 
> kelly wrote:
> 
>> i'm trying to compile csound5,
>> i got this far and its doesn't seem to be seeing
>> the Fl/Fl.H though greping the dir i get:
>>
>>  >grep "lock()" /usr/include/Fl/*
>>
>> /usr/include/Fl/Fl.H:  static void lock();
>>
>> i'm missing something silly.
>> kelly
>>
>>
>> gcc -Wl,-Bdynamic -o cscore util1/cscore/cscore_main.o -L. -L. 
>> -L/usr/lib -L/usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config 
>> -L/usr/X11R6/lib -lcsound -lsndfile -lfltk -lm -lXext -lX11 -lsupc++ 
>> -lfltk -ldl -lstdc++ -lpthread -lm
>> ./libcsound.a(main.o)(.text+0x4e6): In function `csoundCompile':
>> Top/main.c:417: warning: the use of `tmpnam' is dangerous, better use 
>> `mkstemp'
>> ./libcsound.a(FL_graph.o)(.text+0x7a4): In function `POLL_EVENTS':
>> InOut/FL_graph.cpp:284: undefined reference to `Fl::lock()'
>> ./libcsound.a(FL_graph.o)(.text+0x7b5):InOut/FL_graph.cpp:286: 
>> undefined reference to `Fl::unlock()'
>> ./libcsound.a(FL_graph.o)(.text+0x851): In function `myFLwait':
>> InOut/FL_graph.cpp:309: undefined reference to `Fl::lock()'
>> ./libcsound.a(FL_graph.o)(.text+0x86c):InOut/FL_graph.cpp:311: 
>> undefined reference to `Fl::unlock()'
>> ./libcsound.a(FL_graph.o)(.text+0x9fe): In function `ReadXYin_':
>> InOut/FL_graph.cpp:349: undefined reference to `Fl::lock()'
>> ./libcsound.a(FL_graph.o)(.text+0xa13):InOut/FL_graph.cpp:351: 
>> undefined reference to `Fl::unlock()'
>> ./libcsound.a(widgets.o)(.text+0x4019): In function `fl_setWidgetValue':
>> InOut/widgets.cpp:2451: undefined reference to `Fl::unlock()'
>> ./libcsound.a(widgets.o)(.text+0x4062):InOut/widgets.cpp:2446: 
>> undefined reference to `Fl::lock()'
>> ./libcsound.a(widgets.o)(.text+0x6cbc): In function `fltkRun(void*)':
>> InOut/widgets.cpp:1710: undefined reference to `Fl::unlock()'
>> ./libcsound.a(widgets.o)(.text+0x6cce):InOut/widgets.cpp:1706: 
>> undefined reference to `Fl::lock()'
>> collect2: ld returned 1 exit status
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-13 09:59
FromIstvan Varga
SubjectRe: [Cs-dev] nub building csound5 fltk
kelly wrote:

> it seems to have found /usr/lib/libfltk.a  all right, the default distro 
> that you apt-get from ccrma wasn't working. having built fltk in 
> /usr/local/lib with the options --enable-threads and hiding the 
> apt-getted ccrma versions of fltk stuff got me to here:
> 
> gcc "-Wl,-Bdynamic -shared" -o libbabo.so Opcodes/babo.os -L. -L. 
> -L/usr/lib -L/ usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config

You have an old version of scons; after upgrading it this error should be
fixed (a similar problem was reported by Dave Phillips).



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net