Re: Make error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi avati,

   Please find the attached patch. Well now the configure will exit for
byacc parser as it doesn't have yylval defined as YYSTYPE inside
y.tab.h of which bison has

I tried adding a below type of code to spec.y to actually support byacc.
But  found some errors further.

#if ! defined YYSTYPE && ....
typedef int YYSTYPE;
.....
.....
extern YYSTYPE yylval;

Which byacc lacks yylval declaration inside y.tab.h. Sole reason why build
breaks. Right now byacc will not be supported as parser for glusterfs.

Regards
>>
>>    That might be a problem with 'byacc' and 'bison' compatibility. These
>> were seen at many places with many other packages. Even the 'bison -y'
>> i don't think is fully 'byacc' mode.  As you can see after installing
>> bison the error goes away and 'make' is smooth as it has to be.  But
>> for having that compatibility check we can add in configure.ac a better
>> check for yylval, and yylex function.
>
> Good suggestion, please send a patch to configure.ac to check for yylval
>
>
> avati
>
>
> --
> ultimate_answer_t
> deep_thought (void)
> {
>   sleep (years2secs (7500000));
>   return 42;
> }
>
>


-- 
Harshavardhana
"Software gets slower faster as Hardware gets faster"

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux