Aren'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>
<<a href="mailto:gautam.akiwate@gmail.com">gautam.akiwate@gmail.com</a>> 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 'undefined reference to yyerror'<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 "ie_parser.y"<br>
<br>
#include<stdio.h><br>
#include "lp.h"<br>
<br>
+ void yyerror (char *s)<br>
+ {<br>
+ fprintf (stderr, "%s\n", 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 < 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 <<a href="mailto:siddhesh.poyarekar@gmail.com">siddhesh.poyarekar@gmail.com</a>><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>
<<a href="mailto:CAAHN_R2mSZqk1BadZy1uzXnTdBMm81-D5ufAfXec98bb%2BxSjSw@mail.gmail.com">CAAHN_R2mSZqk1BadZy1uzXnTdBMm81-D5ufAfXec98bb+xSjSw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate<br>
<<a href="mailto:gautam.akiwate@gmail.com">gautam.akiwate@gmail.com</a>> wrote:<br>
> AC_PROG_YACC<br>
> 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 <<a href="mailto:metherid@gmail.com">metherid@gmail.com</a>><br>
Subject: [fedora-india] Ask Fedora launched<br>
To: Fedora India <<a href="mailto:india@lists.fedoraproject.org">india@lists.fedoraproject.org</a>><br>
Message-ID: <<a href="mailto:4E81930B.3000000@gmail.com">4E81930B.3000000@gmail.com</a>><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 <<a href="mailto:libregeek@gmail.com">libregeek@gmail.com</a>><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>
<<a href="mailto:CAFa-k1gCGKqYi7qJvc6arLUD4F_Q7gga5idmPBq3OTx4KdNaoQ@mail.gmail.com">CAFa-k1gCGKqYi7qJvc6arLUD4F_Q7gga5idmPBq3OTx4KdNaoQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 27 September 2011 14:40, Rahul Sundaram <<a href="mailto:metherid@gmail.com">metherid@gmail.com</a>> wrote:<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>
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 <<a href="mailto:kumarpraveen.nitdgp@gmail.com">kumarpraveen.nitdgp@gmail.com</a>><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>
<<a href="mailto:CAK32T6VCmo0CsqZC1RcA3bOXiVjmfV01JR51boY%2BUGVVdT5Gpw@mail.gmail.com">CAK32T6VCmo0CsqZC1RcA3bOXiVjmfV01JR51boY+UGVVdT5Gpw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Tue, Sep 27, 2011 at 4:27 PM, Manilal K M <<a href="mailto:libregeek@gmail.com">libregeek@gmail.com</a>> wrote:<br>
<br>
> On 27 September 2011 14:40, Rahul Sundaram <<a href="mailto:metherid@gmail.com">metherid@gmail.com</a>> wrote:<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>
> Thanks for setting up such a cool application. What type of Fedora<br>
> questions are expected? end-user, developer or server admins.. ?<br>
><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>
><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>
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>"Quis custodiet ipsos custodes?"<br><br>