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

Erik Osterman e at osterman.com
Wed Mar 7 20:40:42 UTC 2007


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





More information about the Gluster-devel mailing list