[CM] warning and error message in clisp-clm

zong king rlawns2003@yahoo.com
Wed, 5 Mar 2003 03:34:06 -0800 (PST)


--0-851927808-1046864046=:64791
Content-Type: text/plain; charset=us-ascii


Hi all,

When I try to compile the following simple clm-instrument;

(definstrument  ex1  (start-time duration  freq  amp)

(let*              ((beg  (floor (* start-time  *srate*)))

(end (+ beg (floor (* duration  *srate*))))

(sine (make-oscil  freq)))

(run      

(loop for i from beg below end do

(outa i  (*  amp  (oscil  sine)))))))

==============================================

 

I got warning message  as follow;

 

;; Loading file /usr/lib/clisp/clm/lispinit.lisp ...

;;

;; CLM 2 (02/19/2003)

;;

;; Loaded file /usr/lib/clisp/clm/lispinit.lisp

[1]> (compile-file "1.ins")

 

Compiling file /home/zong/1.ins ...

; Writing "/home/zong/clm_lnxclp_EX1.c"

; Compiling "/home/zong/clm_lnxclp_EX1.c"

 

WARNING in EX1 in lines 1..13 :

SETQ: assignment to the internal special symbol CLM::EXPLODE-CTR

WARNING in EX1 in lines 1..13 :

SETQ: assignment to the internal special symbol CLM::*EXPLODE-LIST*

WARNING in EX1 in lines 1..13 :

SETQ: assignment to the internal special symbol CLM::CDT-END

 

Wrote file /home/zong/1.fas

0 errors, 3 warnings

#P"/home/zong/1.fas" ;

3 ;

3



=====================================

 

And after "load", with-sound makes the following error message;

 

[2]> (load "1")

;; Loading file /home/zong/1.fas ...

;; Loaded file /home/zong/1.fas

T

[3]> (with-sound () (ex1 0 2 440 0.9))

; Loading clm_lnxclp_ex11132 into /home/zong/rc...cc -DCLM -g  -O3  -DLINUX -DHAVE

_ALSA  /home/zong/rc.c -o /home/zong/rc /home/zong/clm_lnxclp_EX1.o  -L/usr/lib/clisp/

clm -lmus  -lasound  -lm

/usr/bin/ld: cannot find -lasound

collect2: ld returned 1 exit status

make: *** [rc] Error 1

/bin/bash: line 1: /home/zong/rc: No such file or directory

 

"test.snd"

[4]>

======================

Would anyone please help? I am using RedHat 8.0.

Thanks in advance,

 

Zong



---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
--0-851927808-1046864046=:64791
Content-Type: text/html; charset=us-ascii

<P>Hi all,</P>
<P>When I try to compile the following simple clm-instrument;</P><SPAN lang=EN-US><FONT face=&#48148;&#53461;>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#0000bf><SPAN lang=EN-US>(definstrument</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> ex1</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> (start-time duration</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> freq</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> amp)</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 6.75pt"><FONT color=#0000bf><SPAN lang=EN-US>(let* <SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>((beg</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> (floor (* start-time</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> *srate*)))</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 40pt"><FONT color=#0000bf><SPAN lang=EN-US>(end (+ beg (floor (* duration</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> *srate*))))</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 40pt"><FONT color=#0000bf><SPAN lang=EN-US>(sine (make-oscil</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> freq)))</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 6.75pt"><FONT color=#0000bf><SPAN lang=EN-US>(run </SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN lang=EN-US> </SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 26.7pt"><SPAN lang=EN-US><FONT color=#0000bf>(loop for i from beg below end do</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 26.7pt; mso-char-indent-count: 2.67; mso-char-indent-size: 10.0pt"><FONT color=#0000bf><SPAN lang=EN-US>(outa i</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> (*</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> amp</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> (oscil</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: &#48148;&#53461;">&nbsp;</SPAN><SPAN lang=EN-US> sine)))))))</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">==============================================</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">I got warning message &nbsp;as follow;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>;; Loading file /usr/lib/clisp/clm/lispinit.lisp ...</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>;;</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>;; CLM 2 (02/19/2003)</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>;;</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>;; Loaded file /usr/lib/clisp/clm/lispinit.lisp</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>[1]&gt; (compile-file "1.ins")</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>&nbsp;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>Compiling file /home/zong/1.ins ...</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>; Writing "/home/zong/clm_lnxclp_EX1.c"</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>; Compiling "/home/zong/clm_lnxclp_EX1.c"</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>&nbsp;<o:p></o:p></FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>WARNING in EX1 in lines 1..13 :</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>SETQ: assignment to the internal special symbol CLM::EXPLODE-CTR</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>WARNING in EX1 in lines 1..13 :</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>SETQ: assignment to the internal special symbol CLM::*EXPLODE-LIST*</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>WARNING in EX1 in lines 1..13 :</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>SETQ: assignment to the internal special symbol CLM::CDT-END</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>&nbsp;<o:p></o:p></FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>Wrote file /home/zong/1.fas</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>0 errors, 3 warnings</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>#P"/home/zong/1.fas" ;</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>3 ;</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#00007f>3</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>=====================================</SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US></SPAN>&nbsp;</P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>And after "load", with-sound makes the following error message;</SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US></SPAN>&nbsp;</P><SPAN lang=EN-US>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>[2]&gt; (load "1")</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>;; Loading file /home/zong/1.fas ...</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>;; Loaded file /home/zong/1.fas</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>T</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>[3]&gt; (with-sound () (ex1 0 2 440 0.9))</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>; Loading clm_lnxclp_ex11132 into /home/zong/rc...cc -DCLM -g<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-O3<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-DLINUX -DHAVE</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>_ALSA<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>/home/zong/rc.c -o /home/zong/rc /home/zong/clm_lnxclp_EX1.o<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-L/usr/lib/clisp/</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>clm -lmus<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-lasound<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-lm</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>/usr/bin/ld: cannot find -lasound</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>collect2: ld returned 1 exit status</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>make: *** [rc] Error 1</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>/bin/bash: line 1: /home/zong/rc: No such file or directory</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>&nbsp;<o:p></o:p></FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>"test.snd"</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#0000bf>[4]&gt;</FONT></SPAN></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">======================</P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">Would anyone please help? I am using RedHat 8.0.</P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">Thanks in advance,</P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">Zong</SPAN></FONT></SPAN></P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/finance/mailtagline/*http://taxes.yahoo.com/">Yahoo! Tax Center</a> - forms, calculators, tips, and more
--0-851927808-1046864046=:64791--