On Fri, Oct 30, 2009 at 7:25 AM, Peter Oberparleiter
<[email protected]> wrote:
> Hi Subrata,
>
> Subrata Modak wrote:
>> # make CFLAGS=\ -fprofile-arcs\ -ftest-coverage\ -Wall
> [...]
>> gcc ltp-pan.o zoolib.o splitstr.o -lm -o ltp-pan
>> ltp-pan.o: In function `run_child':
>> ltp-pan.c:(.text+0x6d54): undefined reference to `__gcov_fork'
>
> we already solved this issue via ST but I'll still post the result here
> for reference: to prevent this particular error, you'll need to also
> provide the additional linker option -coverage.
>
> As not all ltp Makefile work well when specifying CFLAGS and LDFLAGS on
> the make command line, you'll need to specify those during the configure
> step, i.e.
>
> ./configure CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-coverage"
> make
Correct. I updated INSTALL to explicitly state `do not define
CFLAGS, CPPFLAGS, etc' on the command line with make. People need to
either specify the right values to configure, and/or modify the values
in include/mk/config.mk (which gets produced by configure).
Thanks,
-Garrett
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list