From owner-freebsd-ports@FreeBSD.ORG Tue Dec 10 09:42:43 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F7A89C3 for ; Tue, 10 Dec 2013 09:42:43 +0000 (UTC) Received: from mail-ee0-x235.google.com (mail-ee0-x235.google.com [IPv6:2a00:1450:4013:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F271017B5 for ; Tue, 10 Dec 2013 09:42:42 +0000 (UTC) Received: by mail-ee0-f53.google.com with SMTP id b57so2091133eek.40 for ; Tue, 10 Dec 2013 01:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-type; bh=ndHiiV1iPtWKEvFCwk0nlbJyUKnzDsZ20IHCWmFvQ78=; b=SuNfwtLT16CPSkDxGs2goPDAaBRXbs9/QbL3bvvt6K/Uj6841/6RdM90iRouvlyAV0 +9BD7jOXqPnPrS90jHaN4+fystoFT1XsYJbOgOPPPKSr0UkfCD82rrOKkzqPmHYRcvei HQnWETArjNdSeVc5Atzn/LEZan3l5ywaAEdu7oEUSGFz2p27qtGqa/quqWcvP9ipN3TV DAf0mxk4uUX5Ntg0Pj9wLxRVw7YDs7EpMtcGWK5lo12dy6NHs5QNqKovNeey6ADK8UQs a7Dr8/EV03jfFpHL6wxqbkEo4ky9mMBXQ3tOsMn4BTuJd/bO9CCwtkPYK2HuZiup6W8k lHMw== X-Received: by 10.15.34.197 with SMTP id e45mr31855039eev.61.1386668559887; Tue, 10 Dec 2013 01:42:39 -0800 (PST) Received: from dragon.dg ([197.87.121.106]) by mx.google.com with ESMTPSA id g47sm39021001eeo.19.2013.12.10.01.42.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 01:42:38 -0800 (PST) Sender: David Naylor From: David Naylor To: Joe Nosay Subject: Re: [kde-freebsd] Error using CMake similar to error from earlier list post Date: Tue, 10 Dec 2013 11:42:17 +0300 Message-ID: <4799985.u5Ux28jmlm@dragon.dg> Organization: FreeBSD User-Agent: KMail/4.10.5 (FreeBSD/9.2-STABLE; KDE/4.10.5; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1527311.DXGiulpyVg"; micalg="pgp-sha1"; protocol="application/pgp-signature" Cc: ports , kde-freebsd 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:42:43 -0000 --nextPart1527311.DXGiulpyVg Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="ISO-8859-1" Hi Joe, I'm listening! I've read through your thread on KDE-FreeBSD and Ports-FreeBSD however I am a bit fuzzy as to the issues. Are these specific to clang, FreeBSD >= 10 or some other trigger? How would I go about reproducing these errors? I'm happy to work with you to resolve these issues. Regards On Tuesday, 10 December 2013 04:25:58 Joe Nosay wrote: > 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.or > >> ig>> > >> 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/AudioDeviceTh > >> read.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/AudioDeviceTh > >> read.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." --nextPart1527311.DXGiulpyVg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEABECAAYFAlKm4fwACgkQUaaFgP9pFrKZcwCcDXMb6nvyHWS3XUJDC/8kQXza 5iYAoImNHB+/xD7oyJAMM7Y6jfW6DiZI =xwKL -----END PGP SIGNATURE----- --nextPart1527311.DXGiulpyVg--