Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 529914

Summary: dev-vcs/git-2.1.3 USE=subversion - ../../libgit.a(trace.o): In function `print_command_performance_atexit': trace.c:(.text+0x834): undefined reference to `clock_gettime'
Product: Gentoo Linux Reporter: Philip Taffner <sabel>
Component: [OLD] DevelopmentAssignee: Robin Johnson <robbat2>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jlee, polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Philip Taffner 2014-11-20 07:32:47 UTC
Created attachment 389834 [details]
build.log

I can't build git with subversion support.
If I disable the subversion USE flag, everything works.
The error indicates that "-lrt" is missing

make[1]: Leaving directory '/var/tmp/portage/dev-vcs/git-2.1.3/work/git-2.1.3'
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -Wall -o svn-fe svn-fe.o \
        -Wl,-O1 -Wl,--as-needed ../../vcs-svn/lib.a ../../libgit.a -lz -lssl /var/tmp/portage/dev-vcs/git-2.1.3/work/git-2.1.3/xdiff/lib.a -lpthread -lpcre 
../../libgit.a(trace.o): In function `print_command_performance_atexit':
trace.c:(.text+0x834): undefined reference to `clock_gettime'
trace.c:(.text+0x891): undefined reference to `clock_gettime'
../../libgit.a(trace.o): In function `getnanotime':
trace.c:(.text+0xaa8): undefined reference to `clock_gettime'
trace.c:(.text+0xae1): undefined reference to `clock_gettime'
../../libgit.a(trace.o): In function `trace_command_performance':
trace.c:(.text+0xbef): undefined reference to `clock_gettime'
../../libgit.a(trace.o):trace.c:(.text+0xc31): more undefined references to `clock_gettime' follow
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'svn-fe' failed
make: *** [svn-fe] Error 1
Comment 1 Philip Taffner 2014-11-20 07:33:21 UTC
Created attachment 389836 [details]
emerge --info
Comment 2 Felix Janda 2015-04-03 12:01:39 UTC
Might be related to bug 466178
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-12-07 07:32:56 UTC
I believe this ticket is obsolete, if the problem persists, please reopen