#36364: gcc47, gcc48: Missing support for std::this_thread::sleep_for/sleep_until ----------------------------+-------------------- Reporter: l.digaspero@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: gcc47 gcc48 | ----------------------------+-------------------- Comment (by howarth@…): Using --enable-libstdccxx-time without arguments doesn't do anything because that defaults to 'no'.[[BR]] Furthermore, using --enable-libstdccxx-time=yes won't work because the configure tests for nanosleep [[BR]] support in libstdc++-v3/configure ultimately fails on the test...[[BR]] [[BR]] configure:19829: checking for nanosleep[[BR]] configure:19851: /sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/./gcc/xgcc -shared- libgcc -B/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/./gcc -nostdinc++ -L/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/x86_64 -apple-darwin12.2.0/libstdc++-v3/src -L/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/x86_64-apple- darwin12.2.0/libstdc++-v3/src/.libs -B/sw/lib/gcc4.7/x86_64-apple- darwin12.2.0/bin/ -B/sw/lib/gcc4.7/x86_64-apple-darwin12.2.0/lib/ -isystem /sw/lib/gcc4.7/x86_64-apple-darwin12.2.0/include -isystem /sw/lib/gcc4.7/x86_64-apple-darwin12.2.0/sys-include -o conftest -g -O2 -fno-exceptions conftest.cpp >&5[[BR]] conftest.cpp: In function 'int main()':[[BR]] conftest.cpp:97:15: error: 'tp' was not declared in this scope[[BR]] [[BR]] due to the test case....[[BR]] [[BR]] | #include <unistd.h>[[BR]] | #include <time.h>[[BR]] | | int[[BR]] | main ()[[BR]] | {[[BR]] | #if _POSIX_TIMERS > 0[[BR]] | timespec tp;[[BR]] | #endif[[BR]] | nanosleep(&tp, 0);[[BR]] |[[BR]] | ;[[BR]] | return 0;[[BR]] | }[[BR]] [[BR]] requiring posix timers which darwin doesn't support. -- Ticket URL: <https://trac.macports.org/ticket/36364#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS