[ofa-general] Re: [PATCH 5/7 V2] osm: QoS - compiling policy file parser

Sasha Khapyorsky sashak at voltaire.com
Wed Aug 22 22:40:27 PDT 2007


On 14:53 Tue 21 Aug     , Yevgeny Kliteynik wrote:
> diff --git a/opensm/opensm/Makefile.am b/opensm/opensm/Makefile.am
> index 6dfa824..31e09f7 100644
> --- a/opensm/opensm/Makefile.am
> +++ b/opensm/opensm/Makefile.am
> @@ -56,7 +56,15 @@ opensm_SOURCES = main.c osm_console.c osm_db_files.c \
>  		 osm_ucast_lash.c osm_ucast_file.c osm_ucast_ftree.c \
>  		 osm_vl15intf.c osm_vl_arb_rcv.c \
>  		 st.c osm_perfmgr.c osm_perfmgr_db.c \
> -		 osm_event_plugin.c osm_dump.c
> +		 osm_event_plugin.c osm_dump.c \
> +		 osm_qos_parser_y.c osm_qos_parser_l.c osm_qos_policy.c
> +
> +osm_qos_parser_y.c: $(srcdir)/osm_qos_parser.y $(srcdir)/../include/opensm/osm_qos_policy.h
> +	$(YACC) -y -d $(srcdir)/osm_qos_parser.y -o $(srcdir)/osm_qos_parser_y.c --defines=$(srcdir)/../include/opensm/osm_qos_parser_y.h --name-prefix=__qos_parser_

This is what I have now. Any idea?

make  all-am
make[1]: Entering directory `/home/sashak/src/m/opensm/opensm'
flex --prefix=__qos_parser_ -o ./osm_qos_parser_l.c ./osm_qos_parser.l
gcc -DHAVE_CONFIG_H -I. -I./../include -I./../../libibcommon/include/infiniband -I./../../libibumad/include/infiniband   -Wall -DOSM_VENDOR_INTF_OPENIB -fno-strict-aliasing -DVENDOR_RMPP_SUPPORT -DDUAL_SIDED_RMPP -g -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1  -MT opensm-osm_qos_parser_l.o -MD -MP -MF .deps/opensm-osm_qos_parser_l.Tpo -c -o opensm-osm_qos_parser_l.o `test -f 'osm_qos_parser_l.c' || echo './'`osm_qos_parser_l.c
./osm_qos_parser.l: In function '__qos_parser_lex':
./osm_qos_parser.l:178: error: 'yylval' undeclared (first use in this function)
./osm_qos_parser.l:178: error: (Each undeclared identifier is reported only once
./osm_qos_parser.l:178: error: for each function it appears in.)
make[1]: *** [opensm-osm_qos_parser_l.o] Error 1
make[1]: Leaving directory `/home/sashak/src/m/opensm/opensm'
make: *** [all] Error 2

Sasha



More information about the general mailing list