DragonFly BSD
DragonFly users List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Problem building qt4-libs

From: "Steve O'Hara-Smith" <steve@xxxxxxxxxx>
Date: Sun, 18 Apr 2010 09:19:51 +0100


	Building qt4-libs under pkgsrc from the 2010-q1 branch is failing

	... at line 682 where pthread_getattr_np is being called. I don't
understand the thread API will enough to work out how to fix this - The full
block of code involved is:

    static void* stackBase = 0;
    static size_t stackSize = 0;
    static pthread_t stackThread;
    pthread_t thread = pthread_self();
    if (stackBase == 0 || thread != stackThread) {
        pthread_attr_t sattr;
        // e.g. on FreeBSD 5.4, neundorf@kde.org
        pthread_attr_get_np(thread, &sattr);
        // FIXME: this function is non-portable; other POSIX systems may
have di fferent np alternatives
        pthread_getattr_np(thread, &sattr);
        int rc = pthread_attr_getstack(&sattr, &stackBase, &stackSize);
        (void)rc; // FIXME: Deal with error code somehow? Seems fatal.
        stackThread = thread;
    return static_cast<char*>(stackBase) + stackSize;

Steve O'Hara-Smith                          |   Directable Mirror Arrays
C:>WIN                                      | A better way to focus the sun
The computer obeys and wins.                |    licences available see
You lose and Bill collects.                 |    http://www.sohara.org/

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]