Status: New
Owner: ----
New issue 290 by sgbeal: undefined clock_gettime symbol in r1603 lib
http://code.google.com/p/v8/issues/detail?id=290
Hi!
When linking against v8 or v8_g from r1603 (latest trunk as of 1/2 hour
ago):
/home/stephan/lib/libv8_g.so: undefined reference to `clock_gettime'
Ubuntu 2008/something, gcc 4.3.2
The error might be this:
the linux man pages for clock_gettime() says:
{{{
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
clock_getres(), clock_gettime(), clock_settime(): _POSIX_C_SOURCE >=
199309L
}}}
Thus, at the top of platform-linux.cc we need:
{{{
#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 199309L
#endif
}}}
before any standard includes are made.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---