Re: Fwd: gcov of extension
| From: | Nuno Lopes | Date: | Thu, 26 Nov 2009 16:05:37 +0000 |
| Subject: | Re: Fwd: gcov of extension | ||
| References: | 1 2 3 4 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65438@lists.php.net to get a copy of this message | ||
This usually means that you didn't compile php itself with support for gcov.
Anyway, you can workaround this fact by compiling with LDFLAGS="-lgcov".
Nuno
----- Original 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,-- Davide MendoliaI 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