From owner-freebsd-ports@FreeBSD.ORG Tue Dec 10 09:25:59 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F2B75EC for ; Tue, 10 Dec 2013 09:25:59 +0000 (UTC) Received: from mail-oa0-x234.google.com (mail-oa0-x234.google.com [IPv6:2607:f8b0:4003:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0317A166B for ; Tue, 10 Dec 2013 09:25:58 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id h16so5244344oag.39 for ; Tue, 10 Dec 2013 01:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OQ/SMHLgldTJRGkYtY7c3MTN7rL27y7+2QFqbPgKqXc=; b=GU46vcxfj1xgNo9I7HosrJigH/bRUB34mj/0uDsa74FM6/tXm2HBKCvQd0cEO/6SHy EEtyyW1W6MfI9FPIN8bokA3ZZnFEd6HpVR8LILOc3BFffn70qNB/J8o8IDBt39b3YpNS VOV1jD8DSoYFBCUKQHny/tlF2i9GHxxeFP2kqLZujR16QBMj3rqkk9utu7Sra3sHUqXY TZndlR5YCCkrwo3smcL7Jx35gX2ZFp8Zcir6RMC5Wg9WoBivv4fnmg668DHV1580NGm4 DmakZJMVTMOM846H78qNhv27C7TDqfcQcGUxogeYFEi11i8VsOqMHH2xSqlgb85NBuzZ UlEA== MIME-Version: 1.0 X-Received: by 10.182.92.231 with SMTP id cp7mr43878obb.82.1386667558274; Tue, 10 Dec 2013 01:25:58 -0800 (PST) Received: by 10.182.78.100 with HTTP; Tue, 10 Dec 2013 01:25:58 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Dec 2013 04:25:58 -0500 Message-ID: Subject: Re: Error using CMake similar to error from earlier list post From: Joe Nosay To: ports , kde-freebsd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 09:25:59 -0000 On Mon, Dec 9, 2013 at 11:18 PM, Joe Nosay wrote: > > > ---------- Forwarded message ---------- > From: Joe Nosay > Date: Sun, Dec 8, 2013 at 6:38 PM > Subject: Re: Error using CMake similar to error from earlier list post > To: kde-freebsd > > > > > > On Sat, Dec 7, 2013 at 3:45 PM, Joe Nosay wrote: > >> >> >> >> On Fri, Dec 6, 2013 at 7:50 PM, Joe Nosay wrote: >> >>> https://www.mail-archive.com/kde-freebsd@kde.org/msg15778.html >>> >>> Is there a similar fix for this? >>> >>> Thanks. >>> >>> >> >> >> Now would >> " >> >> +Build fix for clang. >> + >> + error: use of undeclared identifier 'pthread_mutex_lock' >> + error: use of undeclared identifier 'pthread_mutex_unlock' >> + error: use of undeclared identifier 'pthread_self' >> + error: use of undeclared identifier 'pthread_mutex_init' >> + error: use of undeclared identifier 'pthread_mutex_destroy' >> + >> +--- kopete/protocols/jabber/googletalk/libjingle/talk/base/ssladapter.cc.orig >> 2013-11-04 01:20:09.000000000 +0200 >> ++++ kopete/protocols/jabber/googletalk/libjingle/talk/base/ssladapter.cc >> 2013-11-04 01:20:20.000000000 +0200 >> +@@ -29,6 +29,7 @@ >> + >> + #ifdef POSIX >> + extern "C" { >> ++#include >> + #include >> + } >> + #endif" >> >> >> Be the appropriate fix for >> >> >> /usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDeviceThread.cpp:58:30: error: use of undeclared identifier 'pthread_self' >> if (pthread_setschedparam (pthread_self(), SCHED_FIFO, ¶m) != 0) {} >> ^ >> /usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDeviceThread.cpp:131:30: error: use of undeclared identifier 'pthread_self' >> if (pthread_setschedparam (pthread_self(), SCHED_FIFO, ¶m) != 0) { >> >> >> > > I need to write a patch and then apply it to the script in question. > 1. Will I need to add the patch to each part that is listed? > > > > > > > > > Since it is suggested to build an application natively - or at least try > to - on FreeBSD before making a port, I am trying to do such. > > The errors seems to be the same CLang type as the others. > Included is the file which was modified according to the patch from the > hyperlink stated earlier in this thread. > > > > > Since this a CLang problem which has occurred and will occur in software with the same or similar type of instructions, it may be of use to make a patch for all qtX software and others with the same problem. Me "Did I do the patch right?" KDE FreeBSD "Did you hear something?" Ports FreeBSD "Nope, not at all." GCC patchiness popping up here and there. I can see it and so can others. KDE FreeBSD "What was that?" Ports FreeBSD "Nothing, nothing at all." These problems also show up on Debian and other systems transitioning to CLang for the compiler. Errors of the same type happen on software not in ports or natively part of kde3/4. KDE FreeBSD " There goes that noise again." Ports FreeBSD "Just ignore it."