Re: Fwd: gcov of extension
| From: | Davide Mendolia | Date: | Wed, 25 Nov 2009 21:44:20 +0000 |
| Subject: | Re: Fwd: gcov of extension | ||
| References: | 1 2 3 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65437@lists.php.net to get a copy of this message | ||
Thanks, but I get a problem when I try to load my extension :
Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apm.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apm.so: undefined
symbol: __gcov_merge_add in Unknown on line 0
I certainly forget something, look likes missing flags at linking time, but
I can't, can you help me ?
On Tue, Nov 24, 2009 at 11:56 PM, Nuno Lopes <nlopess@php.net> wrote:
> Hi,
>>
>> I have some tests in my extension, and I want to generate the code
>> coverage.
>> How I should do that ?
>> Adding flags at compilation time ? using a version of php compile with
>> --enable-gcov ?
>>
>
> You've to compile php and your extension with --enable-gcov. Then you can
> run 'make lcov' to do the work.
> You'll need to install lcov.
>
> Nuno
>
--
Davide Mendolia