[Bug 1469708] Re: cmake does not find wait.h using the check_include_files-statement

2015-06-29 Thread Lazalatin
** Description changed:

  Ubuntu Version: 15.04
  CMake Version: 3.0.2
  
- 
- This specific issue was only caused by finding the (existing) wait.h header 
file while building a CMakeLists file
+ This specific issue was only caused by finding the (existing) wait.h
+ header file while building a CMakeLists.txt file
  
  Whilst using this statement causes no errors on Arch or Debian Linux, it
  seems that under Ubuntu existing files are totally ignored.
  
  Using the following checks only caused an error message on wait.h:
  
+ Include(CheckIncludeFiles)
+ 
+ ...
+ 
  check_include_files( wait.h HAVE_SYS_WAIT_H )
  if( NOT HAVE_SYS_WAIT_H )
-   message( FATAL_ERROR Did not find sys/wait.h )
+  message( FATAL_ERROR Did not find sys/wait.h )
  endif()
  
  check_include_files( unistd.h HAVE_UNISTD_H )
  if( NOT HAVE_UNISTD_H )
-   message( FATAL_ERROR Did not find unistd.h )
+  message( FATAL_ERROR Did not find unistd.h )
  endif()
  
  While unistd.h is detected, the wait.h header-file is not. (Although it
  exists in /usr/include)
  
  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: cmake 3.0.2-1ubuntu2
  ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
  Uname: Linux 3.19.0-21-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Jun 29 13:44:57 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-02-19 (494 days ago)
  InstallationMedia: Ubuntu 12.04.4 LTS Precise Pangolin - Release amd64 
(20140204)
  SourcePackage: cmake
  UpgradeStatus: Upgraded to vivid on 2015-06-23 (5 days ago)

** Description changed:

  Ubuntu Version: 15.04
  CMake Version: 3.0.2
  
  This specific issue was only caused by finding the (existing) wait.h
  header file while building a CMakeLists.txt file
  
  Whilst using this statement causes no errors on Arch or Debian Linux, it
  seems that under Ubuntu existing files are totally ignored.
  
  Using the following checks only caused an error message on wait.h:
  
  Include(CheckIncludeFiles)
  
  ...
  
- check_include_files( wait.h HAVE_SYS_WAIT_H )
- if( NOT HAVE_SYS_WAIT_H )
-  message( FATAL_ERROR Did not find sys/wait.h )
+ check_include_files( wait.h HAVE_WAIT_H )
+ if( NOT HAVE_WAIT_H )
+  message( FATAL_ERROR Did not find wait.h )
  endif()
  
  check_include_files( unistd.h HAVE_UNISTD_H )
  if( NOT HAVE_UNISTD_H )
   message( FATAL_ERROR Did not find unistd.h )
  endif()
  
  While unistd.h is detected, the wait.h header-file is not. (Although it
  exists in /usr/include)
  
  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: cmake 3.0.2-1ubuntu2
  ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
  Uname: Linux 3.19.0-21-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Jun 29 13:44:57 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-02-19 (494 days ago)
  InstallationMedia: Ubuntu 12.04.4 LTS Precise Pangolin - Release amd64 
(20140204)
  SourcePackage: cmake
  UpgradeStatus: Upgraded to vivid on 2015-06-23 (5 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1469708

Title:
  cmake does not find wait.h using the check_include_files-statement

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1469708/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1469708] Re: cmake does not find wait.h using the check_include_files-statement

2015-06-29 Thread Lazalatin
After working around with several locations where wait.h is present, it seems 
that this issue is now solved.
It does not matter,

stating check_include_files( sys/wait.h HAVE_WAIT_H )

or check_include_files( wait.h HAVE_WAIT_H )

cmake now detects the files.

Is this magic? Have I done Something wrong?
Suggestions?

Otherwise: Please close this one.

** Changed in: cmake (Ubuntu)
   Status: New = Invalid

** Converted to question:
   https://answers.launchpad.net/ubuntu/+source/cmake/+question/268651

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1469708

Title:
  cmake does not find wait.h using the check_include_files-statement

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1469708/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs