[chuck] errors with make linux-jack

Ge Wang gewang at CS.Princeton.EDU
Tue Jul 27 18:44:39 EDT 2004


On Jul 27, 2004, at 6:05 PM, smoerk wrote:

> am i doing something wrong? it builds for alsa, but not for jack... 
> (jack 0.98)

you are not - it is our fault...  to fix - do one of 3 things:

1) open util_sndfile.h, and make sure line 30 looks like the following:

#if defined(__LINUX_ALSA__) || defined(__LINUX_OSS__) || 
defined(__LINUX_JACK__)

OR...

2) checkout the most recent CVS version:

 > bash
 > export CVS_RSH=ssh
 > cvs -d :ext:anon-chuck at cvs.cs.princeton.edu:/cvs checkout chuck_dev

no password

 > exit

OR...

3) grab the current snap shot from:

http://chuck.cs.princeton.edu/release/snapshots/

Best,
Ge!

>
> # make linux-jack
> make -f makefile.jack
> make[1]: Entering directory `/opt/cvs/chuck_dev/src'
> bison -dv -b chuck chuck.y
> gcc -D__LINUX_JACK__ -O3 -g -c chuck.tab.c
> flex -ochuck.yy.c chuck.lex
> gcc -D__LINUX_JACK__ -O3 -g -c chuck.yy.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_main.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_errormsg.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_utils.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_symbol.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_table.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_temp.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_absyn.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_type.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_emit.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_frame.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_instr.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_vm.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_ugen.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_bbq.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_socket.c
> gcc -D__LINUX_JACK__ -O3 -g -c chuck_dl.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c digitalio_rtaudio.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c rtaudio.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c midiio_alsa.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c ugen_osc.cpp
> gcc -D__LINUX_JACK__ -O3 -g -c ugen_xxx.cpp
> In file included from ugen_xxx.cpp:627:
> util_sndfile.h:319: error: syntax error before `;' token
> util_sndfile.h:329: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:382: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:383: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:476: error: parse error before `*' token
> util_sndfile.h:493: error: parse error before `*' token
> util_sndfile.h:494: error: parse error before `*' token
> util_sndfile.h:506: error: parse error before `*' token
> util_sndfile.h:507: error: parse error before `*' token
> util_sndfile.h:509: error: parse error before `*' token
> util_sndfile.h:510: error: parse error before `*' token
> util_sndfile.h:512: error: parse error before `*' token
> util_sndfile.h:513: error: parse error before `*' token
> util_sndfile.h:515: error: parse error before `*' token
> util_sndfile.h:516: error: parse error before `*' token
> util_sndfile.h:523: error: parse error before `*' token
> util_sndfile.h:524: error: parse error before `*' token
> util_sndfile.h:526: error: parse error before `*' token
> util_sndfile.h:527: error: parse error before `*' token
> util_sndfile.h:529: error: parse error before `*' token
> util_sndfile.h:530: error: parse error before `*' token
> util_sndfile.h:532: error: parse error before `*' token
> util_sndfile.h:533: error: parse error before `*' token
> util_sndfile.h:725: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:737: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:738: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:740: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:741: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:742: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:751: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:752: error: 'sf_count_t' is used as a type, but is not 
> defined
>    as a type.
> util_sndfile.h:769: error: `read_short' was not declared in this scope
> util_sndfile.h:769: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:769: error: parse error before `)' token
> util_sndfile.h:769: error: variable declaration is not allowed here
> util_sndfile.h:770: error: `read_int' was not declared in this scope
> util_sndfile.h:770: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:770: error: parse error before `)' token
> util_sndfile.h:770: error: variable declaration is not allowed here
> util_sndfile.h:771: error: `read_float' was not declared in this scope
> util_sndfile.h:771: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:771: error: parse error before `)' token
> util_sndfile.h:771: error: variable declaration is not allowed here
> util_sndfile.h:772: error: `read_double' was not declared in this scope
> util_sndfile.h:772: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:772: error: parse error before `)' token
> util_sndfile.h:772: error: variable declaration is not allowed here
> util_sndfile.h:774: error: `write_short' was not declared in this scope
> util_sndfile.h:774: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:774: error: parse error before `)' token
> util_sndfile.h:774: error: variable declaration is not allowed here
> util_sndfile.h:775: error: `write_int' was not declared in this scope
> util_sndfile.h:775: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:775: error: parse error before `)' token
> util_sndfile.h:775: error: variable declaration is not allowed here
> util_sndfile.h:776: error: `write_float' was not declared in this scope
> util_sndfile.h:776: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:776: error: parse error before `)' token
> util_sndfile.h:776: error: variable declaration is not allowed here
> util_sndfile.h:777: error: `write_double' was not declared in this 
> scope
> util_sndfile.h:777: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:777: error: parse error before `)' token
> util_sndfile.h:777: error: variable declaration is not allowed here
> util_sndfile.h:779: error: `seek' was not declared in this scope
> util_sndfile.h:779: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:779: error: parse error before `)' token
> util_sndfile.h:779: error: variable declaration is not allowed here
> util_sndfile.h:1017: error: parse error before `*' token
> util_sndfile.h:1034: error: parse error before `*' token
> util_sndfile.h:1035: error: parse error before `*' token
> util_sndfile.h:1036: error: parse error before `*' token
> util_sndfile.h:1037: error: parse error before `*' token
> util_sndfile.h:1038: error: parse error before `*' token
> util_sndfile.h:1039: error: parse error before `*' token
> util_sndfile.h:1043: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:1043: error: parse error before `)' token
> util_sndfile.h:1111: error: type specifier omitted for parameter 
> `sf_count_t'
> util_sndfile.h:1111: error: parse error before `)' token
> In file included from ugen_xxx.cpp:627:
> util_sndfile.h:1434:10: #error "Target CPU endian-ness unknown. May 
> need to hand edit src/config.h"
> util_sndfile.h:1463:10: #error "Target CPU endian-ness unknown. May 
> need to hand edit src/config.h"
> util_sndfile.h:2489:10: warning: #warning "Don't have the functions 
> lrint() and lrintf()."
> util_sndfile.h:2490:10: warning: #warning "Replacing these functions 
> with a standard C cast."
> ugen_xxx.cpp: In function `void sndbuf_ctrl_read(double, void*, 
> void*)':
> ugen_xxx.cpp:652: error: 'struct SF_INFO' has no member named 'frames'
> ugen_xxx.cpp:655: error: 'struct SF_INFO' has no member named 'frames'
> ugen_xxx.cpp:657: error: `sf_read_float' undeclared (first use this 
> function)
> ugen_xxx.cpp:657: error: (Each undeclared identifier is reported only 
> once for
>    each function it appears in.)
> make[1]: *** [ugen_xxx.o] Error 1
> make[1]: Leaving directory `/opt/cvs/chuck_dev/src'
> make: [linux-jack] Error 2 (ignored)
>
> _______________________________________________
> chuck mailing list
> chuck at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck



More information about the chuck mailing list