Bug 380704

Summary: Compilation on PCBSD
Product: [Applications] rkward Reporter: RKWard Team <rkward-devel>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

Description RKWard Team 2008-09-18 04:16:51 UTC
-- Originally posted by (AT sourceforge.net): *anonymous --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/32 on 2017-05-30 15:26:40 +0100 --
Hi,
to compile on PCBSD I must done minor changes:


rthread.cpp 
line 36:
\+ \#include &lt;pthread.h&gt; 
why:
PTHREAD\_KILL\(3\)        FreeBSD Library Functions Manual        PTHREAD\_KILL\(3\)

NAME
pthread\_kill -- send a signal to a specified thread

LIBRARY
POSIX Threads Library \(libpthread, -lpthread\)

SYNOPSIS
\#include &lt;pthread.h&gt;
\#include &lt;signal.h&gt;

int
pthread\_kill\(pthread\_t thread, int sig\);


\-----------------------------------------------------------
rksignalsupport.cpp
line 26...:
\#if 0  //Vlapek: dirty fix 
\#ifndef \_\_sighandler\_t
typedef void \(\*\_\_sighandler\_t\) \(int\);
\#endif
\#endif //Vlapek: dirty fix 

why:
rkward/rbackend/rksignalsupport.cpp:27: error: conflicting declaration 'typedef void \(\* \_\_sighandler\_t\)\(int\)'                                                                                    
/usr/include/sys/signal.h:142: error: '\_\_sighandler\_t' has a previous declaration as 'typedef void \(\_\_sighandler\_t\)\(int\)'                              

\-----------------------------------------------------------

DetectPthread.Cmake
line4:
-CHECK\_INCLUDE\_FILE\(phthread\_np.h HAVE\_PTHREAD\_NP\_H\)
+CHECK\_INCLUDE\_FILES\("pthread.h" HAVE\_PTHREAD\_NP\_H\)
why: I try to find around about this, but cmake don't have found existing phthread\_np.h file:
/usr/src/include %ls -l pthread\*.h
-rw-r--r--  1 root  wheel  10311 Nov 14  2007 pthread.h
-rw-r--r--  1 root  wheel   2772 Oct  4  2005 pthread\_np.h
\(I don't know many about Cmake internals\)
btw I don't sure about 'phthread\_np.h'

\-----------------------------------------------------------
CMakeList.txt
line14:
+INCLUDE\(FindX11\)
INCLUDE\_DIRECTORIES\( $\{CMAKE\_CURRENT\_SOURCE\_DIR\} $\{CMAKE\_CURRENT\_BINARY\_DIR\} $\{KDE4\_INCLUDE\_DIR\} $\{QT\_INCLUDES\} $\{X11\_INCLUDE\_DIR\} \)

why:X.h was not found
\-----------------------------------------------------------
rkwardapplication.cpp
Line 22:
-\#include &lt;X.h&gt; 
+\#include &lt;X11/X.h&gt; 

why:header was not found

\-----------------------------------------------------------
FindR.CMake
line 89:
\-	SET\(R\_USED\_LIBS $\{R\_USED\_LIBS\} Rlapack gfortran\)
\+	SET\(R\_USED\_LIBS $\{R\_USED\_LIBS\} \)

Why: ???
Comment 1 Thomas Friedrichsmeier 2011-09-18 10:36:23 UTC
Some of this has been fixed, other lines no longer apply.

I'm not sure, whether this means that RKWard compiles on PCBSD, now, but if it still doesn't, then please send an updated problem report. Thanks\!
Comment 2 Thomas Friedrichsmeier 2011-09-18 10:36:23 UTC
- **status**: open --> closed-out-of-date