Bug 380704 - Compilation on PCBSD
Summary: Compilation on PCBSD
Status: RESOLVED WORKSFORME
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-18 04:16 UTC by RKWard Team
Modified: 2011-09-18 10:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 <pthread.h> 
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 <pthread.h>
\#include <signal.h>

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 <X.h> 
+\#include <X11/X.h> 

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