Aren&#39;t yyerror and yywrap inbuilt definitions?<br><br>If they are why are we redefining them? <br><br>Gautam<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
--- On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate<br>
&lt;<a href="mailto:gautam.akiwate@gmail.com">gautam.akiwate@gmail.com</a>&gt; wrote:<br>
| But when I do a make it generates an error saying that it is unable to find<br>
| yylwrap etc.<br>
\--<br>
<br>
In addition, I also got the error &#39;undefined reference to yyerror&#39;<br>
when I tried your language-parser-1.0 sources that you had sent. I<br>
added the following in ie_parser.c after the inclusion of lp.h:<br>
<br>
=== CODE ===<br>
<br>
/* Line 189 of yacc.c  */<br>
#line 20 &quot;ie_parser.y&quot;<br>
<br>
#include&lt;stdio.h&gt;<br>
#include &quot;lp.h&quot;<br>
<br>
+ void yyerror (char *s)<br>
+ {<br>
+    fprintf (stderr, &quot;%s\n&quot;, s);<br>
+ }<br>
<br>
=== END ===<br>
<br>
I also added a yywrap() before the main() function in ie_parser.c:<br>
<br>
=== CODE ===<br>
<br>
+ int yywrap()<br>
+ {<br>
+        return (1);<br>
+ }<br>
<br>
main(){<br>
        do {<br>
                yyparse();<br>
        }<br>
        while(!feof(yyin));<br>
}<br>
<br>
=== END ===<br>
<br>
I was then able to build, and test run it:<br>
<br>
  $ aclocal; autoconf; automake -a -c<br>
  $ ./configure; make<br>
  $ ./lparser &lt; learn.txt<br>
<br>
SK<br>
<br>
--<br>
Shakthi Kannan<br>
<a href="http://www.shakthimaan.com" target="_blank">http://www.shakthimaan.com</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 26 Sep 2011 23:16:28 +0530<br>
From: Siddhesh Poyarekar &lt;<a href="mailto:siddhesh.poyarekar@gmail.com">siddhesh.poyarekar@gmail.com</a>&gt;<br>
Subject: Re: [fedora-india] Autotools Problem<br>
To: <a href="mailto:india@lists.fedoraproject.org">india@lists.fedoraproject.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAAHN_R2mSZqk1BadZy1uzXnTdBMm81-D5ufAfXec98bb%2BxSjSw@mail.gmail.com">CAAHN_R2mSZqk1BadZy1uzXnTdBMm81-D5ufAfXec98bb+xSjSw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate<br>
&lt;<a href="mailto:gautam.akiwate@gmail.com">gautam.akiwate@gmail.com</a>&gt; wrote:<br>
&gt; AC_PROG_YACC<br>
&gt; AM_PROG_LEX<br>
<br>
The problem with these macros are that they only generate warnings and<br>
do not die with an error. So if you want to surely die if there is no<br>
lex/yacc on the system, then you will need to add additional checks.<br>
The autotools info doc has more information on how you can do this.<br>
<br>
--<br>
Siddhesh Poyarekar<br>
<a href="http://siddhesh.in" target="_blank">http://siddhesh.in</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 27 Sep 2011 14:40:35 +0530<br>
From: Rahul Sundaram &lt;<a href="mailto:metherid@gmail.com">metherid@gmail.com</a>&gt;<br>
Subject: [fedora-india] Ask Fedora launched<br>
To: Fedora India &lt;<a href="mailto:india@lists.fedoraproject.org">india@lists.fedoraproject.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4E81930B.3000000@gmail.com">4E81930B.3000000@gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi<br>
<br>
<a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a> is a question and answer oriented forum for<br>
Fedora.  It has been launched today to provide a community support<br>
portal for Fedora community and build a knowledge base in a organic way.<br>
<br>
You do not need to a separate id to post questions or answer them.  You<br>
can use any openid to login including Google, Yahoo or Wordpress.  You<br>
can use your Fedora identity as well (<a href="http://fasname.id.fedoraproject.org" target="_blank">fasname.id.fedoraproject.org</a>).<br>
<br>
The full launch will be in sync with the Fedora 16 release.  I am<br>
announcing it early here to have some feedback and to feed in some<br>
relevant questions and answers.  Thanks to everyone who helped out<br>
including PJP,  Kevin Fenzi,  Toshio Ernie Kuratomi, Matthias Runge,<br>
Praveen Kumar,  Arun SAG,  Ratnadeep Debnath, Lakshmi Narasimhan,  and<br>
Jitesh Shah.  Let me know if you have any questions.<br>
<br>
Rahul<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 27 Sep 2011 16:27:39 +0530<br>
From: Manilal K M &lt;<a href="mailto:libregeek@gmail.com">libregeek@gmail.com</a>&gt;<br>
Subject: Re: [fedora-india] Ask Fedora launched<br>
To: <a href="mailto:india@lists.fedoraproject.org">india@lists.fedoraproject.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAFa-k1gCGKqYi7qJvc6arLUD4F_Q7gga5idmPBq3OTx4KdNaoQ@mail.gmail.com">CAFa-k1gCGKqYi7qJvc6arLUD4F_Q7gga5idmPBq3OTx4KdNaoQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 27 September 2011 14:40, Rahul Sundaram &lt;<a href="mailto:metherid@gmail.com">metherid@gmail.com</a>&gt; wrote:<br>
&gt; Hi<br>
&gt;<br>
&gt; <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a> is a question and answer oriented forum for<br>
&gt; Fedora. ?It has been launched today to provide a community support<br>
&gt; portal for Fedora community and build a knowledge base in a organic way.<br>
<br>
Thanks for setting up such a cool application. What type of Fedora<br>
questions are expected? end-user, developer or server admins.. ?<br>
<br>
regards<br>
--<br>
Manilal K M : ???????? ?? ??.<br>
<a href="http://libregeek.blogspot.com" target="_blank">http://libregeek.blogspot.com</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 27 Sep 2011 16:46:41 +0530<br>
From: Praveen Kumar &lt;<a href="mailto:kumarpraveen.nitdgp@gmail.com">kumarpraveen.nitdgp@gmail.com</a>&gt;<br>
Subject: Re: [fedora-india] Ask Fedora launched<br>
To: <a href="mailto:india@lists.fedoraproject.org">india@lists.fedoraproject.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAK32T6VCmo0CsqZC1RcA3bOXiVjmfV01JR51boY%2BUGVVdT5Gpw@mail.gmail.com">CAK32T6VCmo0CsqZC1RcA3bOXiVjmfV01JR51boY+UGVVdT5Gpw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
On Tue, Sep 27, 2011 at 4:27 PM, Manilal K M &lt;<a href="mailto:libregeek@gmail.com">libregeek@gmail.com</a>&gt; wrote:<br>
<br>
&gt; On 27 September 2011 14:40, Rahul Sundaram &lt;<a href="mailto:metherid@gmail.com">metherid@gmail.com</a>&gt; wrote:<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a> is a question and answer oriented forum for<br>
&gt; &gt; Fedora.  It has been launched today to provide a community support<br>
&gt; &gt; portal for Fedora community and build a knowledge base in a organic way.<br>
&gt;<br>
&gt; Thanks for setting up such a cool application. What type of Fedora<br>
&gt; questions are expected? end-user, developer or server admins.. ?<br>
&gt;<br>
You can ask any type of question related to fedora  but before that please<br>
make sure your question is not already asked.<br>
More Info : <a href="http://ask.fedoraproject.org/faq/" target="_blank">http://ask.fedoraproject.org/faq/</a><br>
<br>
&gt;<br>
&gt; regards<br>
&gt; --<br>
&gt; Manilal K M : ???????? ?? ??.<br>
&gt; <a href="http://libregeek.blogspot.com" target="_blank">http://libregeek.blogspot.com</a><br>
<br>
<br>
<br>
Regards,<br>
Praveen Kumar<br>
<a href="http://fedoraproject.org/" target="_blank">http://fedoraproject.org/</a><br>
<a href="http://kumar-pravin.blogspot.com" target="_blank">http://kumar-pravin.blogspot.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.fedoraproject.org/pipermail/india/attachments/20110927/d6c76629/attachment-0001.html" target="_blank">http://lists.fedoraproject.org/pipermail/india/attachments/20110927/d6c76629/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
india mailing list<br>
<a href="mailto:india@lists.fedoraproject.org">india@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/india" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/india</a><br>
<br>
End of india Digest, Vol 49, Issue 21<br>
*************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;Quis custodiet ipsos custodes?&quot;<br><br>