+++ This bug was initially created as a clone of Bug #270071 +++ This is not exacte same problem as Bug #270071, but maybe somewhat related. This bug is for Gentoo prefix for Mac. Mac OS X doesn't have clock_gettime. Is there any way how to compile this lib? Thanks. -------- Configure output: checking for x86_64-apple-darwin10-gcc... x86_64-apple-darwin10-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-apple-darwin10-gcc accepts -g... yes checking for x86_64-apple-darwin10-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-apple-darwin10-gcc -E checking for grep that handles long lines and -e... /Volumes/HFS/Users/kexik/Gentoo/bin/grep checking for egrep... /Volumes/HFS/Users/kexik/Gentoo/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /Volumes/HFS/Users/kexik/Gentoo/usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /Volumes/HFS/Users/kexik/Gentoo/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of x86_64-apple-darwin10-gcc... gcc3 checking build system type... x86_64-apple-darwin10 checking host system type... x86_64-apple-darwin10 checking for a sed that does not truncate output... /Volumes/HFS/Users/kexik/Gentoo/bin/sed checking for fgrep... /Volumes/HFS/Users/kexik/Gentoo/bin/grep -F checking for ld used by x86_64-apple-darwin10-gcc... /Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-ld checking if the linker (/Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-nm checking the name lister (/Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-ld option to reload object files... -r checking for x86_64-apple-darwin10-objdump... no checking for objdump... no checking how to recognize dependent libraries... pass_all checking for x86_64-apple-darwin10-ar... x86_64-apple-darwin10-ar checking for x86_64-apple-darwin10-strip... x86_64-apple-darwin10-strip checking for x86_64-apple-darwin10-ranlib... x86_64-apple-darwin10-ranlib checking command to parse /Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-nm output from x86_64-apple-darwin10-gcc object... ok checking for x86_64-apple-darwin10-dsymutil... no checking for dsymutil... dsymutil checking for x86_64-apple-darwin10-nmedit... x86_64-apple-darwin10-nmedit checking for x86_64-apple-darwin10-lipo... x86_64-apple-darwin10-lipo checking for x86_64-apple-darwin10-otool... x86_64-apple-darwin10-otool checking for x86_64-apple-darwin10-otool64... no checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-apple-darwin10-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-apple-darwin10-gcc option to produce PIC... -fno-common -DPIC checking if x86_64-apple-darwin10-gcc PIC flag -fno-common -DPIC works... yes checking if x86_64-apple-darwin10-gcc static flag -static works... no checking if x86_64-apple-darwin10-gcc supports -c -o file.o... yes checking if x86_64-apple-darwin10-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-apple-darwin10-gcc linker (/Volumes/HFS/Users/kexik/Gentoo/usr/bin/x86_64-apple-darwin10-ld) supports shared libraries... yes checking dynamic linker characteristics... darwin10 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for x86_64-apple-darwin10-gcc... (cached) x86_64-apple-darwin10-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-apple-darwin10-gcc accepts -g... (cached) yes checking for x86_64-apple-darwin10-gcc option to accept ISO C89... (cached) none needed checking for ANSI C header files... (cached) yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for x86_64-apple-darwin10-pkg-config... no checking for pkg-config... /Volumes/HFS/Users/kexik/Gentoo/usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for PTHREADSTUBS... yes checking for clock_gettime... no checking for clock_gettime in -lrt... no configure: error: Couldn't find clock_gettime ---------------- emerge --info : Portage 2.2.00.15754-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.2.0 x86_64) ================================================================= System uname: Darwin-10.2.0-x86_64-i386-64bit Timestamp of tree: Mon, 08 Mar 2010 14:06:39 +0000 distcc 3.1 i386-apple-darwin10.2.0 [disabled] ccache version 2.4 [disabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4 dev-util/cmake: 2.8.0-r2 sys-devel/autoconf: 2.63-r01.1 sys-devel/automake: 1.10.2-r00.1, 1.11.1 sys-devel/binutils: 2.20.51.0.5 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6b ACCEPT_KEYWORDS="sh x64-macos ~x64-macos ~x86-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin10" CFLAGS="-march=core2 -mtune=core2 -O3 -maccumulate-outgoing-args -fomit-frame-pointer -pipe -finline-functions -funswitch-loops -fprefetch-loop-arrays -fpeel-loops -msse -mmmx -msse2 -msse3 -mssse3 -fexpensive-optimizations -funroll-all-loops -ftracer" CHOST="x86_64-apple-darwin10" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo" CXXFLAGS="-march=core2 -mtune=core2 -O3 -maccumulate-outgoing-args -fomit-frame-pointer -pipe -finline-functions -funswitch-loops -fprefetch-loop-arrays -fpeel-loops -msse -mmmx -msse2 -msse3 -mssse3 -fexpensive-optimizations -funroll-all-loops -ftracer" DISTDIR="/Volumes/HFS/Users/kexik/Gentoo/usr/portage/distfiles" FEATURES="allow_broken_install_names assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="" PKGDIR="/Volumes/HFS/Users/kexik/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Volumes/HFS/Users/kexik/Gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Volumes/HFS/Users/kexik/Gentoo/var/tmp" PORTDIR="/Volumes/HFS/Users/kexik/Gentoo/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="X aqua coreaudio cracklib cxx dbus gnutls hal kde mmx mmxext modules ncurses nls objc objc++ prefix qt3support qt4 readline sse sse2 ssl unicode utf8 x11-wm/fluxbox x64-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Latest version of libdrm still exhibits this problem. I have no clue how to fix this. Neither do I know if libdrm is supposed to be installed on OSX/Darwin either. I'm affraid I can't help you here. Please take this up with upstream.