After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689583 - gst-rtsp-server: docs fails to build when gcov is enabled...
gst-rtsp-server: docs fails to build when gcov is enabled...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other Linux
: Normal normal
: 1.2.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-04 00:21 UTC by Sebastian Rasmussen
Modified: 2014-02-25 22:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch to fix compilation error. (888 bytes, patch)
2012-12-04 00:23 UTC, Sebastian Rasmussen
committed Details | Review

Description Sebastian Rasmussen 2012-12-04 00:21:07 UTC
If (having already build gstreamer from git and
setup my paths) I checkout gst-rtsp-server and run:

./autogen.sh --prefix=/tmp/prefix --enable-gcov
make -j10 install

then I am faced with this puzzling error message:

[...]
  DOC   Introspecting gobjects
.libs/gst-rtsp-server-scan.o: In function `_GLOBAL__sub_I_65535_0_gst_rtsp_server_scan.c':
/home/sebras/src/gst/gst-rtsp-server/docs/libs/gst-rtsp-server-scan.c:1199: undefined reference to `__gcov_init'
.libs/gst-rtsp-server-scan.o:(.data.rel+0x20): undefined reference to `__gcov_merge_add'
collect2: error: ld returned 1 exit status

This is of course due to --enable-gcov being set.

--enable-gcov will in common/m4/gst-args.m4 cause
GCOV_CFLAGS and GCOV_LIBS to be set. GCOV_CFLAGS 
will in configure.ac be used in GST_CFLAGS. In
docs/libs/Makefile.am GTKDOC_CFLAGS uses GST_CFLAGS.

GCOV_LIBS is not included anywhere, so the compiler
is instructed to use gcov, but the linker is not.
The obvious fix is to add this to GTKDOC_LDFLAGS in
docs/libs/Makefile.am as the attached patch does.
Comment 1 Sebastian Rasmussen 2012-12-04 00:23:24 UTC
Created attachment 230608 [details] [review]
Proposed patch to fix compilation error.
Comment 2 Tim-Philipp Müller 2012-12-04 14:10:29 UTC
Thanks!


commit e2d02097a612a3661ce922ff2617ddbb90465383
Author: Sebastian Rasmussen <sebras@hotmail.com>
Date:   Tue Dec 4 01:05:31 2012 +0100

    docs: Link with gcov library when gcov is enabled
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=689583