Support GCOV for Wine 1.0?

Detlef Riekenberg at
Sat Oct 13 17:52:26 CDT 2007

On Fr, 2007-10-12 at 09:47 -0700, Dan Kegel wrote:

> > It would be nice, when we can support gcov in current Wine
> > "out of the box".
> > That would help us a lot, when we write more tests for the
> > suggested Wine 1.0 Applications.
> That project had a doc patch accepted:
> This created
> Does that suffice? 

I was thinking about: 
"./configure --enable-gcov" or "./configure --with-gcov"

With the suggested flags, wine does not compile:

gcc -c -I../../../src/dlls/activeds -I. -I../../../src/include
-I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe
-fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings
-Wpointer-arith  -fprofile-arcs -ftest-coverage  -o
activeds_main.o ../../../src/dlls/activeds/activeds_main.c
../../tools/winegcc/winegcc -B../../tools/winebuild
-shared ../../../src/dlls/activeds/activeds.spec    activeds_main.o
-o  -lkernel32   ../../libs/port/libwine_port.a
activeds_main.o: In function `global constructors keyed to
0_DllMain':activeds_main.c:(.text+0x6da): undefined reference to
activeds_main.o:(.data.rel+0x24): undefined reference to
../../dlls/winecrt0/libwinecrt0.a(stub.o): In function `global
constructors keyed to 0___wine_spec_unimplemented_stub':stub.c:(.text
+0x81): undefined reference to `__gcov_init'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x24): undefined
reference to `__gcov_merge_add'
collect2: ld gab 1 als Ende-Status zurück
winegcc: gcc failed.
make[2]: *** [] Fehler 2
make[1]: *** [activeds] Fehler 2
make: *** [dlls] Fehler 2

I tried also:

export CFLAGS="-fprofile-arcs -ftest-coverage"

that breaks wine already in tools/*

By by ... Detlef

More information about the wine-devel mailing list