<div dir="ltr">Thank you.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 10, 2013 at 3:42 AM, David Naylor <span dir="ltr"><<a href="mailto:dbn@freebsd.org" target="_blank">dbn@freebsd.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Joe,<br>
<br>
I'm listening!<br>
<br>
I've read through your thread on KDE-FreeBSD and Ports-FreeBSD however I am a<br>
bit fuzzy as to the issues.<br>
<br>
Are these specific to clang, FreeBSD >= 10 or some other trigger? How would I<br>
go about reproducing these errors?<br>
<br>
I'm happy to work with you to resolve these issues.<br>
<br>
Regards<br>
<div class=""><div class="h5"><br>
On Tuesday, 10 December 2013 04:25:58 Joe Nosay wrote:<br>
> On Mon, Dec 9, 2013 at 11:18 PM, Joe Nosay <<a href="mailto:superbisquit@gmail.com">superbisquit@gmail.com</a>> wrote:<br>
> > ---------- Forwarded message ----------<br>
> > From: Joe Nosay <<a href="mailto:superbisquit@gmail.com">superbisquit@gmail.com</a>><br>
> > Date: Sun, Dec 8, 2013 at 6:38 PM<br>
> > Subject: Re: Error using CMake similar to error from earlier list post<br>
> > To: kde-freebsd <<a href="mailto:kde-freebsd@kde.org">kde-freebsd@kde.org</a>><br>
> ><br>
> > On Sat, Dec 7, 2013 at 3:45 PM, Joe Nosay <<a href="mailto:superbisquit@gmail.com">superbisquit@gmail.com</a>> wrote:<br>
> >> On Fri, Dec 6, 2013 at 7:50 PM, Joe Nosay <<a href="mailto:superbisquit@gmail.com">superbisquit@gmail.com</a>> wrote:<br>
> >>> <a href="https://www.mail-archive.com/kde-freebsd@kde.org/msg15778.html" target="_blank">https://www.mail-archive.com/kde-freebsd@kde.org/msg15778.html</a><br>
> >>><br>
> >>> Is there a similar fix for this?<br>
> >>><br>
> >>> Thanks.<br>
> >><br>
> >> Now would<br>
> >> "<br>
> >><br>
> >> +Build fix for clang.<br>
> >><br>
> >> +<br>
> >> + error: use of undeclared identifier 'pthread_mutex_lock'<br>
> >> + error: use of undeclared identifier 'pthread_mutex_unlock'<br>
> >> + error: use of undeclared identifier 'pthread_self'<br>
> >> + error: use of undeclared identifier 'pthread_mutex_init'<br>
> >> + error: use of undeclared identifier 'pthread_mutex_destroy'<br>
> >> +<br>
> >> +---<br>
> >> kopete/protocols/jabber/googletalk/libjingle/talk/base/ssladapter.cc.or<br>
> >> ig>><br>
> >> 2013-11-04 01:20:09.000000000 +0200<br>
> >><br>
> >> ++++<br>
> >> kopete/protocols/jabber/googletalk/libjingle/talk/base/ssladapter.cc<br>
> >><br>
> >> 2013-11-04 01:20:20.000000000 +0200<br>
> >><br>
> >> +@@ -29,6 +29,7 @@<br>
> >> +<br>
> >> + #ifdef POSIX<br>
> >> + extern "C" {<br>
> >> ++#include <pthread.h><br>
> >> + #include <unistd.h><br>
> >> + }<br>
> >> + #endif"<br>
> >><br>
> >> Be the appropriate fix for<br>
> >><br>
> >><br>
> >> /usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDeviceTh<br>
> >> read.cpp:58:30: error: use of undeclared identifier 'pthread_self'>><br>
> >> if (pthread_setschedparam (pthread_self(), SCHED_FIFO,<br>
> >> ¶m) != 0) {}<br>
> >><br>
> >> ^<br>
> >><br>
> >> /usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDeviceTh<br>
> >> read.cpp:131:30: error: use of undeclared identifier 'pthread_self'>><br>
> >> if (pthread_setschedparam (pthread_self(), SCHED_FIFO,<br>
> >> ¶m) != 0) {<br>
> ><br>
> > I need to write a patch and then apply it to the script in question.<br>
> > 1. Will I need to add the patch to each part that is listed?<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Since it is suggested to build an application natively - or at least try<br>
> > to - on FreeBSD before making a port, I am trying to do such.<br>
> ><br>
> > The errors seems to be the same CLang type as the others.<br>
> > Included is the file which was modified according to the patch from the<br>
> > hyperlink stated earlier in this thread.<br>
><br>
> Since this a CLang problem which has occurred and will occur in software<br>
> with the same or similar type of instructions, it may be of use to make a<br>
> patch for all qtX software and others with the same problem.<br>
><br>
><br>
> Me "Did I do the patch right?"<br>
> KDE FreeBSD "Did you hear something?"<br>
> Ports FreeBSD "Nope, not at all."<br>
><br>
> GCC patchiness popping up here and there. I can see it and so can others.<br>
><br>
> KDE FreeBSD "What was that?"<br>
> Ports FreeBSD "Nothing, nothing at all."<br>
><br>
> These problems also show up on Debian and other systems transitioning to<br>
> CLang for the compiler. Errors of the same type happen on software not in<br>
> ports or natively part of kde3/4.<br>
><br>
> KDE FreeBSD " There goes that noise again."<br>
> Ports FreeBSD "Just ignore it."</div></div></blockquote></div><br><br></div><div class="gmail_extra">As suggested somewhat by the patch in/for kopete. I tried adding the function to the file in question. What I did resulted in no change.<br>
<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /usr/home/raspycat/traverso/work/traverso-0.49.2<br>[ 0%] Building CXX object src/engine/CMakeFiles/traversoaudiobackend.dir/AudioDeviceThread.o<br>
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDeviceThread.cpp:65:30: error: use of undeclared identifier 'pthread_self'<br><br></div><div class="gmail_extra">[I see this as a solution to that : <a href="http://stackoverflow.com/questions/11488361/lldb-error-use-of-undeclared-identifier">http://stackoverflow.com/questions/11488361/lldb-error-use-of-undeclared-identifier</a> but how do I implement it as an applied patch ?]<br>
</div><div class="gmail_extra"> if (pthread_setschedparam (pthread_self(), SCHED_FIFO, ¶m) != 0) {}<br><br></div><div class="gmail_extra">[This was set in kopete and comes up in AudioDeviceThread.cpp as <br>
<br>#ifdef POSIX<br>extern "C"{<br>#include </usr/include/pthread.h><br>#include </usr/include/unistd.h><br>}<br>#endif]<br></div><div class="gmail_extra"> ^<br>
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDeviceThread.cpp:138:30: error: use of undeclared identifier 'pthread_self'<br> if (pthread_setschedparam (pthread_self(), SCHED_FIFO, ¶m) != 0) {<br>
<br><br><br> <a href="http://clang.debian.net/logs/2011-09-11/traverso_0.49.2-4_lsid64c.buildlog">http://clang.debian.net/logs/2011-09-11/traverso_0.49.2-4_lsid64c.buildlog</a><br><br></div><div class="gmail_extra">
The log shows that the CLang errors also occurs on other operating systems. I solved the Tsar.h problem with some help.<br></div></div>