Bug #71094 ssl.cmake related warnings

Submitted: 5 Dec 2013 13:40 Modified: 31 Mar 2014 10:15
Reporter: Hartmut Holzgraefe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.6.16, 5.7.3 OS:Linux
Assigned to: CPU Architecture:Any

[5 Dec 2013 13:40] Hartmut Holzgraefe
Description:
On 5.6.15 I'm getting: 

  CMake Warning (dev) at CMakeLists.txt:191 (INCLUDE):
    Syntax Warning in cmake code at

      /home/hartmut/projects/mysql/bzr/5.6/cmake/ssl.cmake:237:55

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.

and on 5.7.3 

  CMake Warning (dev) at CMakeLists.txt:196 (INCLUDE):
    Syntax Warning in cmake code at

      /home/hartmut/projects/mysql/bzr/5.7/cmake/ssl.cmake:252:29

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.

How to repeat:
Run cmake-gui in source, press "Configure", see the warnings above in red early in the log stream ...

Suggested fix:
For 5.6:

5.6 > bzr diff
=== modified file 'cmake/ssl.cmake'
--- cmake/ssl.cmake	2013-02-26 05:45:28 +0000
+++ cmake/ssl.cmake	2013-12-05 13:40:14 +0000
@@ -234,7 +234,7 @@
     ENDIF()
   ELSE()
     MESSAGE(SEND_ERROR
-      "Wrong option for WITH_SSL. Valid values are : "${WITH_SSL_DOC})
+      "Wrong option for WITH_SSL. Valid values are : " ${WITH_SSL_DOC})
   ENDIF()
 ENDMACRO()

and for 5.7:

5.7 > bzr diff
=== modified file 'cmake/ssl.cmake'
--- cmake/ssl.cmake	2013-08-12 08:46:57 +0000
+++ cmake/ssl.cmake	2013-12-05 13:40:57 +0000
@@ -249,7 +249,7 @@
   ELSE()
     MESSAGE(SEND_ERROR
       "Wrong option or path for WITH_SSL. "
-      "Valid options are : "${WITH_SSL_DOC})
+      "Valid options are : " ${WITH_SSL_DOC})
   ENDIF()
 ENDMACRO()
[5 Dec 2013 14:24] MySQL Verification Team
Thank you for the bug report. Which cmake version have you used?. I had not be able to see that warning with cmake 2.6.4 with source 5.7.3 on Centos 6.4 64-bits. Thanks.
[5 Dec 2013 14:54] Hartmut Holzgraefe
Lastest CMake 2.8.12.1 (On Debian testing aka. jessie/sid, but 2.8.12.1 is also the latest official release on cmake.org)
[5 Dec 2013 17:41] MySQL Verification Team
cmake warnings

Attachment: 09_cmake.png (image/png, text), 114.04 KiB.

[5 Dec 2013 17:43] MySQL Verification Team
Thank you for the feedback also repeatable on Windows with cmake 2.8.12.1.
[10 Dec 2013 18:33] MySQL Verification Team
A small note from me that none of cmake warnings and errors that Hartmut has experienced are repeatable on my OS X.
[14 Jan 2014 17:24] Paul DuBois
Noted in 5.7.4 changelog.

CMake produced a warning in ssl.cmake due to malformed syntax.
[31 Mar 2014 10:15] Hartmut Holzgraefe
still present in 5.6.17
[31 Mar 2014 10:58] Jon Olav Hauglid
As Paul notes above, we fixed it in 5.7.4.
So yes, it is still present in 5.6.17.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.097 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.