pcp
[Top] [All Lists]

problems with linux pmda build

To: PCP <pcp@xxxxxxxxxxx>
Subject: problems with linux pmda build
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sat, 20 Dec 2014 07:14:33 +1100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
On
vm04        unknown  i586    CentOS 5.11 (Final)
there is no flex-devel rpm, but libfl.a comes from the flex rpm.

But the linux pmda no longer builds because yylineno is not defined ...

gcc  -Wall -L../../../src/libpcp/src -L../../../src/libpcp_pmda/src  -shared 
-Wl,-soname,pmda_proc.so -Wl,--version-script=exports -o pmda_proc.so  pmda.o 
cgroups.o proc_pid.o proc_runq.o proc_dynamic.o ksym.o getinfo.o contexts.o 
gram_node.o config.o error.o hotproc.o   lex.o gram.tab.o -lpcp_pmda -lpcp  
-lfl  -ldl 
gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all 
-D_FORTIFY_SOURCE=2 -fvisibility=hidden       -Wall -O2 -g -DPCP_DEBUG 
-DPCP_VERSION=\"3.10.2\" -I../../../src/include -I../../../src/include/pcp -o 
pmdaproc  -Wall -L../../../src/libpcp/src -L../../../src/libpcp_pmda/src   
pmda.o cgroups.o proc_pid.o proc_runq.o proc_dynamic.o ksym.o getinfo.o 
contexts.o gram_node.o config.o error.o hotproc.o   lex.o gram.tab.o -lpcp_pmda 
-lpcp  -lfl 
error.o: In function `yyerror':
/home/kenj/src/pcp/src/pmdas/linux_proc/error.c:31: undefined reference to 
`yylineno'
error.o: In function `yywarn':
/home/kenj/src/pcp/src/pmdas/linux_proc/error.c:24: undefined reference to 
`yylineno'
gram.tab.o: In function `parse_predicate':
/home/kenj/src/pcp/src/pmdas/linux_proc/gram.y:150: undefined reference to 
`yylineno'
collect2: ld returned 1 exit status
make[2]: *** [pmdaproc] Error 1
rm lex.c
make[1]: *** [default_pcp] Error 2
make: *** [default_pcp] Error 2

Do we really need to be using flex in this PMDA?

I am seeing a lot of other build breakage (about 1/3 of my machines), but don't 
know yet if this issue is responsible on platforms other than CentOS 5.11.

<Prev in Thread] Current Thread [Next in Thread>