View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003522 | Slicer4 | Core: Base Code | public | 2013-12-06 08:41 | 2017-06-10 08:51 |
Reporter | tokuda | Assigned To | jcfr | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.3.1-1 | ||||
Target Version | Slicer 4.4.0 | Fixed in Version | Slicer 4.4.0 | ||
Summary | 0003522: Build fails on Mac OS X 10.9 Maverick with X Code 5.0.2 due to nice() call | ||||
Description | Build fails on Mac OS X 10.9 Maverick with X Code 5.0.2 due to nice() call in vtkSlicerApplicationLogic.cxx. According to the man page, "this interface is obsoleted by setpriority(2)". Here's the output: /Users/junichi/igtdev/slicer4/Slicer/Base/Logic/vtkSlicerApplicationLogic.cxx:401:13: error: use of undeclared | ||||
Tags | No tags attached. | ||||
Thanks the report. Would you like to work on a patch ? |
|
Sure. I'm trying to replace nice() with setpriority() now. I will report how it goes. |
|
I found another error in the same class: /Users/junichi/igtdev/slicer4/Slicer/Base/Logic/vtkSlicerApplicationLogic.cxx:411:9: error: use of undeclared |
|
Sorry, this was due to the change I made. Currently unistd.h is only included for linux as: #ifdef linux include <unistd.h>#endif but it also needs to be included in Mac OS X. I will change the code as: #ifdef ITK_USE_PTHREADS include <unistd.h>include <sys/resource.h>#endif |
|
Replacing nice() with setpriority() seems working. I'm currently trying clean build with the updated VTK (see 0003521) |
|
There was no compiler error. I put the updated code in: https://github.com/tokjun/Slicer/tree/3522-build-error-Mac-OS-X-10-9 |
|
Slicer build from the fixed code crashes during the start-up process. Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Application Specific Information: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread |
|
This happens only when I launch Slicer by running "Slicer-build/Slicer". When I run "Slicer-build/bin/Slicer.app/Contents/MacOS/Slicer", Slicer starts up normally. |
|
Fixed in r22783 |
|
Closing resolved issues that have not been updated in more than 3 months |
|
Slicer: 2145-support-for-installing-extension-from-file 35f3bf01 2013-12-17 12:09:54 Details Diff |
COMP: Fix build issue 0003522 due to nice() and getpid() calls. From: Junichi Tokuda <tokuda@bwh.harvard.edu> git-svn-id: http://svn.slicer.org/Slicer4/trunk@22783 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Base/Logic/vtkSlicerApplicationLogic.cxx | Diff File | ||
Import 2017-06-07 23:51:09: master 35f3bf01 2013-12-17 12:09:54 Details Diff |
COMP: Fix build issue 0003522 due to nice() and getpid() calls. From: Junichi Tokuda <tokuda@bwh.harvard.edu> git-svn-id: http://svn.slicer.org/Slicer4/trunk@22783 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Base/Logic/vtkSlicerApplicationLogic.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-12-06 08:41 | tokuda | New Issue | |
2013-12-06 08:41 | tokuda | Status | new => assigned |
2013-12-06 08:41 | tokuda | Assigned To | => jcfr |
2013-12-06 08:43 | jcfr | Note Added: 0010401 | |
2013-12-06 08:44 | jcfr | Relationship added | related to 0003521 |
2013-12-06 08:44 | jcfr | Target Version | => Slicer 4.4.0 |
2013-12-06 09:12 | tokuda | Note Added: 0010403 | |
2013-12-06 10:23 | tokuda | Note Added: 0010408 | |
2013-12-06 10:29 | tokuda | Note Added: 0010409 | |
2013-12-06 11:31 | tokuda | Note Added: 0010413 | |
2013-12-08 13:08 | tokuda | Note Added: 0010415 | |
2013-12-08 13:43 | tokuda | Note Added: 0010416 | |
2013-12-08 17:06 | tokuda | Note Added: 0010417 | |
2013-12-10 06:56 | jcfr | Relationship added | related to 0003527 |
2013-12-10 07:19 | ddldave | Relationship deleted | related to 0003527 |
2013-12-17 07:26 | jcfr | Note Added: 0010440 | |
2013-12-17 07:26 | jcfr | Status | assigned => resolved |
2013-12-17 07:26 | jcfr | Fixed in Version | => Slicer 4.4.0 |
2013-12-17 07:26 | jcfr | Resolution | open => fixed |
2014-03-06 05:03 | jcfr | Note Added: 0010895 | |
2014-03-06 05:03 | jcfr | Status | resolved => closed |
2017-06-07 23:27 | jcfr | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file 35f3bf01 |
2017-06-10 08:51 | jcfr | Changeset attached | => Slicer master 35f3bf01 |