View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001796CMakepublic2005-04-25 17:212005-07-15 16:09
ReporterJames Bigler 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001796: IRIX sproc not detected
DescriptionI'm using CMake on Irix, and I wanted to use the sproc threads. I decided to use Modules/FindThreads.cmake. This module tests for the sys/prctl.h include file.

IF(CMAKE_SYSTEM MATCHES IRIX)
  CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SPROC_H)
ENDIF(CMAKE_SYSTEM MATCHES IRIX)

However, it fails because it needs to also include sys/types.h. How can I make it check for sys/prctl.h with sys/types.h?

=======================================
I got this response from Brad King:

Change these lines:

--------------------------------------------------------
# Do we have sproc?
IF(CMAKE_SYSTEM MATCHES IRIX)
  CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SPROC_H)
ENDIF(CMAKE_SYSTEM MATCHES IRIX)
--------------------------------------------------------

to these:

--------------------------------------------------------
INCLUDE(CheckIncludeFiles)

# Do we have sproc?
IF(CMAKE_SYSTEM MATCHES IRIX)
  CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SPROC_H)
ENDIF(CMAKE_SYSTEM MATCHES IRIX)
--------------------------------------------------------

This, however, did not fix it. It stills fails to detect sproc. If you have code you want me to check out, I can troubleshoot it for you.

James
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002378)
James Bigler (developer)
2005-05-02 15:23

Is there a work around I could use for the time being?

Thanks,
James
(0002690)
Bill Hoffman (manager)
2005-07-15 16:04

This
(0002691)
Bill Hoffman (manager)
2005-07-15 16:09

INCLUDE(FindThreads)
MESSAGE(${CMAKE_USE_SPROC_INIT})
On the irix Muse at utah the above prints 1.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team