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 670581 - Missing -lrt for clock_gettime()
Missing -lrt for clock_gettime()
Status: RESOLVED FIXED
Product: gnome-desktop
Classification: Core
Component: general
git master
Other Linux
: Normal major
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-22 07:45 UTC by Martin Pitt
Modified: 2012-02-22 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
git formatted patch (795 bytes, patch)
2012-02-22 07:49 UTC, Martin Pitt
committed Details | Review

Description Martin Pitt 2012-02-22 07:45:20 UTC
When building with LDFLAGS="-Wl,-z -Wl,defs" to report missing symbols, 3.3.90 and git head fail to build with

  CCLD   libgnome-desktop-3.la
.libs/gnome-datetime-source.o: In function `g_datetime_source_init_timerfd':
/home/martin/upstream/gnome-desktop/libgnome-desktop/gnome-datetime-source.c:203: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status

That's because it doesn't link with -lrt.
Comment 1 Martin Pitt 2012-02-22 07:49:19 UTC
Created attachment 208181 [details] [review]
git formatted patch

Straightforward patch.
Comment 2 Matthias Clasen 2012-02-22 08:59:55 UTC
Review of attachment 208181 [details] [review]:

Looks right to me
Comment 3 Martin Pitt 2012-02-22 09:23:38 UTC
Pushed, thanks for your review.