[Gluster-devel] ./spec.l:41: error: 'yylval' undeclared (first use in this function)

Mickey Mazarick mic at digitaltadpole.com
Wed Mar 7 21:35:45 UTC 2007


byacc is the bison yacc actually.. The yum or apt-get-ed versions may be 
more stable than the latest thing on the bison website but I'm not sure. 
They are probably the same. I do know that if you try to recompile with 
different library versions you probably need to do a "make distclean" 
which I constantly forget to do.

-Mic

Brent A Nelson wrote:
> How important is the byacc? On Ubuntu Edgy, I compiled without byacc 
> (my yacc came from the bison package), and the compile seemed smooth, 
> although I've been having stability issues (such as the memory leak I 
> reported in read-ahead, and the utter failure of io-threads).  Could 
> the lack of byacc have resulted in a working but buggy compile?
>
> Thanks,
>
> Brent
>
> On Wed, 7 Mar 2007, Mickey Mazarick wrote:
>
>> Make sure the following packages are installed:
>> byacc byacc-devel bison flex
>>
>> command for the lazy:
>> yum -y install byacc byacc-devel bison bison-devel flex
>>
>> -Mic
>>
>> Erik Osterman wrote:
>>> I'm having problems compiling glusterfs on FC5. It compiled fine on 
>>> my Debian system.
>>>
>>>
>>> [root at jwalker glusterfs-1.3.0-pre2.2]# make
>>> Making all in libglusterfs
>>> make[1]: Entering directory 
>>> `/usr/src/glusterfs-1.3.0-pre2.2/libglusterfs'
>>> Making all in src
>>> make[2]: Entering directory 
>>> `/usr/src/glusterfs-1.3.0-pre2.2/libglusterfs/src'
>>> if /bin/sh ../../libtool --tag=CC --mode=compile gcc 
>>> -DPACKAGE_NAME=\"glusterfs\" -DPACKAGE_TARNAME=\"glusterfs\" 
>>> -DPACKAGE_VERSION=\"1.3.0-pre2.2\" -DPACKAGE_STRING=\"glusterfs\ 
>>> 1.3.0-pre2.2\" -DPACKAGE_BUGREPORT=\"gluster-devel at nongnu.org\" 
>>> -DPACKAGE=\"glusterfs\" -DVERSION=\"1.3.0-pre2.2\" -DSTDC_HEADERS=1 
>>> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
>>> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
>>> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
>>> -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 
>>> -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1 -DHAVE_LIBIBVERBS=1 
>>> -DHAVE_SYS_EPOLL_H=1  -I. -I.  -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
>>> -DXLATORDIR=\"/usr/local/lib/glusterfs/1.3.0-pre2.2/xlator\" 
>>> -DSCHEDULERDIR=\"/usr/local/lib/glusterfs/1.3.0-pre2.2/scheduler\" 
>>> -DTRANSPORTDIR=\"/usr/local/lib/glusterfs/1.3.0-pre2.2/transport\" 
>>> -DYY_NO_UNPUT  -fPIC  -Wall -g -shared -nostartfiles -rdynamic  -g 
>>> -O2 -MT libglusterfs_la-spec.lex.lo -MD -MP -MF 
>>> ".deps/libglusterfs_la-spec.lex.Tpo" -c -o 
>>> libglusterfs_la-spec.lex.lo `test -f 'spec.lex.c' || echo 
>>> './'`spec.lex.c; \
>>> then mv -f ".deps/libglusterfs_la-spec.lex.Tpo" 
>>> ".deps/libglusterfs_la-spec.lex.Plo"; else rm -f 
>>> ".deps/libglusterfs_la-spec.lex.Tpo"; exit 1; fi
>>> gcc -DPACKAGE_NAME=\"glusterfs\" -DPACKAGE_TARNAME=\"glusterfs\" 
>>> -DPACKAGE_VERSION=\"1.3.0-pre2.2\" "-DPACKAGE_STRING=\"glusterfs 
>>> 1.3.0-pre2.2\"" -DPACKAGE_BUGREPORT=\"gluster-devel at nongnu.org\" 
>>> -DPACKAGE=\"glusterfs\" -DVERSION=\"1.3.0-pre2.2\" -DSTDC_HEADERS=1 
>>> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
>>> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
>>> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
>>> -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 
>>> -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1 -DHAVE_LIBIBVERBS=1 
>>> -DHAVE_SYS_EPOLL_H=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
>>> -DXLATORDIR=\"/usr/local/lib/glusterfs/1.3.0-pre2.2/xlator\" 
>>> -DSCHEDULERDIR=\"/usr/local/lib/glusterfs/1.3.0-pre2.2/scheduler\" 
>>> -DTRANSPORTDIR=\"/usr/local/lib/glusterfs/1.3.0-pre2.2/transport\" 
>>> -DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic -g -O2 
>>> -MT libglusterfs_la-spec.lex.lo -MD -MP -MF 
>>> .deps/libglusterfs_la-spec.lex.Tpo -c spec.lex.c  -fPIC -DPIC -o 
>>> .libs/libglusterfs_la-spec.lex.o
>>> ./spec.l: In function 'yylex':
>>> ./spec.l:41: error: 'yylval' undeclared (first use in this function)
>>> ./spec.l:41: error: (Each undeclared identifier is reported only once
>>> ./spec.l:41: error: for each function it appears in.)
>>> make[2]: *** [libglusterfs_la-spec.lex.lo] Error 1
>>> make[2]: Leaving directory 
>>> `/usr/src/glusterfs-1.3.0-pre2.2/libglusterfs/src'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory 
>>> `/usr/src/glusterfs-1.3.0-pre2.2/libglusterfs'
>>> make: *** [all-recursive] Error 1
>>>
>>>
>>> [root at jwalker glusterfs-1.3.0-pre2.2]# lex -V
>>> lex version 2.5.4
>>>
>>>
>>> Regards,
>>>
>>> Erik Osterman
>>>
>>>
>>> _______________________________________________
>>> Gluster-devel mailing list
>>> Gluster-devel at nongnu.org
>>> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>>
>>
>>
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>>






More information about the Gluster-devel mailing list