Seriously, it would be way better to confine your emails to a single topic
so that all of this stuff does not get propagated in thread replies.
On Wed, Dec 5, 2018 at 8:54 AM Rony G. Flatscher <[email protected]>
wrote:

> revision 11569, MacOS, all ooRexx test units pass
>
> This time also warnings when running cmake:
>
> cmake -DCMAKE_BUILD_TYPE=relWithDebInfo ~/dev/oorexx_allura/main/trunk
>
> ... cut ...
>
> -- Looking for pwd.h
> CMake Warning (dev) at 
> /opt/local/share/cmake-3.12/Modules/CheckIncludeFile.cmake:70 (message):
>   Policy CMP0075 is not set: Include file check macros honor
>   CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
>   details.  Use the cmake_policy command to set the policy and suppress this
>   warning.
>
>   CMAKE_REQUIRED_LIBRARIES is set to:
>
>     pthread
>
>   For compatibility with CMake 3.11 and below this check is ignoring it.
> Call Stack (most recent call first):
>   CMakeLists.txt:337 (check_include_file)
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> ... cut ...
>
> -- Configuring done
> CMake Warning (dev):
>   Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
>   --help-policy CMP0042" for policy details.  Use the cmake_policy command to
>   set the policy and suppress this warning.
>
>   MACOSX_RPATH is not specified for the following targets:
>
>    hostemu
>    orxclassic
>    orxclassic1
>    orxexits
>    orxfunction
>    orxinvocation
>    orxmethod
>    orxncurses
>    rexx
>    rexxapi
>    rexxutil
>    rxmath
>    rxregexp
>    rxsock
>    rxunixsys
>    wpipe1
>    wpipe2
>    wpipe3
>
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> -- Generating done
> -- Build files have been written to: /Users/rony/work/oorexx_build
> wu114184:oorexx_build rony$
>
> Warnings running "make":
>
> make:
>
> Scanning dependencies of target hostemu
> [ 74%] Building CXX object 
> CMakeFiles/hostemu.dir/extensions/hostemu/platform/unix/hostemu.cpp.o
> [ 75%] Building CXX object 
> CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o
> ..\..\cmdparse.cpp:1603:20: warning: ISO C++11 does not allow conversion from 
> string literal to 'char *' [-Wwritable-strings]
>       yyerror (YY_("syntax error"));
>                    ^
> ..\..\cmdparse.cpp:1746:16: warning: ISO C++11 does not allow conversion from 
> string literal to 'char *' [-Wwritable-strings]
>   yyerror (YY_("memory exhausted"));
>                ^
> 2 warnings generated.
>
>
> Scanning dependencies of target rexxutil
> [ 89%] Building CXX object 
> CMakeFiles/rexxutil.dir/extensions/rexxutil/platform/unix/rexxutil.cpp.o
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1852:14:
>  warning: 'sem_init' is
>       deprecated [-Wdeprecated-declarations]
>         rc = sem_init(semdata->handle, 0, 0);
>              ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
>  note:
>       'sem_init' has been explicitly marked deprecated here
> int sem_init(sem_t *, int, unsigned int) __deprecated;
>                                          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
>  note:
>       expanded from macro '__deprecated'
> #define __deprecated    __attribute__((deprecated))
>                                        ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1913:5:
>  warning: 'sem_init' is
>       deprecated [-Wdeprecated-declarations]
>     sem_init(semdata->handle, 1, 0);
>     ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
>  note:
>       'sem_init' has been explicitly marked deprecated here
> int sem_init(sem_t *, int, unsigned int) __deprecated;
>                                          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
>  note:
>       expanded from macro '__deprecated'
> #define __deprecated    __attribute__((deprecated))
>                                        ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1957:13:
>  warning: 'sem_destroy' is
>       deprecated [-Wdeprecated-declarations]
>         if (sem_destroy(semdata->handle)) {
>             ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:53:26:
>  note:
>       'sem_destroy' has been explicitly marked deprecated here
> int sem_destroy(sem_t *) __deprecated;
>                          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
>  note:
>       expanded from macro '__deprecated'
> #define __deprecated    __attribute__((deprecated))
>                                        ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2054:14:
>  warning: 'sem_init' is
>       deprecated [-Wdeprecated-declarations]
>         rc = sem_init(semdata->handle, 0, 0);
>              ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
>  note:
>       'sem_init' has been explicitly marked deprecated here
> int sem_init(sem_t *, int, unsigned int) __deprecated;
>                                          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
>  note:
>       expanded from macro '__deprecated'
> #define __deprecated    __attribute__((deprecated))
>                                        ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2162:10:
>  warning: 'sem_getvalue' is
>       deprecated [-Wdeprecated-declarations]
>     rc = sem_getvalue(semdata->handle, &val);
>          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:54:56:
>  note:
>       'sem_getvalue' has been explicitly marked deprecated here
> int sem_getvalue(sem_t * __restrict, int * __restrict) __deprecated;
>                                                        ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
>  note:
>       expanded from macro '__deprecated'
> #define __deprecated    __attribute__((deprecated))
>                                        ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2198:13:
>  warning: 'sem_destroy' is
>       deprecated [-Wdeprecated-declarations]
>         if (sem_destroy(semdata->handle)) {
>             ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:53:26:
>  note:
>       'sem_destroy' has been explicitly marked deprecated here
> int sem_destroy(sem_t *) __deprecated;
>                          ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
>  note:
>       expanded from macro '__deprecated'
> #define __deprecated    __attribute__((deprecated))
>                                        ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3159:23:
>  warning: format specifies
>       type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' 
> (aka 'long long') [-Wformat]
>                       finfo->st_size);
>                       ^~~~~~~~~~~~~~
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3171:27:
>  warning: format specifies
>       type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' 
> (aka 'long long') [-Wformat]
>                           finfo->st_size);
>                           ^~~~~~~~~~~~~~
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3182:27:
>  warning: format specifies
>       type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' 
> (aka 'long long') [-Wformat]
>                           finfo->st_size);
>                           ^~~~~~~~~~~~~~
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3693:15:
>  warning: 'tempnam' is
>       deprecated: This function is provided for compatibility reasons only. 
> Due to security concerns inherent in the design of
>       tempnam(3), it is highly recommended that you use mkstemp(3) instead. 
> [-Wdeprecated-declarations]
>       array = tempnam(NULL,file); /* call system routine    */
>               ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
>  note:
>       'tempnam' has been explicitly marked deprecated here
> __deprecated_msg("This function is provided for compatibility reasons only.  
> Due to security concerns inherent in the ...
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
>  note:
>       expanded from macro '__deprecated_msg'
>         #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
>                                                       ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3697:15:
>  warning: 'tempnam' is
>       deprecated: This function is provided for compatibility reasons only. 
> Due to security concerns inherent in the design of
>       tempnam(3), it is highly recommended that you use mkstemp(3) instead. 
> [-Wdeprecated-declarations]
>       array = tempnam("/",file); /* call system routine     */
>               ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
>  note:
>       'tempnam' has been explicitly marked deprecated here
> __deprecated_msg("This function is provided for compatibility reasons only.  
> Due to security concerns inherent in the ...
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
>  note:
>       expanded from macro '__deprecated_msg'
>         #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
>                                                       ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3701:15:
>  warning: 'tempnam' is
>       deprecated: This function is provided for compatibility reasons only. 
> Due to security concerns inherent in the design of
>       tempnam(3), it is highly recommended that you use mkstemp(3) instead. 
> [-Wdeprecated-declarations]
>       array = tempnam(NULL,file);/* call system routine     */
>               ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
>  note:
>       'tempnam' has been explicitly marked deprecated here
> __deprecated_msg("This function is provided for compatibility reasons only.  
> Due to security concerns inherent in the ...
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
>  note:
>       expanded from macro '__deprecated_msg'
>         #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
>                                                       ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3708:13:
>  warning: 'tempnam' is
>       deprecated: This function is provided for compatibility reasons only. 
> Due to security concerns inherent in the design of
>       tempnam(3), it is highly recommended that you use mkstemp(3) instead. 
> [-Wdeprecated-declarations]
>     array = tempnam(dir,file);/* call system routine        */
>             ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
>  note:
>       'tempnam' has been explicitly marked deprecated here
> __deprecated_msg("This function is provided for compatibility reasons only.  
> Due to security concerns inherent in the ...
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
>  note:
>       expanded from macro '__deprecated_msg'
>         #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
>                                                       ^
> /Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:5468:33:
>  warning: 'tempnam' is
>       deprecated: This function is provided for compatibility reasons only. 
> Due to security concerns inherent in the design of
>       tempnam(3), it is highly recommended that you use mkstemp(3) instead. 
> [-Wdeprecated-declarations]
>             char *newFilename = tempnam(directory, NULL);
>                                 ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
>  note:
>       'tempnam' has been explicitly marked deprecated here
> __deprecated_msg("This function is provided for compatibility reasons only.  
> Due to security concerns inherent in the ...
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
>  note:
>       expanded from macro '__deprecated_msg'
>         #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
>                                                       ^
> 14 warnings generated.
>
>
> ---
>
> Ad shebang: on Mac after "make" and "make install" will read, e.g. in
> rexxtry.rex:
>
> #!$<IF:$<PLATFORM_ID:Darwin>,/Users/rony/Applications/ooRexx5.0.0,/usr>/bin/rexx
>
>
This looks like a syntax error in the setting of the variable
CMAKE_INSTALL_PREFIX. This should not be including the $IF part.

> Running "./rexxtry.rex" from a current build directory therefore would
> only use rexx from the directory of the user who created the MacOS version,
> in my case "/Users/rony/Applications/ooRexx5.0.0 ".
>

CMAKE_INSTALL_PREFIX is intended to be the place where the package is going
to be installed. Making it based on the user doing to the build is wrong,
and should be fixed.


> Also using the ooRexx Rexx programs in a distribution (like in BSF4ooRexx)
> would not allow them to be run in the Unix style from the command line or
> by double-clicking them on the Linux Explorer/Finder would cause these Rexx
> programs to not be executed, but rather generate an error.
>
> That is obviously not the intended result, but a syntax error.


> Question: is there a cmake-option that I can set to also have the shebang
> "#!/etc/env rexx" on a MacOS production in order to avoid that pitfall for
> the users? Which one would that be and would it be possible to supply it in
> the cmake step on the commandline in order to not have to edit the trunk
> version of CMakeLists.txt? Trying to define that value on the command line
> with
>

This should not be in the command line, but rather conditional logic in the
CMake configuration (as I already explained to PO in a previous email and
he declined to provide a fix). If someone who works on a Mac develops a
patch and submits it, it will be considered. I'm getting tired of the Mac
community asking the none-Mac users to make all of the changes.

Rick


> cmake -DOOREXX_SHEBANG_PROGRAM="/usr/bin/env rexx" ...
>
> was not applied to e.g. rexxtry.rex.
>
> Using ccmake on MacOS I see that the variable "CMAKE_INSTALL_PREFIX"
> defines the value
> "#!$<IF:$<PLATFORM_ID:Darwin>,/Users/rony/Applications/ooRexx5.0.0,/usr>/bin/rexx",
> but I fear that changing that value would cause a "make install" to go into
> "/usr/bin" which is prohibited on MacOS (and would not succeed)!
>
> ---rony
>
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to