Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on CMAKE #2

Open
racdamico opened this issue Jun 9, 2022 · 2 comments
Open

Error on CMAKE #2

racdamico opened this issue Jun 9, 2022 · 2 comments

Comments

@racdamico
Copy link

Hi,

I would like to ask some support on the instalation.

After starting the install with cmake -DDEBUG=YES -DQTGUI=YES -DNATT=YES -DLDAP=YES ,I'm getting the following errors.

CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Deprecation Warning at CMakeLists.txt:12 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using install prefix /usr/local ...
-- Using etc install path /usr/local/etc ...
-- Using bin install path /usr/local/bin ...
-- Using sbin install path /usr/local/sbin ...
-- Using lib install path /usr/local/lib ...
-- Using man install path /usr/local/man ...
-- Using library 
CMake Error at CMakeLists.txt:329 (check_library_exists):
  check_library_exists Macro invoked with incorrect arguments for macro
  named: CHECK_LIBRARY_EXISTS


-- Using binary /usr/bin/flex ...
-- Using binary /usr/bin/bison ...
-- Enabled NAT Traversal support ...
-- Enabled LDAP Authentication support ...
-- Enabled Client QT GUI support ...
CMake Warning (dev) at source/iked/CMakeLists.txt:111 (add_custom_command):
  Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures.
  Run "cmake --help-policy CMP0050" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The SOURCE signatures of add_custom_command are no longer supported.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at source/iked/CMakeLists.txt:120 (add_custom_command):
  Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures.
  Run "cmake --help-policy CMP0050" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The SOURCE signatures of add_custom_command are no longer supported.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/rodrigo/mk/shrew-qt5/CMakeFiles/CMakeOutput.log".

I'm using a Linux Manjaro: Linux pc 5.17.9-1-MANJARO #1 SMP PREEMPT Wed May 18 09:20:53 UTC 2022 x86_64 GNU/Linux

Thanks in advance

@mkurz
Copy link

mkurz commented Mar 23, 2023

You need to apply this patch:

diff --unified --recursive --text --color package.orig/ike/CMakeLists.txt package.new/ike/CMakeLists.txt
--- a/CMakeLists.txt	2022-04-04 14:41:54.512667837 -0500
+++ b/CMakeLists.txt	2022-04-04 14:42:13.302667617 -0500
@@ -321,15 +321,15 @@
 
 endif( NOT CMAKE_USE_PTHREADS_INIT )
 
-if( NOT APPLE )
-
-	check_library_exists(
-		${CMAKE_THREAD_LIBS_INIT}
-		"pthread_mutex_timedlock"
-		""
-		FUNC_LIB_TIMEDLOCK )
-
-endif( NOT APPLE )
+#if( NOT APPLE )
+#
+#	check_library_exists(
+#		${CMAKE_THREAD_LIBS_INIT}
+#		"pthread_mutex_timedlock"
+#		""
+#		FUNC_LIB_TIMEDLOCK )
+#
+#endif( NOT APPLE )
 
 if( FUNC_LIB_TIMEDLOCK )

That's how it got fixed in https://aur.archlinux.org/packages/ike

@reos-rcrozier
Copy link

On Linux I fixed this like this:

      check_library_exists(
          pthread
          pthread_mutex_timedlock
          pthread.h
          FUNC_LIB_TIMEDLOCK )

But I don't know if it will still work on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants