Re: [fedora-india] Autotools Problem
by Gautam Akiwate
Hi,
It seems that the flex has a bug. ( and it still hasn't been corrected
apparently as the version I run is 2.5.35)
The following is the solution suggested in the bison info.
/* Work around an incompatibility in flex (at least versions
2.5.31 through 2.5.33): it generates code that does
not conform to C89. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
# undef yywrap
# define yywrap() 1
But then why does this problem arise only when I use autotools. I never
faced this problem while I was
using a handmade Makefile?
Regards
Gautam
12 years, 5 months
Autotools Problem
by Gautam Akiwate
Aren't yyerror and yywrap inbuilt definitions?
If they are why are we redefining them?
Gautam
Hi,
>
> --- On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate
> <gautam.akiwate(a)gmail.com> wrote:
> | But when I do a make it generates an error saying that it is unable to
> find
> | yylwrap etc.
> \--
>
> In addition, I also got the error 'undefined reference to yyerror'
> when I tried your language-parser-1.0 sources that you had sent. I
> added the following in ie_parser.c after the inclusion of lp.h:
>
> === CODE ===
>
> /* Line 189 of yacc.c */
> #line 20 "ie_parser.y"
>
> #include<stdio.h>
> #include "lp.h"
>
> + void yyerror (char *s)
> + {
> + fprintf (stderr, "%s\n", s);
> + }
>
> === END ===
>
> I also added a yywrap() before the main() function in ie_parser.c:
>
> === CODE ===
>
> + int yywrap()
> + {
> + return (1);
> + }
>
> main(){
> do {
> yyparse();
> }
> while(!feof(yyin));
> }
>
> === END ===
>
> I was then able to build, and test run it:
>
> $ aclocal; autoconf; automake -a -c
> $ ./configure; make
> $ ./lparser < learn.txt
>
> SK
>
> --
> Shakthi Kannan
> http://www.shakthimaan.com
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 26 Sep 2011 23:16:28 +0530
> From: Siddhesh Poyarekar <siddhesh.poyarekar(a)gmail.com>
> Subject: Re: [fedora-india] Autotools Problem
> To: india(a)lists.fedoraproject.org
> Message-ID:
> <CAAHN_R2mSZqk1BadZy1uzXnTdBMm81-D5ufAfXec98bb+xSjSw(a)mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate
> <gautam.akiwate(a)gmail.com> wrote:
> > AC_PROG_YACC
> > AM_PROG_LEX
>
> The problem with these macros are that they only generate warnings and
> do not die with an error. So if you want to surely die if there is no
> lex/yacc on the system, then you will need to add additional checks.
> The autotools info doc has more information on how you can do this.
>
> --
> Siddhesh Poyarekar
> http://siddhesh.in
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 27 Sep 2011 14:40:35 +0530
> From: Rahul Sundaram <metherid(a)gmail.com>
> Subject: [fedora-india] Ask Fedora launched
> To: Fedora India <india(a)lists.fedoraproject.org>
> Message-ID: <4E81930B.3000000(a)gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi
>
> http://ask.fedoraproject.org is a question and answer oriented forum for
> Fedora. It has been launched today to provide a community support
> portal for Fedora community and build a knowledge base in a organic way.
>
> You do not need to a separate id to post questions or answer them. You
> can use any openid to login including Google, Yahoo or Wordpress. You
> can use your Fedora identity as well (fasname.id.fedoraproject.org).
>
> The full launch will be in sync with the Fedora 16 release. I am
> announcing it early here to have some feedback and to feed in some
> relevant questions and answers. Thanks to everyone who helped out
> including PJP, Kevin Fenzi, Toshio Ernie Kuratomi, Matthias Runge,
> Praveen Kumar, Arun SAG, Ratnadeep Debnath, Lakshmi Narasimhan, and
> Jitesh Shah. Let me know if you have any questions.
>
> Rahul
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 27 Sep 2011 16:27:39 +0530
> From: Manilal K M <libregeek(a)gmail.com>
> Subject: Re: [fedora-india] Ask Fedora launched
> To: india(a)lists.fedoraproject.org
> Message-ID:
> <CAFa-k1gCGKqYi7qJvc6arLUD4F_Q7gga5idmPBq3OTx4KdNaoQ(a)mail.gmail.com
> >
> Content-Type: text/plain; charset=UTF-8
>
> On 27 September 2011 14:40, Rahul Sundaram <metherid(a)gmail.com> wrote:
> > Hi
> >
> > http://ask.fedoraproject.org is a question and answer oriented forum for
> > Fedora. ?It has been launched today to provide a community support
> > portal for Fedora community and build a knowledge base in a organic way.
>
> Thanks for setting up such a cool application. What type of Fedora
> questions are expected? end-user, developer or server admins.. ?
>
> regards
> --
> Manilal K M : ???????? ?? ??.
> http://libregeek.blogspot.com
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 27 Sep 2011 16:46:41 +0530
> From: Praveen Kumar <kumarpraveen.nitdgp(a)gmail.com>
> Subject: Re: [fedora-india] Ask Fedora launched
> To: india(a)lists.fedoraproject.org
> Message-ID:
> <CAK32T6VCmo0CsqZC1RcA3bOXiVjmfV01JR51boY+UGVVdT5Gpw(a)mail.gmail.com
> >
> Content-Type: text/plain; charset="utf-8"
>
> On Tue, Sep 27, 2011 at 4:27 PM, Manilal K M <libregeek(a)gmail.com> wrote:
>
> > On 27 September 2011 14:40, Rahul Sundaram <metherid(a)gmail.com> wrote:
> > > Hi
> > >
> > > http://ask.fedoraproject.org is a question and answer oriented forum
> for
> > > Fedora. It has been launched today to provide a community support
> > > portal for Fedora community and build a knowledge base in a organic
> way.
> >
> > Thanks for setting up such a cool application. What type of Fedora
> > questions are expected? end-user, developer or server admins.. ?
> >
> You can ask any type of question related to fedora but before that please
> make sure your question is not already asked.
> More Info : http://ask.fedoraproject.org/faq/
>
> >
> > regards
> > --
> > Manilal K M : ???????? ?? ??.
> > http://libregeek.blogspot.com
>
>
>
> Regards,
> Praveen Kumar
> http://fedoraproject.org/
> http://kumar-pravin.blogspot.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.fedoraproject.org/pipermail/india/attachments/20110927/d6c76...
>
> ------------------------------
>
> _______________________________________________
> india mailing list
> india(a)lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/india
>
> End of india Digest, Vol 49, Issue 21
> *************************************
>
--
"Quis custodiet ipsos custodes?"
12 years, 5 months
Ask Fedora launched
by Rahul Sundaram
Hi
http://ask.fedoraproject.org is a question and answer oriented forum for
Fedora. It has been launched today to provide a community support
portal for Fedora community and build a knowledge base in a organic way.
You do not need to a separate id to post questions or answer them. You
can use any openid to login including Google, Yahoo or Wordpress. You
can use your Fedora identity as well (fasname.id.fedoraproject.org).
The full launch will be in sync with the Fedora 16 release. I am
announcing it early here to have some feedback and to feed in some
relevant questions and answers. Thanks to everyone who helped out
including PJP, Kevin Fenzi, Toshio Ernie Kuratomi, Matthias Runge,
Praveen Kumar, Arun SAG, Ratnadeep Debnath, Lakshmi Narasimhan, and
Jitesh Shah. Let me know if you have any questions.
Rahul
12 years, 5 months
Autotools Problem
by Gautam Akiwate
Hello,
I was part of the FAD, Pune held on 24th Sept. Following this I tried to use
autotools with a small code that I am working on. The issue is that
it uses lex and yacc and I haven't been able to make it work.
The present Makefile that I am using does the following:
CC=cc
LEXFLAG=-ll
YACCFLAG=-ly
appname=lp
$(appname): y.tab.o lex.yy.o lp.o lp.h
$(CC) -o $(appname) lex.yy.o y.tab.o lp.o $(LEXFLAG) $(YACCFLAG)
y.tab.o: y.tab.c
$(CC) -c y.tab.c $(YACCFLAG)
lex.yy.o: lex.yy.c
$(CC) -c lex.yy.c $(LEXFLAG)
lex.yy.c: ie.l
lex ie.l
y.tab.c: ie_parser.y
yacc -d ie_parser.y
lp.o: lp.c
$(CC) -c lp.c
My configure.ac file reads as follows
AC_INIT([language-parser],[1.0],gautam.akiwate(a)gmail.com)
AM_INIT_AUTOMAKE(dist-bzip2)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_YACC
AM_PROG_LEX
AC_OUTPUT([Makefile])
And the Makefile.am file has the following content
AM_YFLAGS = -d
BUILT_SOURCES = ie_parser.h
bin_PROGRAMS = lparser
lparser_SOURCES = ie.l ie_parser.y lp.h lp.c
noinst_HEADERS = lp.h
The following commands go through without error
$aclocal
$autoconf
$automake -a -c
$./configure
But when I do a make it generates an error saying that it is unable to find
yylwrap etc.
Can somebody please help me with this?
PS: Apologies for the long mail.
Regards
Gautam
--
"Quis custodiet ipsos custodes?"
12 years, 5 months
[Event Report] Fedora Activity Day I @ Red Hat, Pune, India: September 24, 2011
by Shakthi Kannan
Hi,
In preparation to FUDCon, Pune 2011 [1], we had organized a Fedora
Activity Day (FAD) I [2] at Red Hat, Pune, India on Saturday,
September 24, 2011.
Rahul Sundaram started the proceedings with a session on how to
contribute to Fedora [3], and how people can get involved with the
community. I showed the various communication channels that people
need to use to connect with the large Fedora community.
We then proceeded to do a hands-on session on RPM packaging. We used
the GNU Hello RPM packaging [4] example from the fedoraproject.org
wiki. Rahul and I explained each section of the .spec file, and showed
them how to use rpmbuild. The participants learnt to write the .spec
file, and also built, installed, and tested the hello package.
We then took a break for lunch following which I presented a hands-on
session on git using the di-git-ally managing love letters [5]
presentation. Siddhesh Poyarekar then took an introductory hands-on
session on autotools [6].
All the presentations are available in the FAD wiki page [7]. Thanks
to Red Hat for letting us use their facility, and for sponsoring the
pizza! They were able to arrange for ten laptops with Fedora 15
installed for participants who didn't have laptops.
Thanks also to Kashyap Chamarthy, Kushal Das, Siddhesh Poyarekar for
their help to the participants during the workshop sessions.
Few pictures that I took at the workshop are available [8].
Regards,
SK
[1] FUDCon, Pune, 2011. http://fedoraproject.org/wiki/FUDCon:India_2011
[2] FAD I @ Red Hat, Pune. https://fedoraproject.org/wiki/FAD_Pune_2011_Sep_24
[3] Rahul Sundaram's presentation on how to contribute to Fedora.
http://sundaram.fedorapeople.org/presentations/fedora-how-to-contribute.pdf
[4] GNU Hello RPM package.
http://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package
[5] di-git-ally managing love letters.
http://shakthimaan.com/downloads.html#di-git-ally-managing-love-letters
[6] Introduction to autotools.
http://meetbot.fedoraproject.org/fedora-classroom/2010-05-03/autotools_wo...
[7] FAD Agenda. https://fedoraproject.org/wiki/FAD_Pune_2011_Sep_24#Agenda
[8] Few photos. http://shakthimaan.com/downloads/glv/2011/fad-1-rh-pune-2011/
--
Shakthi Kannan
http://www.shakthimaan.com
12 years, 5 months
SSH KeepAlive with Switched Networks
by Sawrub
Is there a way to overcome this situation.
Situation :
I’m on a LAN [in office] connected to remote server over SSH [using
gnome terminal], now I've to go over for a meeting on another floor
along with my notebook. I switch on to mine office WLAN with a descent
90+ signal strength, Network manager shows both connections there as
connected. I disconnect my LAN connection and now on WLAN when i try
working on the server to which i was connected, the server is not
responding to my keystrokes as if the connection broke and i have to
make a new connection to the server in order to use it in a new tab.
The old connection [the one over LAN ] breaks after some time, with a
timeout message.
Configuration tried out :
I have the settings done for keeping SSH session alive by adding entry
'ServerAliveInterval 30' to '/etc/ssh/ssh_config', but that fails to
work in my case. It only supports in case e.g. i connect to a server
over LAN [ have both LAN and WLAN active ]. I break the LAN
connection, now over WLAN the server does NOT shows any response to my
keystrokes [let it be ENTER key]. I connect back to the LAN, and it
works, also all of my previous key strokes are responded to.
Any help will be great.
OS : Fedora 14
OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011
NetworkManager Applet 0.8.4
12 years, 6 months
FUDCon India Sep 23 2011 IRC meeting mins
by Rahul Sundaram
Hi
http://meetbot.fedoraproject.org/fudcon-planning/2011-09-23/fudcon_india....
Meeting summary
Roll Call (jsmith, 13:08:14)
Status updates (jsmith, 13:10:38)
https://mether.wordpress.com/2011/09/23/fudcon-india-sep-20-2011-face-to-...
(mether, 13:10:42)
Getting t-shirt samples to verify quality (jsmith, 13:15:39)
Invitation letters are being sent as passport details are
received (jsmith, 13:15:56)
http://fudcon.fedoraproject.org/APAC/ has been updated (mether,
13:16:27)
looking at COD http://usecod.com/ for handling event
registration etc. Testing outside Fedora infrastructure for now (mether,
13:17:16)
FAD tomorrow at Red Hat office ->
https://fedoraproject.org/wiki/FAD_Pune_2011_Sep_24. We have split up
the agenda because we have more interest than we have the space for.
Next one should be in Oct 8th. Waiting on confirmation from COEP
(mether, 13:18:35)
Vendor chosen for catering. Should be completely confirmed by
next week (jsmith, 13:22:28)
https://fedoraproject.org/wiki/FUDCon:India_2011_Catering.
bottom right menu is the one we have picked (mether, 13:22:34)
FUDPub location decided. Still looking at vendor for drinks
(jsmith, 13:25:31)
potential co-sponsors are still in discussions (jsmith, 13:25:31)
ACTION: jsmith to write the welcome letter (jsmith, 13:25:38)
Booklet is almost done, pending the welcome letter (jsmith,
13:25:49)
Any other business? (jsmith, 13:36:53)
Meeting ended at 13:37:25 UTC (full logs).
Action items
jsmith to write the welcome letter
Action items, by person
jsmith
jsmith to write the welcome letter
People present (lines said)
jsmith (38)
mether (32)
zodbot (6)
gomix (1)
rbergeron (0)
spot (0)
Rahul
12 years, 6 months
Re: [fedora-india] Announcement: First Fedora Activity Day, Saturday, September 24, 2011 @ Red Hat, Pune
by Shakthi Kannan
Hi,
--- On Mon, Sep 19, 2011 at 13:18 PM, Shakthi Kannan
<shakthimaan(a)gmail.com> wrote:
| We would like to announce the first Fedora Activity Day [1] in
| preparation to the FUDCon, Pune event [2] on Saturday, September 24,
| 2011 at Red Hat office, Pune.
|
| Venue:
|
| Red Hat Software Services Pvt Ltd
| Tower X, Level-1, Cybercity,
| Magarpatta City,
| Hadapsar,
| Pune-411 013
| Telephone: +91 20 304 67000
|
| Date: Saturday, September 24, 2011
| Time: 1000 IST onwards
\--
Just a reminder.
The final list of attendees is available in the wiki [1]. Since, we
have a capacity limit of 70, we have to limit the registration.
Everyone else is encouraged to add your names to the second FAD [2].
* If you are attending the event tomorrow, please be at the venue by
0915 - 0930 IST to go through security formalities. You will need to
bring a valid photo ID (PAN card/driving license/voter's ID/any other
Government issued photo ID).
* If you are bringing your laptop, please keep a note of the serial
number of the laptop.
See you tomorrow!
SK
[1] FAD I. https://fedoraproject.org/wiki/FAD_Pune_2011_Sep_24
[2] FAD II. https://fedoraproject.org/wiki/FAD_Pune_2011
--
Shakthi Kannan
http://www.shakthimaan.com
12 years, 6 months