Package: lcov
Version: 1.3-3

lcov is having problems dealing with a library which uses libtool to
build.  Use of libtool results in binary objects being placed in
a .libs/ directory under the expected location.  i.e. when I compile the
source I have these files in ./libmb/:

mbdotdesktop.c
mbdotdesktop.h
mbdotdesktop.bb
mbdotdesktop.bbg
mbdotdesktop.o

but mbdotdesktop.o is also in ./libmb/.libs/, and that is the file which
is used when I run a test program linked to the libraries in the build
tree.  This means that the .da file is generated inside ./libmb/.libs/.

gcov handles this case with the -o <path> flag, so I do:

cd ../libmb
for i in *.c; do
    gcov -o .libs $i
done

And mbdotdesktop.c.gcov is generated in ./libmb/ as expected.

However, when I run lcov -d . -capture -o libmb.info in libmb/:

$ lcov -d . -capture -o libmb.info
Capturing coverage data from .
Found gcov version: 3.3.5
Scanning . for .da files ...
Found 7 data files in .
Processing ./.libs/mbmenu.da
Could not open source file mbmenu.c.
Processing ./.libs/mbtray.da
Could not open source file mbtray.c.
Processing ./.libs/mbdotdesktop.da
Could not open source file mbdotdesktop.c.
Processing ./.libs/mbpixbuf.da
Could not open source file mbpixbuf.c.
Processing ./.libs/mbutil.da
Could not open source file mbutil.c.
Processing ./.libs/mbexp.da
Could not open source file mbexp.c.
Processing ./.libs/hash.da
Could not open source file hash.c.
Finished .info-file creation

None of the source files were found so the HTML output is pretty much
useless. :(

Ross
-- 
Ross Burton                                 mail: [EMAIL PROTECTED]
                                          jabber: [EMAIL PROTECTED]
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to