This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: errors in libs, undefined reference _dl_cpuclock_offset
- From: Nick Clifton <nickc at redhat dot com>
- To: Roscinante <rosc at rosc2112 dot net>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 16 Jan 2006 17:14:13 +0000
- Subject: Re: errors in libs, undefined reference _dl_cpuclock_offset
- References: <Pine.LNX.4.64.0601111937370.2231@rosc2112.net>
Hi Roscinante,
Trying to compile certain libs, and linking against them, produces the
error "undefined reference _dl_cpuclock_offset" .. For example, a
fresh compile of libxine-1.1.1.
Usually this kind of problem occurs because a library is not being included
on the linker command line. The library is usually omitted because the
user is constructing the linker command line for themselves, rather than
allowing GCC to do it. GCC frequently adds libraries and object files
to the linker command line that the user may not know about.
Apparently libc6 does not include this function for my platform anymore
(it used to)! Any clues appreciated.
If the function used to exist, but has been removed, then this would
imply that it should no longer be used. So in this case I would suggest
tracking down the function(s) which are still trying to use the deleted
dl_cpuclock_offset function and fix them appropriately.
Cheers
Nick